<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.2017060200.* >pctile.2017060200.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.<br> </div><div><br></div><div>Wesley Ebisuzaki<br><br></div><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/<wbr>gadoc/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">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">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">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/<wbr>pctile.2017060500.000_to_<wbr>024hrs.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">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>
> --<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">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>
><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">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>
--<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">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>
</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>