<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<br class="">
<blockquote type="cite" class="">On Jun 6, 2017, at 4:07 PM, William Rasch - NOAA Federal <<a href="mailto:william.rasch@noaa.gov" class="">william.rasch@noaa.gov</a>> wrote:<br class="">
<br class="">
Hi Jennifer,<br class="">
<br class="">
I don't know what my descriptor file is.<br class="">
</blockquote>
<div class=""><br class="">
</div>
It is the output from g2ctl. It is a text file that organizes metadata in a format that GrADS (and humans) can easily understand. I copied it into a file (I named it pctile.2017060500.000_to_024hrs.grib2.ctl) like this:
<div class=""><br class="">
</div>
<div class=""><font face="Courier" style="font-size: 14px;" class="">> g2ctl pctile.2017060500.000_to_024hrs.grib2 > pctile.2017060500.000_to_024hrs.grib2.ctl</font></div>
<div class=""><br class="">
<div class="">And here is what is in it:</div>
<div class=""><br class="">
</div>
<div class=""><font face="Courier" style="font-size: 14px;" class="">dset ^pctile.2017060500.000_to_024hrs.grib2</font></div>
<div class=""><font face="Courier" style="font-size: 14px;" class=""><font class="">index ^pctile.2017060500.000_to_024hrs.grib2.idx<br class="">
undef 9.999E+20<br class="">
title pctile.2017060500.000_to_024hrs.grib2<br class="">
* produced by g2ctl v0.1.1<br class="">
* command line options: pctile.2017060500.000_to_024hrs.grib2<br class="">
* griddef=1:0:(131 x 66):grid_template=0:winds(N/S): lat-lon grid:(131 x 66) units 1e-06 input WE:SN output WE:SN res 48 lat 10.000000 to 75.000000 by 1.000000 lon 180.000000 to 310.000000 by 1.000000 #points=8646:winds(N/S)<br class="">
dtype grib2<br class="">
ydef 66 linear 10.000000 1<br class="">
xdef 131 linear 180.000000 1.000000<br class="">
tdef 1 linear 00Z06jun2017 1mo<br class="">
zdef 1 linear 1 1<br class="">
vars 3<br class="">
APCPsfc 0,1,0 0,1,8,4 ** surface Total Precipitation [kg/m^2]<br class="">
TMP2m 0,103,2 0,0,0,0 ** 2 m above ground Temperature [K]<br class="">
WIND10m 0,103,10 0,2,1,0 ** 10 m above ground Wind Speed [m/s]<br class="">
ENDVARS<br class="">
EDEF 1<br class="">
E197 1 00Z06jun2017 197<br class="">
ENDEDEF</font><br class="">
</font><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Then I ran gribmap on it, like this:</div>
<div class=""><br class="">
</div>
<div class=""><font face="Courier" style="font-size: 14px;" class="">> gribmap -v -i pctile.2017060500.000_to_024hrs.grib2.ctl<br class="">
gribmap: scanning GRIB2 file: pctile.2017060500.000_to_024hrs.grib2 <br class="">
1.1: lev1=1,0 var=0,1,8,4 ens=197 valid at 2017-06-06-00:00 (t=1) MATCH <br class="">
2.1: lev1=103,2 var=0,0,0,0 ens=197 valid at 2017-06-06-00:00 (t=1) MATCH <br class="">
3.1: lev1=103,10 var=0,2,1,0 ens=197 valid at 2017-06-06-00:00 (t=1) MATCH <br class="">
gribmap: Writing out the GRIB2 index file (version 3)</font></div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">I could open this file with GrADS and display tmp2m:</div>
<div class=""><img apple-inline="yes" id="5DE4C71A-799C-4142-B582-1F717EC9BDE2" src="cid:2E20384B-3ABE-41C0-981F-E2B00FF25E28" class=""></div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<blockquote type="cite" class=""><br class="">
<br class="">
Bill<br class="">
<br class="">
<br class="">
On Tue, Jun 6, 2017 at 8:50 AM, Jennifer M Adams <<a href="mailto:jadams21@gmu.edu" class="">jadams21@gmu.edu</a>> wrote:<br class="">
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 class="">
http://cola.gmu.edu/grads/gadoc/grib.html<br class="">
Please see more comments inline.<br class="">
<br class="">
<br class="">
> On Jun 6, 2017, at 11:34 AM, William Rasch - NOAA Federal <william.rasch@noaa.gov> wrote:<br class="">
> I grabbed one of the files, only one, then cat'ed that to the efi.master<br class="">
<br class="">
I would haved run g2ctl on just the one file, before cat’ing it to efi.master.<br class="">
<br class="">
><br class="">
> Ran: g2ctl efi.master.ctl<br class="">
><br class="">
> Then, did a gribmap -v efi.master.ctl<br class="">
><br class="">
> It then prompted me the "descriptor file", and I entered: efi.master.ctl<br class="">
><br class="">
> The feedback from that was this:<br class="">
<br class="">
In general, it would be better to send the actual text instead of an image of it.<br class="">
<br class="">
><br class="">
> <image.png><br class="">
It doesn’t look you got a MATCH for any of the records in your file.<br class="">
What is in your descriptor file?<br class="">
<br class="">
—Jennifer<br class="">
<br class="">
><br class="">
> I then tried to display tmp2m and got the same error.<br class="">
><br class="">
> Thanks for any additional help and again, sorry for my incompetence with this.<br class="">
><br class="">
> Bill<br class="">
><br class="">
> On Mon, Jun 5, 2017 at 6:20 PM, Jennifer M Adams <jadams21@gmu.edu> wrote:<br class="">
> Hi, Bill -<br class="">
> 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 class="">
> —Jennifer<br class="">
><br class="">
><br class="">
><br class="">
> On Jun 5, 2017, at 11:33 AM, William Rasch - NOAA Federal <william.rasch@noaa.gov> wrote:<br class="">
><br class="">
> > Hi,<br class="">
> ><br class="">
> > I have what would seem to be a very simple data-set and "variable" I'm trying to plot wiht GrADS.<br class="">
> ><br class="">
> > The grib files are located here...<br class="">
> ><br class="">
> > ftp://ftp.cdc.noaa.gov/Public/gbates/reforecast2/efi_grib2/pctile.2017060500.000_to_024hrs.grib2<br class="">
> ><br class="">
> > I am simply downloading several of these files, then do this:<br class="">
> ><br class="">
> > cat * > efi.master<br class="">
> > g2ctl efi.master > efi.master.ctl<br class="">
> > gribmap -i efi.master.ctl<br class="">
> ><br class="">
> > I'm simply trying to plot either:<br class="">
> ><br class="">
> > temp2m<br class="">
> > wind10m<br class="">
> > apcpsfc<br class="">
> ><br class="">
> > When I try to display the data, I get the error:<br class="">
> ><br class="">
> > Cannot Contour Grid - all undefined values<br class="">
> ><br class="">
> > Thanks for any help....<br class="">
> ><br class="">
> > Bill<br class="">
> > _______________________________________________<br class="">
> > gradsusr mailing list<br class="">
> > gradsusr@gradsusr.org<br class="">
> > http://gradsusr.org/mailman/listinfo/gradsusr<br class="">
><br class="">
> --<br class="">
> Jennifer Miletta Adams<br class="">
> Center for Ocean-Land-Atmosphere Studies (COLA)<br class="">
> George Mason University<br class="">
><br class="">
><br class="">
><br class="">
><br class="">
> _______________________________________________<br class="">
> gradsusr mailing list<br class="">
> gradsusr@gradsusr.org<br class="">
> http://gradsusr.org/mailman/listinfo/gradsusr<br class="">
><br class="">
><br class="">
><br class="">
> --<br class="">
><br class="">
> William Rasch<br class="">
> Science and Operations Officer<br class="">
> Weather Forecast Office<br class="">
> Sacramento, CA<br class="">
> _______________________________________________<br class="">
> gradsusr mailing list<br class="">
> gradsusr@gradsusr.org<br class="">
> http://gradsusr.org/mailman/listinfo/gradsusr<br class="">
<br class="">
--<br class="">
Jennifer Miletta Adams<br class="">
Center for Ocean-Land-Atmosphere Studies (COLA)<br class="">
George Mason University<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
_______________________________________________<br class="">
gradsusr mailing list<br class="">
gradsusr@gradsusr.org<br class="">
http://gradsusr.org/mailman/listinfo/gradsusr<br class="">
<br class="">
<br class="">
<br class="">
-- <br class="">
<br class="">
William Rasch<br class="">
Science and Operations Officer<br class="">
Weather Forecast Office<br class="">
Sacramento, CA<br class="">
_______________________________________________<br class="">
gradsusr mailing list<br class="">
gradsusr@gradsusr.org<br class="">
http://gradsusr.org/mailman/listinfo/gradsusr<br class="">
</blockquote>
<br class="">
<div class="">--<br class="">
Jennifer Miletta Adams<br class="">
Center for Ocean-Land-Atmosphere Studies (COLA)<br class="">
George Mason University<br class="">
<br class="">
<br class="">
</div>
<br class="">
</div>
</div>
</body>
</html>