<div dir="ltr"><div><div><div><span id="gmail-m_6077408314117991984OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075m_-3240781754259390688OLK_SRC_BODY_SECTION" style="color:rgb(0,0,0);font-family:calibri,sans-serif;font-size:14px">Sam,<br><br>TCDC is stored to the nearest percentage in grib2<br><br>for hour 1, the mean is C1,<br>
for hour 2, the mean is 2C2-C1<br>
for hour 3, the mean is 3C3-2C2<br>
for hour 4, the mean is 4C4-3C2<br>
for hour 5, the mean is 5C5-4C4<br>
and for hour 6, it is 6C6-5C5<br><br></span></span></span></span></span></div><span id="gmail-m_6077408314117991984OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075m_-3240781754259390688OLK_SRC_BODY_SECTION" style="color:rgb(0,0,0);font-family:calibri,sans-serif;font-size:14px">So C1, C2, .., C6 could have an error of +/- 0.5 when stored in grib2.<br></span></span></span></span></span></div><span id="gmail-m_6077408314117991984OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075m_-3240781754259390688OLK_SRC_BODY_SECTION" style="color:rgb(0,0,0);font-family:calibri,sans-serif;font-size:14px">Therefore the error for hour 6 is +/-6*0.5 + +/-5*0.5 or +/- 5.5%.<br><br></span></span></span></span></span>By the ways, <span id="gmail-m_6077408314117991984OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION">wgrib2 v0.1.9.7a is 4 year old and some repositories<br></span></span></span></div><div><span id="gmail-m_6077408314117991984OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION">of precompiled codes had problems with segfaults unless you<br></span></span></span></div><div><span id="gmail-m_6077408314117991984OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION">turned off g2clib. There are two ways to compile g2clib and<br></span></span></span></div><div><span id="gmail-m_6077408314117991984OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION">they were not compatible.<br></span></span></span></div><div><span id="gmail-m_6077408314117991984OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION"><br></span></span></span></div><div><span id="gmail-m_6077408314117991984OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION">Wesley<br></span></span></span></div><span id="gmail-m_6077408314117991984OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION"> </span></span></span><div><div><span id="gmail-m_6077408314117991984OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075m_-3240781754259390688OLK_SRC_BODY_SECTION" style="color:rgb(0,0,0);font-family:calibri,sans-serif;font-size:14px"><br></span></span></span></span></span><div><span id="gmail-m_6077408314117991984OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION"><span id="gmail-m_6077408314117991984m_-7746771010934629075m_-3240781754259390688OLK_SRC_BODY_SECTION" style="color:rgb(0,0,0);font-family:calibri,sans-serif;font-size:14px"><br></span></span></span></span></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 4, 2016 at 1:27 AM, Sam Wilson <span dir="ltr"><<a target="_blank" href="mailto:sam@surfline.com">sam@surfline.com</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:calibri,sans-serif">
<div>
<div>Hi Stephen,</div>
<div><br>
</div>
<div>Thanks for the feedback!</div>
<div><br>
</div>
<div>I did try the method Moorthi pointed out initially but was getting values below 0 and above 100 occasionally, so began pursuing Wesley’s wgrib2 route. </div>
<div><br>
</div>
<div>Is getting occasional values below 0 and above 100 to be expected with Moorthi's method? Nothing wildly below 0 or above 100 (just a few percent)..but want to make sure I’m doing things correctly..</div>
<div><br>
</div>
<div>I did make some graphics using Moorthi’s method and they appear to be correct - so I may just set anything below 0 to 0 and above 100 to 100 and call it a day..</div>
<div><br>
</div>
<div>Thanks</div>
</div>
<div>Sam</div>
<div><br>
</div>
<span id="gmail-m_6077408314117991984OLK_SRC_BODY_SECTION">
<div style="font-family:calibri;font-size:11pt;text-align:left;color:black;border-width:1pt medium medium;border-style:solid none none;border-color:rgb(181,196,223) -moz-use-text-color -moz-use-text-color;padding:3pt 0in 0in">
<span style="font-weight:bold">From: </span><<a target="_blank" href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a><wbr>> on behalf of Stephen McMillan <<a target="_blank" href="mailto:smcmillan@planalytics.com">smcmillan@planalytics.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>GrADS Users Forum <<a target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, November 3, 2016 at 8:08 PM<br>
<span style="font-weight:bold">To: </span>GrADS Users Forum <<a target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [gradsusr] GFS total cloud cover<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Sam,
<div><br>
</div>
<div>I think we're making this too complicated. I agree with Moorthi's solution provided earlier. Here it is again for convenience:</div>
<div><br>
</div>
<div><span style="font-size:12.8px">Let us denote the data from 6 hourly output as C1, C2, C3, C4, C5, C6.</span><br style="font-size:12.8px">
<br style="font-size:12.8px">
<span style="font-size:12.8px">To get hourly mean, then</span><br style="font-size:12.8px">
<span style="font-size:12.8px">for hour 1, the mean is C1,</span><br style="font-size:12.8px">
<span style="font-size:12.8px">for hour 2, the mean is 2C2-C1</span><br style="font-size:12.8px">
<span style="font-size:12.8px">for hour 3, the mean is 3C3-2C2</span><br style="font-size:12.8px">
<span style="font-size:12.8px">for hour 4, the mean is 4C4-3C2</span><br style="font-size:12.8px">
<span style="font-size:12.8px">for hour 5, the mean is 5C5-4C4</span><br style="font-size:12.8px">
<span style="font-size:12.8px">and for hour 6, it is 6C6-5C5</span><br style="font-size:12.8px">
<br style="font-size:12.8px">
<span style="font-size:12.8px">This pattern repeats every six ours.</span><br>
</div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px">If you haven't already tried what Moorthi suggested, please try it...it works!</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px">Stephen McMillan</span></div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Nov 3, 2016 at 5:59 PM, Sam Wilson <span dir="ltr">
<<a target="_blank" href="mailto:sam@surfline.com">sam@surfline.com</a>></span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:calibri,sans-serif">
<div>
<div>
<div>Wesley,</div>
<div><br>
</div>
<div>I got it to work by passing in multiple grib files in sequence! As you suggested ;)</div>
<div><br>
</div>
<div>Sorry for the confusion and thanks again.</div>
<div><br>
</div>
<div>Sam</div>
</div>
</div>
<div><br>
</div>
<span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION">
<div style="font-family:calibri;font-size:11pt;text-align:left;color:black;border-width:1pt medium medium;border-style:solid none none;border-color:rgb(181,196,223) -moz-use-text-color -moz-use-text-color;padding:3pt 0in 0in">
<span><span style="font-weight:bold">From: </span><<a target="_blank" href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a><wbr>> on behalf of Sam Wilson <<a target="_blank" href="mailto:sam@surfline.com">sam@surfline.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>GrADS Users Forum <<a target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
</span><span style="font-weight:bold">Date: </span>Thursday, November 3, 2016 at 11:59 AM
<div>
<div class="gmail-m_6077408314117991984h5"><br>
<span style="font-weight:bold">To: </span>GrADS Users Forum <<a target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [gradsusr] GFS total cloud cover<br>
</div>
</div>
</div>
<div>
<div class="gmail-m_6077408314117991984h5">
<div><br>
</div>
<div>
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:calibri,sans-serif">
<div>
<div>Wesley,</div>
<div><br>
</div>
<div>I plotted the output and unfortunately I’m getting the same results. Not sure if I need to upgrade wgrib2 on my machine or not for it to work.</div>
<div><br>
</div>
</div>
<div>Sam</div>
<div><br>
</div>
<span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION">
<div style="font-family:calibri;font-size:11pt;text-align:left;color:black;border-width:1pt medium medium;border-style:solid none none;border-color:rgb(181,196,223) -moz-use-text-color -moz-use-text-color;padding:3pt 0in 0in">
<span style="font-weight:bold">From: </span><<a target="_blank" href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a><wbr>> on behalf of Sam Wilson <<a target="_blank" href="mailto:sam@surfline.com">sam@surfline.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>GrADS Users Forum <<a target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, November 3, 2016 at 11:21 AM<br>
<span style="font-weight:bold">To: </span>GrADS Users Forum <<a target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [gradsusr] GFS total cloud cover<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:calibri,sans-serif">
<div>
<div>Wesley,</div>
<div><br>
</div>
<div>Here’s the output of wgrib2 -config:</div>
<div><br>
</div>
<div>
<div>wgrib2 v0.1.9.7a 11/2012 Wesley Ebisuzaki, Reinoud Bokhorst, Jaakko Hyvätti, Dusan Jovic, Kristian Nilssen, Karl Pfeiffer, Pablo Romero, Manfred Schwarb, Arlindo da Silva, Niklas Sondell, Sergey Varlamov</div>
<div><br>
</div>
<div>Compiled on 21:56:36 Jan 10 2013</div>
<div><br>
</div>
<div>Netcdf package: 4.1.1 of Jan 30 2014 05:31:22 $ is installed</div>
<div>mysql package is installed</div>
<div>regex package is installed</div>
<div>tigge package is installed</div>
<div>interpolation package is not installed</div>
<div>gptpc interface: experimental v0.1</div>
<div>UDF package is not installed</div>
<div>maximum number of arguments on command line: 5000</div>
<div>maximum number of -match,-not,-if, and -not_if arguments: 1000</div>
<div>stdout buffer length: 30000</div>
<div>g2clib is the default decoder</div>
<div>OpenMP: yes</div>
<div>INT_MAX: <a target="_blank" value="+12147483647" href="tel:2147483647">2147483647</a></div>
<div>ULONG_MAX: 18446744073709551615</div>
</div>
<div><br>
</div>
<div>I ran it using the -g2clib 0 option and it appears to work now.</div>
<div><br>
</div>
<div>However, when running with the command you provided, the junk file created still shows the following (an example using the 3 hour forecast data file):</div>
<div><br>
</div>
<div>$ cat gfs0p252016110312hr003.grb2 | wgrib2 -g2clib 0 - -match "(:TCDC:entire atmosphere:)" -set_grib_type c3 -if ":TCDC:entire atmosphere:" -ncep_norm junk</div>
<div><br>
</div>
<div>
<div>$ wgrib2 junk</div>
<div>1:0:d=<a target="_blank" value="+12016110312" href="tel:2016110312">2016110312</a>:TCDC:entire atmosphere:<b>0-3 hour ave fcst</b>:</div>
</div>
<div><br>
</div>
<div>Not sure if that’s just the wgrib2 table saying that, when really it’s the 2-3 hour forecast. I was going to plot the results to find out but let me know if you have any additional input.</div>
<div><br>
</div>
<div>Thanks!</div>
</div>
<div>Sam</div>
<div><br>
</div>
<span id="gmail-m_6077408314117991984m_-7746771010934629075OLK_SRC_BODY_SECTION">
<div style="font-family:calibri;font-size:11pt;text-align:left;color:black;border-width:1pt medium medium;border-style:solid none none;border-color:rgb(181,196,223) -moz-use-text-color -moz-use-text-color;padding:3pt 0in 0in">
<span style="font-weight:bold">From: </span><<a target="_blank" href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a><wbr>> on behalf of Wesley Ebisuzaki - NOAA Federal <<a target="_blank" href="mailto:wesley.ebisuzaki@noaa.gov">wesley.ebisuzaki@noaa.gov</a>><br>
<span style="font-weight:bold">Reply-To: </span>GrADS Users Forum <<a target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, November 3, 2016 at 11:08 AM<br>
<span style="font-weight:bold">To: </span>GrADS Users Forum <<a target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [gradsusr] GFS total cloud cover<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">
<div>
<div>
<div>Sam,<br>
<br>
</div>
Which version of wgrib2? (wgrib2 -config)<br>
<br>
</div>
Try increasing the stack size. (bash: ulimit)<br>
</div>
<div><br>
<br>
</div>
Wesley<br>
<br>
<div>
<div>
<div>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Nov 3, 2016 at 1:32 PM, Sam Wilson <span dir="ltr">
<<a target="_blank" href="mailto:sam@surfline.com">sam@surfline.com</a>></span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<div style="word-wrap:break-word">
<div>
<div style="color:rgb(0,0,0);font-family:calibri,sans-serif;font-size:14px"><span style="font-family:-webkit-standard;font-size:medium;background-color:rgb(255,255,255)">Moorthi and Wesley,</span></div>
<div style="color:rgb(0,0,0);font-family:calibri,sans-serif;font-size:14px"><span style="font-family:-webkit-standard;font-size:medium;background-color:rgb(255,255,255)"><br>
</span></div>
<div style="color:rgb(0,0,0);font-family:calibri,sans-serif;font-size:14px"><span style="font-family:-webkit-standard;font-size:medium;background-color:rgb(255,254,254)">Thanks very much for the feedback - I attempted using the ncep_norm option with wgrib2,
but got a segmentation fault..argh!</span></div>
<div style="color:rgb(0,0,0);font-family:calibri,sans-serif;font-size:14px"><span style="font-family:-webkit-standard;font-size:medium;background-color:rgb(255,254,254)"><br>
</span></div>
<div><font face="Calibri,sans-serif">My software installation skills are sub-par, so I will try </font><span style="background-color:rgb(255,255,255)">Moorthi’s option and get back to the group.</span></div>
<div><span style="background-color:rgb(255,255,255)"><br>
</span></div>
<div><span style="background-color:rgb(255,254,254)">Thanks again..</span></div>
<div><span style="background-color:rgb(255,254,254)"><br>
</span></div>
<div><span style="background-color:rgb(254,253,253)">Cheers,</span></div>
<div><span style="background-color:rgb(253,252,252)">Sam</span></div>
<div style="color:rgb(0,0,0);font-family:calibri,sans-serif;font-size:14px">
<div><br>
</div>
</div>
</div>
<span style="color:rgb(0,0,0);font-family:calibri,sans-serif;font-size:14px" id="gmail-m_6077408314117991984m_-7746771010934629075m_-3240781754259390688OLK_SRC_BODY_SECTION">
<div style="font-family:calibri;font-size:11pt;text-align:left;color:black;border-width:1pt medium medium;border-style:solid none none;border-color:rgb(181,196,223) -moz-use-text-color -moz-use-text-color;padding:3pt 0in 0in">
<span style="font-weight:bold">From: </span><<a target="_blank" href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a><wbr>> on behalf of Wesley Ebisuzaki - NOAA Federal <<a target="_blank" href="mailto:wesley.ebisuzaki@noaa.gov">wesley.ebisuzaki@noaa.gov</a>><br>
<span style="font-weight:bold">Reply-To: </span>GrADS Users Forum <<a target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, November 3, 2016 at 5:59 AM<br>
<span style="font-weight:bold">To: </span>GrADS Users Forum <<a target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [gradsusr] GFS total cloud cover<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">
<div>
<div>
<div>Sam,<br>
<br>
</div>
You can get the "0-1 hour ave fcst", "1-2 hour ave fcst", etc<br>
</div>
by using the -ncep_norm option of wgrib2.<br>
<br>
<a target="_blank" href="http://www.cpc.ncep.noaa.gov/products/wesley/wgrib2/ncep_norm.html">
http://www.cpc.ncep.noaa.gov/p<wbr>roducts/wesley/wgrib2/ncep_nor<wbr>m.html</a><br>
<br>
</div>
Here is a simple script that takes a list of gfs forecast files in order<br>
<br>
<br>
<div>#!/bin/sh<br>
#<br>
# usage $0 (list of gfs grib2 forecast files in order)<br>
#<br>
A=":TCDC:entire atmosphere:"<br>
B=":TCDC:low cloud layer:"<br>
C=":TCDC:middle cloud layer:"<br>
D=":TCDC:high cloud layer:"<br>
<br>
cat $* | wgrib2 - -match "($A|$B|$C|$D)" -set_grib_type c3 \<br>
-if "$A" -ncep_norm $stmp/junk \<br>
-if "$B" -ncep_norm $stmp/junk \<br>
-if "$C" -ncep_norm $stmp/junk \<br>
-if "$D" -ncep_norm $stmp/junk<br>
<br>
<br>
</div>
<div>Wesley<br>
</div>
<div><br>
<div>
<div>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Nov 3, 2016 at 6:59 AM, Shrinivas Moorthi <span dir="ltr">
<<a target="_blank" href="mailto:shrinivas.moorthi@noaa.gov">shrinivas.moorthi@noaa.gov</a>></span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<div bgcolor="#FFFFFF">
<div class="gmail-m_6077408314117991984m_-7746771010934629075m_-3240781754259390688gmail-m_-3920432599695330402moz-cite-prefix">
The grib header is correct.<br>
Let us denote the data from 6 hourly output as C1, C2, C3, C4, C5, C6.<br>
<br>
To get hourly mean, then<br>
for hour 1, the mean is C1,<br>
for hour 2, the mean is 2C2-C1<br>
for hour 3, the mean is 3C3-2C2<br>
for hour 4, the mean is 4C4-3C2<br>
for hour 5, the mean is 5C5-4C4<br>
and for hour 6, it is 6C6-5C5<br>
<br>
This pattern repeats every six ours.<br>
I hope this helps.<br>
Moorthi<br>
On 11/02/2016 07:41 PM, Sam Wilson wrote:<br>
</div>
<blockquote type="cite">
<div>
<div>Hi Jeff,</div>
<div><br>
</div>
<div>I plotted a quick and dirty cloud animation using the data - each step is 1 hour from f001 through f015 in the attached.</div>
<div><br>
</div>
<div>It appears that they are averages over time - you can see the bigger jumps at steps 8 and 14 (the transition from 0-6hr avg to 6-7hr and from 6-12hr avg to 12-13hr).</div>
<div><br>
</div>
<div>Marian - thank you for the feedback. Sounds like using the hourly data for cloud cover may not be a good idea, unless someone else has a solution.</div>
<div><br>
</div>
</div>
<div>Thanks,</div>
<div>Sam</div>
<div><br>
</div>
<span id="gmail-m_6077408314117991984m_-7746771010934629075m_-3240781754259390688gmail-m_-3920432599695330402OLK_SRC_BODY_SECTION">
<div style="font-family:calibri;font-size:11pt;text-align:left;color:black;border-width:1pt medium medium;border-style:solid none none;border-color:rgb(181,196,223) -moz-use-text-color -moz-use-text-color;padding:3pt 0in 0in">
<span style="font-weight:bold">From: </span><<a target="_blank" href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a><wbr>> on behalf of Jeff Duda <<a target="_blank" href="mailto:jeffduda319@gmail.com">jeffduda319@gmail.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>GrADS Users Forum <<a target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, November 2, 2016 at 3:21 PM<br>
<span style="font-weight:bold">To: </span>GrADS Users Forum <<a target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [gradsusr] GFS total cloud cover<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">
<div>
<div>
<div>Sam,<br>
</div>
That might just be a wgrib table thing. Have you actually plotted the field over those times? If it's truly an averaged field, you should be able to see some indication of that in the texture and smoothness of the fields as you progress through increasing averaged
times. <br>
<br>
</div>
My guess is that this is just some arbitrary setting in wgrib and does not reflect the true nature of the field. But I could be wrong. If there are any NCEP folks who work on the GFS on this forum, perhaps one of them could set the record straight.<br>
<br>
</div>
Jeff <br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Nov 2, 2016 at 4:54 PM, Sam Wilson <span dir="ltr">
<<a target="_blank" href="mailto:sam@surfline.com">sam@surfline.com</a>></span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:calibri,sans-serif">
<div>
<div>Thanks for the response Jeff - it’s strange to me as well!</div>
<div><br>
</div>
<div>Running wgrib2 on the data files for forecast hours 001 through 007 gives the following for TCDCclm:</div>
<div><br>
</div>
<div><b>f001:</b></div>
<div>17:7991683:d=<a target="_blank" value="+12016110212" href="tel:2016110212">2016110212</a>:TCDC:e<wbr>ntire atmosphere:<b>0-1</b> hour ave fcst:</div>
<div><b>f002:</b></div>
<div>17:8082626:d=<a target="_blank" value="+12016110212" href="tel:2016110212">2016110212</a>:TCDC:e<wbr>ntire atmosphere:<b>0-2</b> hour ave fcst:</div>
<div><b>f003:</b></div>
<div>17:8059826:d=<a target="_blank" value="+12016110212" href="tel:2016110212">2016110212</a>:TCDC:e<wbr>ntire atmosphere:<b>0-3
</b>hour ave fcst:</div>
<div><b>f004:</b></div>
<div>17:8057865:d=<a target="_blank" value="+12016110212" href="tel:2016110212">2016110212</a>:TCDC:e<wbr>ntire atmosphere:<b>0-4</b> hour ave fcst:</div>
<div><b>f005:</b></div>
<div>17:8119289:d=<a target="_blank" value="+12016110212" href="tel:2016110212">2016110212</a>:TCDC:e<wbr>ntire atmosphere:<b>0-5</b> hour ave fcst:</div>
<div><b>f006:</b></div>
<div>17:8172510:d=<a target="_blank" value="+12016110212" href="tel:2016110212">2016110212</a>:TCDC:e<wbr>ntire atmosphere:<b>0-6</b> hour ave fcst:</div>
<div><b>f007:</b></div>
<div>17:8013825:d=<a target="_blank" value="+12016110212" href="tel:2016110212">2016110212</a>:TCDC:e<wbr>ntire atmosphere:<b>6-7</b> hour ave fcst:</div>
<div><br>
</div>
<div>And it continues on..once the files go to 3 hourly (after hour 120), we have:</div>
<div><br>
</div>
<div><b>f123:</b></div>
<div>17:7687687:d=<a target="_blank" value="+12016110212" href="tel:2016110212">2016110212</a>:TCDC:e<wbr>ntire atmosphere:<b>120-123</b> hour ave fcst:</div>
<div><b>f126:</b></div>
<div>17:7778871:d=<a target="_blank" value="+12016110212" href="tel:2016110212">2016110212</a>:TCDC:e<wbr>ntire atmosphere:<b>120-126</b> hour ave fcst:</div>
<div><b>f129:</b></div>
<div>17:7728042:d=<a target="_blank" value="+12016110212" href="tel:2016110212">2016110212</a>:TCDC:e<wbr>ntire atmosphere:<b>126-129</b> hour ave fcst:</div>
<div><br>
</div>
<div>And finally the 12 hourly files (past hour 240) are all just 12 hour average forecasts:</div>
<div><br>
</div>
<div><b>f252:</b></div>
<div>17:6845416:d=<a target="_blank" value="+12016110212" href="tel:2016110212">2016110212</a>:TCDC:e<wbr>ntire atmosphere:<b>240-252</b> hour ave fcst:</div>
<div><br>
</div>
<div>I did think about the method you suggested (tcdcclm - tcdcclm(t-1)) but stopped there for the reason you mentioned..</div>
<div>
<div><br>
</div>
<div>Strange indeed - unless I’m missing something..</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Sam</div>
</div>
</div>
<div><br>
</div>
<span id="gmail-m_6077408314117991984m_-7746771010934629075m_-3240781754259390688gmail-m_-3920432599695330402m_1177070826903731705OLK_SRC_BODY_SECTION">
<div style="font-family:calibri;font-size:11pt;text-align:left;color:black;border-width:1pt medium medium;border-style:solid none none;border-color:rgb(181,196,223) -moz-use-text-color -moz-use-text-color;padding:3pt 0in 0in">
<span style="font-weight:bold">From: </span><<a target="_blank" href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a><wbr>> on behalf of Jeff Duda <<a target="_blank" href="mailto:jeffduda319@gmail.com">jeffduda319@gmail.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>GrADS Users Forum <<a target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, November 2, 2016 at 2:08 PM<br>
<span style="font-weight:bold">To: </span>GrADS Users Forum <<a target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [gradsusr] GFS total cloud cover<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">
<div>
<div>It seems a little strange to me that the total cloud cover product would be averaged over time. Is that really the case?<br>
<br>
</div>
Anyway, if you really do have an average over overlapping and increasing windows, with nothing else to go on and without applying the equations of motion in reverse, you'd have to assume a linear averaging, so subtraction of subsequent slices of the field (i.e.,
tcdcclm - tcdcclm(t-1)) would give you piecewise temporal averages. However, that method would give you negative cloud cover values which is clearly nonsensical, which again is why I question whether or not that array contains a temporal average. That just
doesn't make a lot of sense.<br>
<br>
</div>
Jeff Duda<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Nov 2, 2016 at 3:27 PM, Sam Wilson <span dir="ltr">
<<a target="_blank" href="mailto:sam@surfline.com">sam@surfline.com</a>></span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:calibri,sans-serif">
<div>Hi,</div>
<div><br>
</div>
<div>I’m working with hourly GFS total cloud cover (TCDCclm) and I’m a bit stumped on the following..</div>
<div><br>
</div>
<div>Given TCDCclm for hours 0-1, 0-2, 0-3, 0-4, 0-5, and 0-6, what is the proper way to determine TCDCclm for hours 1-2, 2-3, 3-4, 4-5, and 5-6?</div>
<div><br>
</div>
<div>I may be making the problem more difficult than it is..but wanted to ping this group to be sure.</div>
<div><br>
</div>
<div>
<div>Is there an existing grads script that handles this already and if not, does anyone here have any insight?</div>
</div>
<div><br>
</div>
<div>Thanks so much for your time.</div>
<div><br>
</div>
<div>Best,</div>
<div>Sam</div>
</div>
<br>
______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a target="_blank" rel="noreferrer" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/li<wbr>stinfo/gradsusr</a><br>
<br>
<span class="gmail-m_6077408314117991984m_-7746771010934629075m_-3240781754259390688gmail-m_-3920432599695330402HOEnZb"></span></blockquote>
<span class="gmail-m_6077408314117991984m_-7746771010934629075m_-3240781754259390688gmail-m_-3920432599695330402HOEnZb"></span></div>
<span class="gmail-m_6077408314117991984m_-7746771010934629075m_-3240781754259390688gmail-m_-3920432599695330402HOEnZb"><font color="#888888"><br>
<br clear="all">
<br>
-- <br>
<div class="gmail-m_6077408314117991984m_-7746771010934629075m_-3240781754259390688gmail-m_-3920432599695330402m_1177070826903731705gmail_signature">
<div dir="ltr">
<div>Jeff Duda<br>
Post-doctoral research associate<br>
University of Oklahoma School of Meteorology<br>
</div>
</div>
</div>
</font></span></div>
</div>
</div>
</span></div>
<br>
______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a target="_blank" rel="noreferrer" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/li<wbr>stinfo/gradsusr</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<span class="gmail-m_6077408314117991984m_-7746771010934629075m_-3240781754259390688gmail-HOEnZb"><font color="#888888"><br>
-- <br>
<div class="gmail-m_6077408314117991984m_-7746771010934629075m_-3240781754259390688gmail-m_-3920432599695330402gmail_signature">
<div dir="ltr">
<div>Jeff Duda<br>
Post-doctoral research associate<br>
University of Oklahoma School of Meteorology<br>
</div>
</div>
</div>
</font></span></div>
<span class="gmail-m_6077408314117991984m_-7746771010934629075m_-3240781754259390688gmail-HOEnZb"><font color="#888888"></font></span></div>
<span class="gmail-m_6077408314117991984m_-7746771010934629075m_-3240781754259390688gmail-HOEnZb"><font color="#888888"></font></span></div>
<span class="gmail-m_6077408314117991984m_-7746771010934629075m_-3240781754259390688gmail-HOEnZb"><font color="#888888"></font></span></span><span class="gmail-m_6077408314117991984m_-7746771010934629075m_-3240781754259390688gmail-HOEnZb"><font color="#888888"><br>
<fieldset class="gmail-m_6077408314117991984m_-7746771010934629075m_-3240781754259390688gmail-m_-3920432599695330402mimeAttachmentHeader">
</fieldset> <br>
<pre>______________________________<wbr>_________________
gradsusr mailing list
<a target="_blank" href="mailto:gradsusr@gradsusr.org" class="gmail-m_6077408314117991984m_-7746771010934629075m_-3240781754259390688gmail-m_-3920432599695330402moz-txt-link-abbreviated">gradsusr@gradsusr.org</a><a target="_blank" href="http://gradsusr.org/mailman/listinfo/gradsusr" class="gmail-m_6077408314117991984m_-7746771010934629075m_-3240781754259390688gmail-m_-3920432599695330402moz-txt-link-freetext">http://gr<wbr>adsusr.org/mailman/listinfo/gr<wbr>adsusr</a></pre>
</font></span></blockquote>
<span class="gmail-m_6077408314117991984m_-7746771010934629075m_-3240781754259390688gmail-HOEnZb"><font color="#888888"><br>
<p><br>
</p>
<pre cols="72" class="gmail-m_6077408314117991984m_-7746771010934629075m_-3240781754259390688gmail-m_-3920432599695330402moz-signature">--
Dr. Shrinivas Moorthi
Research Meteorologist
Global Climate and Weather Modeling Branch
Environmental Modeling Center / National Centers for Environmental Prediction
5830 University Research Court - (W/NP23), College Park MD 20740 USA
Tel:<a target="_blank" value="+13016833718" href="tel:%28301%29683-3718">(301)683-3718</a></pre>
</font></span></div>
<br>
______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a target="_blank" rel="noreferrer" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/li<wbr>stinfo/gradsusr</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</span></div>
<br>
______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a target="_blank" rel="noreferrer" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/li<wbr>stinfo/gradsusr</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</span></div>
</div>
</span></div>
</div>
</div>
</div>
</span></div>
<br>
______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a target="_blank" rel="noreferrer" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/li<wbr>stinfo/gradsusr</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span>
</div>
<br>______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a target="_blank" rel="noreferrer" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a><br>
<br></blockquote></div><br></div></div></div>