<div dir="ltr">Jennifer and Wesley,<div><br></div><div>Can&#39;t thank you guys enough for your help.  This is really great!!  But, I&#39;m still having issues, however, I am very excited the Wesley was able to get</div><div>something working so I have gone from thinking I&#39;ll never get this done to some hope now!!</div><div><br>Wesley,  I&#39;m really sorry, but I need even more specifics of how you did it.  Here is what I tried, please tell me where I have gone wrong...</div><div><br></div><div>1.)  I download ALL the pctile file from a certain date, in this case, <a href="ftp://ftp.cdc.noaa.gov/Public/gbates/reforecast2/efi_grib2/pctile.2017060600.000_to_024hrs.grib2">ftp://ftp.cdc.noaa.gov/Public/gbates/reforecast2/efi_grib2/pctile.2017060600.000_to_024hrs.grib2</a></div><div>all the way through the 156_180hrs files, so a total of 14 files (so not the efi* files, only the .pctile files).</div><div><br></div><div>2.)  I then cat all of these into a &quot;master&quot; file (this technique works for everything else I have done in the past).</div><div>cat * &gt; efi.master</div><div><br></div><div>3.)  Run g2ctl on that master file, but I used the -b command this time?  Did I misunderstand that?</div><div>g2ctl -b efi.master &gt; efi.master.ctl</div><div><br></div><div>4.)  Then run gribmap with the -b command?</div><div>g2ctl -b efi.master.ctl  (I have used -i in the past). </div><div><br></div><div>5.)  When I do the fifth step, I can a command line entry request of:  Enter Name of Data Descriptor file:   What do I enter there?  For this time I entered efi.master.ctl.</div><div><br></div><div>With those steps I still get the undefined error.  </div><div><br></div><div>Can&#39;t thank you guys enough, really hope we can figure this out!!!!</div><div><br></div><div>Bill</div><div> </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 6, 2017 at 10:16 AM, Wesley Ebisuzaki - NOAA Federal <span dir="ltr">&lt;<a href="mailto:wesley.ebisuzaki@noaa.gov" target="_blank">wesley.ebisuzaki@noaa.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>Bill,<br><br></div>I had no problems plotting the efi* and pctile* files.  This is not to brag<br></div>to to say that with a little more understanding, you can start making plots!<br><br></div>g2ctl is a simple program.  When you make a ctl file from a single grib file,<br></div>it looks for the records with the earliest, second earliest and last time<br></div>stamp.  For example,<br><br></div>earliest time stamp:   00Z jan 1 2017<br></div>next time stamp:        06Z jan 1 2017<br></div>last time stamp:         18Z jan 2 2017<br><br></div>From these three time stamps, g2ctl knows<br><br></div>   1) data starts at 00Z jan 1 2017<br></div>   2) dt=6 hours<br></div>   3) number of time steps = 8<br></div><div>       -&gt; grads ctl file:  tdef 8 linear 00Z01jan2017 6hr<br><br></div>If you have data at 07Z jan 1, 2017, gribmap will ignore it because it is expecting data<br></div>every 6 hours.<br><br></div>g2ctl needs to make a list of variables for the control file.  To save time, g2ctl<br></div>makes the variable list from the first and second time steps.  If the 3rd time step<br></div>and a new variable, g2ctl will not find it.  Since you are  combining efi* and pctile*<br></div>files, this may have happened.<br><br></div>The GrADS data model only has one time dimension.  For example,<br><br></div>   default mode:    analysis at 00Z Jan 3 2017  has the same time as<br></div>                             24 hour forecast from 00Z Jan 2, 2017.<br><br></div>To get around this problem, you have to be careful that g2ctl and gribmap<br></div>using the same time mode.  For your files,<br><br></div>default:  (no option) use verification time (end of time average)<br></div>-0:          use start of forecast (initial time)<br></div>-b:          use start of time average<div><div><div><div><div><div><div><div><div><div><br></div><div>For my test, I used the -b mode.<br></div><div><br><div><div><div><div><div>When you make your files, you should either make <br></div><div><div><div><div><div><div><div><div><div><br><div><div><div><div>    cat pctile.<a href="tel:(201)%20706-0200" value="+12017060200" target="_blank">2017060200</a>.* &gt;pctile.<a href="tel:(201)%20706-0200" value="+12017060200" target="_blank">2017060200</a>.grib2<br></div><div>or<br></div><div>    cat pctile.*.000_to_024hrs.grib2 &gt;pctile.000_to_024hrs.grib2<br><br></div><div>Combining pctile and efi files is asking for trouble.<span class="HOEnZb"><font color="#888888"><br> </font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Wesley Ebisuzaki<br><br></div></font></span><div><div class="h5"><div><div><div><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 6, 2017 at 11:50 AM, Jennifer M Adams <span dir="ltr">&lt;<a href="mailto:jadams21@gmu.edu" target="_blank">jadams21@gmu.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">There is no need to apologize for being a novice. You may find this doc page on how GrADS deals with GRIB data useful:<br>
<a href="http://cola.gmu.edu/grads/gadoc/grib.html" rel="noreferrer" target="_blank">http://cola.gmu.edu/grads/gado<wbr>c/grib.html</a><br>
Please see more comments inline.<br>
<br>
<br>
&gt; On Jun 6, 2017, at 11:34 AM, William Rasch - NOAA Federal &lt;<a href="mailto:william.rasch@noaa.gov" target="_blank">william.rasch@noaa.gov</a>&gt; wrote:<br>
&gt; I grabbed one of the files, only one, then cat&#39;ed that to the efi.master<br>
<br>
I would haved run g2ctl on just the one file, before cat’ing it to efi.master.<br>
<br>
&gt;<br>
&gt; Ran:  g2ctl  efi.master.ctl<br>
&gt;<br>
&gt; Then, did a gribmap -v efi.master.ctl<br>
&gt;<br>
&gt; It then prompted me the &quot;descriptor file&quot;, and I entered:  efi.master.ctl<br>
&gt;<br>
&gt; The feedback from that was this:<br>
<br>
In general, it would be better to send the actual text instead of an image of it.<br>
<br>
&gt;<br>
&gt; &lt;image.png&gt;<br>
It doesn’t look you got a MATCH for any of the records in your file.<br>
What is in your descriptor file?<br>
<br>
—Jennifer<br>
<br>
&gt;<br>
&gt; I then tried to display tmp2m and got the same error.<br>
&gt;<br>
&gt; Thanks for any additional help and again, sorry for my incompetence with this.<br>
&gt;<br>
&gt; Bill<br>
&gt;<br>
&gt; On Mon, Jun 5, 2017 at 6:20 PM, Jennifer M Adams &lt;<a href="mailto:jadams21@gmu.edu" target="_blank">jadams21@gmu.edu</a>&gt; wrote:<br>
&gt; Hi, Bill -<br>
&gt; I find that the g2ctl output often needs a few tweaks to get evertyhing right and some variables need a fourth grib code in the units field in order to match properly. You also appear to be concatenating files with different time stamps and this may be confusing the issue. Try setting up your descriptor with only one file, and run gribmap in verbose mode (with the -v) and look at what is matching/not matching. If records don’t match what’s in your descriptor, gribmap will show you what the entry should contain. Once you are matching all the records in one file, then add the templating for multiple time steps. If it’s still not working please send your descriptor and the gribmap verbose output.<br>
&gt; —Jennifer<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Jun 5, 2017, at 11:33 AM, William Rasch - NOAA Federal &lt;<a href="mailto:william.rasch@noaa.gov" target="_blank">william.rasch@noaa.gov</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Hi,<br>
&gt; &gt;<br>
&gt; &gt; I have what would seem to be a very simple data-set and &quot;variable&quot; I&#39;m trying to plot wiht GrADS.<br>
&gt; &gt;<br>
&gt; &gt; The grib files are located here...<br>
&gt; &gt;<br>
&gt; &gt; <a href="ftp://ftp.cdc.noaa.gov/Public/gbates/reforecast2/efi_grib2/pctile.2017060500.000_to_024hrs.grib2" rel="noreferrer" target="_blank">ftp://ftp.cdc.noaa.gov/Public/<wbr>gbates/reforecast2/efi_grib2/p<wbr>ctile.2017060500.000_to_024hrs<wbr>.grib2</a><br>
&gt; &gt;<br>
&gt; &gt; I am simply downloading several of these files, then do this:<br>
&gt; &gt;<br>
&gt; &gt; cat * &gt; efi.master<br>
&gt; &gt; g2ctl efi.master &gt; efi.master.ctl<br>
&gt; &gt; gribmap -i efi.master.ctl<br>
&gt; &gt;<br>
&gt; &gt; I&#39;m simply trying to plot either:<br>
&gt; &gt;<br>
&gt; &gt; temp2m<br>
&gt; &gt; wind10m<br>
&gt; &gt; apcpsfc<br>
&gt; &gt;<br>
&gt; &gt; When I try to display the data, I get the error:<br>
&gt; &gt;<br>
&gt; &gt; Cannot Contour Grid - all undefined values<br>
&gt; &gt;<br>
&gt; &gt; Thanks for any help....<br>
&gt; &gt;<br>
&gt; &gt; Bill<br>
&gt; &gt; ______________________________<wbr>_________________<br>
&gt; &gt; gradsusr mailing list<br>
&gt; &gt; <a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
&gt; &gt; <a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/li<wbr>stinfo/gradsusr</a><br>
&gt;<br>
&gt; --<br>
&gt; Jennifer Miletta Adams<br>
&gt; Center for Ocean-Land-Atmosphere Studies (COLA)<br>
&gt; George Mason University<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ______________________________<wbr>_________________<br>
&gt; gradsusr mailing list<br>
&gt; <a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
&gt; <a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/li<wbr>stinfo/gradsusr</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt; William Rasch<br>
&gt; Science and Operations Officer<br>
&gt; Weather Forecast Office<br>
&gt; Sacramento, CA<br>
&gt; ______________________________<wbr>_________________<br>
&gt; gradsusr mailing list<br>
&gt; <a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
&gt; <a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/li<wbr>stinfo/gradsusr</a><br>
<br>
--<br>
Jennifer Miletta Adams<br>
Center for Ocean-Land-Atmosphere Studies (COLA)<br>
George Mason University<br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/li<wbr>stinfo/gradsusr</a><br>
</blockquote></div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br>______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><a href="https://twitter.com/NWSSacramento" target="_blank"><img src="http://www.noaa.gov/images/social_twitter_sm.png"></a><a href="https://www.facebook.com/NWS.Sacramento" target="_blank"><img src="http://www.noaa.gov/images/social_facebook_sm.png"></a><a href="http://www.youtube.com/nwssacramento" target="_blank"><img src="http://www.noaa.gov/images/social_youtube_sm.png"></a><br></div><div>William Rasch<div>Science and Operations Officer</div><div>Weather Forecast Office</div><div>Sacramento, CA</div></div></div></div>
</div>