Reading GFS GRIB2 files: issues with gribmap

Jennifer Adams jma at COLA.IGES.ORG
Tue Jul 22 12:40:27 EDT 2008


On Jul 22, 2008, at 11:52 AM, Kevin M Levey wrote:

> gribmap (which really is "grib2map" in version 2.a.02 but still
> called "gribmap").
This is not exactly correct. There are two separate utilities for
scanning a grib file (gribscan and grib2scan). But the work of
creating the index files is done by one utility, gribmap. Inside
gribmap, the code for grib1 and grib2 files is completely separate,
and the messages it prints to the users will say 'grib1map' or
grib2map' depending on the which version of grib is being indexed.
Jennifer

> Here is my process (I am showing the 00hour as an example - do the
> same for ALL hours)
>
> perl g2ctl.pl $REMOTE_DIR1/gfs.t12z.pgrbf00.grb2 $TEMP_DIR/
> gfs2.t12z.pgrbf00.idx >$TEMP_DIR/gfs2_000.ctl
>
> This will create both the CTL and IDX files in *my* TEMP_DIR using
> data from *my* data source folder (it can be whatever you want it
> to be)
>
> Then the following:
>
> $GRADS2_DIR/gribmap -0 -i $TEMP_DIR/gfs2_000.ctl
>
> where GRADS2_DIR=/usr/local/bin/grads-2.0.a2/bin (*my* location of
> the latest version of grads)
>
> Fire up grads 2 and open gfs2_000.ctl
>
> This process works perfectly for me.
>
> Regards
>
> Kevin M Levey, MSc in Oceans and Atmospheric Sciences (University
> of Cape Town)
> Director of Meteorological Operations
> CustomWeather, Inc.
> San Francisco, California, USA
>
> "Taking the World by Storm!"
>
> http://www.customweather.com
> http://www.myforecast.com
> http://www.1stweather.com
>
> cell: 415-794-0411
> work: 415-777-3566
> email: klevey at customweather.com
>
>
>
>
> On Jul 22, 2008, at 07/22/08 - 7:03 AM, Gilmour, Isla wrote:
>
>> Jennifer
>>
>> Thanks for your response.  Indeed, I checked the $PATH, and tried
>> using a complete path to gribmap, but continued to get the same
>> error.   Has anyone used gribmap from the grads v2.a.02 "package"
>> successfully with GFS pgrbf.grib2 files?
>>
>> Isla
>>
>>> Leaving tdef aside, the next step is to use gribmap (the one
>>> which comes
>>> with grads-2.0.a2) , but this failed:
>>>
>>>> g2ctl -0 /data/weather/gfs/20080714/00/gfs.t00z.pgrbf > gfs.ctl
>>>> gribmap -i gfs.ctl
>>> Open Error: Data file type invalid
>>> --> The invalid description file record is:
>>> --> dtype grib2
>>> The data file was not opened.
>> The 'dtype grib2' option should work with gribmap (the one that
>> comes with 2.0.a2). Please check your $PATH or use a complete path
>> to gribmap to make sure you're using the right one.
>>
>> Jennifer
>>
>>>
>

--
Jennifer M. Adams
IGES/COLA
4041 Powder Mill Road, Suite 302
Calverton, MD 20705
jma at cola.iges.org



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20080722/32587a92/attachment.html 


More information about the gradsusr mailing list