WGRIB2 Question

Mark Sponsler msponsler at COMCAST.NET
Thu Oct 11 18:10:45 EDT 2007


Wesley,
The first suggestion works like a charm on my limited Windows XP system.
The second one looks to require s Unix OS.  Either way, it's a solution!
Thanks very much.
--
Thanks,
Mark

-------------- Original message --------------
From: Wesley Ebisuzaki <Wesley.Ebisuzaki at NOAA.GOV>

> Mark Sponsler wrote:
> > Is it possible to write the invetory from wgrib2 out to a text file? I
> > don't need the actual data values in the grib, just the inventory. The
> > best I can do now is using the -spread option, which writes a snipet of
> > the invetory out along with all the data (which will work in a pinch):
> > wgrib2.exe grib_file -v -d 1 | wgrib2.exe -i grib_file -spread
> > rec1_out.txt
> >
> > Just trying to get the 'date' out of the first record so I can automate
> > building a ctl file.
> >
> > Any help would be appreciated.
> >
> > Thanks,
> > Mark
> >
> Mark,
>
> How about
>
> wgrib2 grib -d 1 > line1
>
> or
>
> date=`wgrib2 new.grb2 -d 1 -t | sed 's/.*d=//'`
>
> Wesley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20071011/607597f8/attachment.html 


More information about the gradsusr mailing list