<div dir="ltr">Jennifer and Wesley,<div><br></div><div>Can't thank you guys enough for your help. This is really great!! But, I'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'll never get this done to some hope now!!</div><div><br>Wesley, I'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 "master" file (this technique works for everything else I have done in the past).</div><div>cat * > 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 > 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'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"><<a href="mailto:wesley.ebisuzaki@noaa.gov" target="_blank">wesley.ebisuzaki@noaa.gov</a>></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> -> 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>.* >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 >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"><<a href="mailto:jadams21@gmu.edu" target="_blank">jadams21@gmu.edu</a>></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>
> On Jun 6, 2017, at 11:34 AM, William Rasch - NOAA Federal <<a href="mailto:william.rasch@noaa.gov" target="_blank">william.rasch@noaa.gov</a>> wrote:<br>
> I grabbed one of the files, only one, then cat'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>
><br>
> Ran: g2ctl efi.master.ctl<br>
><br>
> Then, did a gribmap -v efi.master.ctl<br>
><br>
> It then prompted me the "descriptor file", and I entered: efi.master.ctl<br>
><br>
> 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>
><br>
> <image.png><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>
><br>
> I then tried to display tmp2m and got the same error.<br>
><br>
> Thanks for any additional help and again, sorry for my incompetence with this.<br>
><br>
> Bill<br>
><br>
> On Mon, Jun 5, 2017 at 6:20 PM, Jennifer M Adams <<a href="mailto:jadams21@gmu.edu" target="_blank">jadams21@gmu.edu</a>> wrote:<br>
> Hi, Bill -<br>
> 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>
> —Jennifer<br>
><br>
><br>
><br>
> On Jun 5, 2017, at 11:33 AM, William Rasch - NOAA Federal <<a href="mailto:william.rasch@noaa.gov" target="_blank">william.rasch@noaa.gov</a>> wrote:<br>
><br>
> > Hi,<br>
> ><br>
> > I have what would seem to be a very simple data-set and "variable" I'm trying to plot wiht GrADS.<br>
> ><br>
> > The grib files are located here...<br>
> ><br>
> > <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>
> ><br>
> > I am simply downloading several of these files, then do this:<br>
> ><br>
> > cat * > efi.master<br>
> > g2ctl efi.master > efi.master.ctl<br>
> > gribmap -i efi.master.ctl<br>
> ><br>
> > I'm simply trying to plot either:<br>
> ><br>
> > temp2m<br>
> > wind10m<br>
> > apcpsfc<br>
> ><br>
> > When I try to display the data, I get the error:<br>
> ><br>
> > Cannot Contour Grid - all undefined values<br>
> ><br>
> > Thanks for any help....<br>
> ><br>
> > Bill<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>
><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>
><br>
><br>
><br>
> --<br>
><br>
> William Rasch<br>
> Science and Operations Officer<br>
> Weather Forecast Office<br>
> Sacramento, CA<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>
<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>