[gradsusr] GRIB2 All Undefined Values

Charles cl012685 at gmail.com
Wed Nov 20 08:54:40 EST 2013


Jennifer,

Below is the NOMADS download link for the file I used in this example.

http://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_hd.pl?file=gfs.t12z.mastergrb2f12&lev_200_mb=on&lev_500_mb=on&var_HGT=on&var_UGRD=on&var_VGRD=on&leftlon=0&rightlon=360&toplat=90&bottomlat=-90&dir=%2Fgfs.2013111812%2Fmaster

Charles


On Tue, Nov 19, 2013 at 3:23 PM, Jennifer Adams <jma at cola.iges.org> wrote:

> Can one of you point me to the FTP location for the grib file in question?
>  --Jennifer
>
>
> On Nov 19, 2013, at 3:01 PM, Wesley Ebisuzaki - NOAA Federal wrote:
>
> Charles,
>
>     I suspect that the version of grads is immaterial.  GrADS uses
> libraries to
> read the grib file and the COLA and Fedora versions are probably using
> different versions of the grib library.
>
>     Wesley
>
>
> On Tue, Nov 19, 2013 at 11:44 AM, Charles <cl012685 at gmail.com> wrote:
>
>> Thanks for that suggestion, Wesley. I switched to GrADS 2.0.1 and
>> everything seems to be working. Hopefully I will have better luck with the
>> next version of GrADS.
>>
>> Thanks again for the help, I really appreciate it.
>>
>> Charles
>>
>>
>> On Tue, Nov 19, 2013 at 9:44 AM, Wesley Ebisuzaki - NOAA Federal <
>> wesley.ebisuzaki at noaa.gov> wrote:
>>
>>> Charles,
>>>
>>>    I am using GrADS 2.0.1 (Centros version) from the COLA website.
>>>
>>>        Wesley
>>>
>>>
>>>
>>> On Tue, Nov 19, 2013 at 9:15 AM, Charles <cl012685 at gmail.com> wrote:
>>>
>>>> Thank you for the reply, Wesley. It sounds like there might be an issue
>>>> with my gribmap or GrADS install. If I run gribmap with the verbose option
>>>> on GRIB1 files, it matches all the variables just fine. However, it returns
>>>> an error with GRIB2 files.
>>>>
>>>> gribmap -v -i gfs.t12z.mastergrb2f12.ctl
>>>>       gribmap: scanning GRIB2 file: gfs.t12z.mastergrb2f12
>>>>       Segmentation fault (core dumped)
>>>>
>>>> When I don't run verbose option on GRIB2 files, gribmap will create an
>>>> index file. But based on the above error, those index files are probably
>>>> not correct. Which would explain my original issue of all values being
>>>> undefined.
>>>>
>>>> Do you have any suggestions on where I should go from here to solve
>>>> this gribmap issue?
>>>>
>>>> Thanks again,
>>>>
>>>> Charles
>>>>
>>>>
>>>> On Tue, Nov 19, 2013 at 7:36 AM, Wesley Ebisuzaki - NOAA Federal <
>>>> wesley.ebisuzaki at noaa.gov> wrote:
>>>>
>>>>> Charles,
>>>>>
>>>>>    It worked for me.
>>>>>
>>>>>       g2ctl gfs.t12z.mastergrb2f12 >junk.ctl
>>>>>                  (I see that you did this)
>>>>>       gribmap -i junk.ctl
>>>>>                  (do not use -0)
>>>>>
>>>>>      grads
>>>>>       Landscape mode? ('n' for portrait): (entered return)
>>>>>       ga-> open junk.ctl
>>>>>       ga-> d hgt200mb
>>>>>
>>>>> Hint:  use gribmap -v -i junk.ctl to see which fields match the ctl
>>>>> file.
>>>>>
>>>>>      Wesley
>>>>>
>>>>>
>>>>>
>>>>> On Mon, Nov 18, 2013 at 4:33 PM, Charles <cl012685 at gmail.com> wrote:
>>>>>
>>>>>> Hello All,
>>>>>>
>>>>>> I am a fairly new user of GrADS. My setup includes: GrADS 2.0.2 on
>>>>>> Fedora 19, g2ctl 0.0.8.8 and wgrib2 v1.9.9.
>>>>>>
>>>>>> I am having issues with all GRIB2 files. I have followed instructions
>>>>>> and I can successfully create control files and index files, but GrADS
>>>>>> returns "all undefined values" no matter what I try to plot. I have been
>>>>>> getting around this by converting the files to GRIB1 and using grib2ctl,
>>>>>> which I have had no trouble with. However, I would like to eliminate that
>>>>>> step. I was wondering if anyone could shed some light on what I am missing?
>>>>>>
>>>>>> In case it is an issue with the control file, I have pasted one below
>>>>>> from today's 12Z GFS 0.5x0.5 degree from NOMADS.
>>>>>>
>>>>>> dset ^gfs.t12z.mastergrb2f12
>>>>>> index ^gfs.t12z.mastergrb2f12.idx
>>>>>> undef 9.999E+20
>>>>>> title gfs.t12z.mastergrb2f12
>>>>>> * produced by g2ctl v0.0.8.8
>>>>>> * command line options: gfs.t12z.mastergrb2f12
>>>>>> * griddef=1:0:(720 x 361):grid_template=0:winds(N/S): lat-lon
>>>>>> grid:(720 x 361) units 1e-06 input WE:NS output WE:SN res 48 lat 90.000000
>>>>>> to -90.000000 by 0.500000 lon 0.000000 to 359.500000 by 0.500000
>>>>>> #points=259920:winds(N/S)
>>>>>>
>>>>>> dtype grib2
>>>>>> ydef 361 linear -90.000000 0.5
>>>>>> xdef 720 linear 0.000000 0.500000
>>>>>> tdef 1 linear 00Z19nov2013 1mo
>>>>>> * PROFILE hPa
>>>>>> zdef 2 levels 50000 20000
>>>>>> options pascals
>>>>>> vars 6
>>>>>> HGT200mb   0,100,20000   0,3,5 ** 200 mb Geopotential Height [gpm]
>>>>>> HGT500mb   0,100,50000   0,3,5 ** 500 mb Geopotential Height [gpm]
>>>>>> UGRD200mb   0,100,20000   0,2,2 ** 200 mb U-Component of Wind [m/s]
>>>>>> UGRD500mb   0,100,50000   0,2,2 ** 500 mb U-Component of Wind [m/s]
>>>>>> VGRD200mb   0,100,20000   0,2,3 ** 200 mb V-Component of Wind [m/s]
>>>>>> VGRD500mb   0,100,50000   0,2,3 ** 500 mb V-Component of Wind [m/s]
>>>>>> ENDVARS
>>>>>>
>>>>>> I have been researching this issue for quite some time and haven't
>>>>>> found a solution yet, so any help is greatly appreciated!
>>>>>>
>>>>>> Charles
>>>>>> University of Oklahoma
>>>>>>
>>>>>> _______________________________________________
>>>>>> gradsusr mailing list
>>>>>> gradsusr at gradsusr.org
>>>>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> gradsusr mailing list
>>>>> gradsusr at gradsusr.org
>>>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> gradsusr mailing list
>>>> gradsusr at gradsusr.org
>>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>>
>>>>
>>>
>>> _______________________________________________
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org
>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>
>>>
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
>  --
> Jennifer M. Adams
> Center for Ocean-Land-Atmosphere Studies (COLA)
> 111 Research Hall, Mail Stop 2B3
> George Mason University
> 4400 University Drive
> Fairfax, VA 22030
>
>
>
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20131120/3518824c/attachment-0001.html 


More information about the gradsusr mailing list