<html><body>
<DIV>Wesley,</DIV>
<DIV>The first suggestion works like a charm on my limited Windows XP system. </DIV>
<DIV>The second one looks to require s Unix OS. Either way, it's a solution! </DIV>
<DIV>Thanks very much.</DIV>
<DIV class=signature id=signature>--<BR>Thanks, <BR>Mark</DIV>
<DIV> </DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">-------------- Original message -------------- <BR>From: Wesley Ebisuzaki <Wesley.Ebisuzaki@NOAA.GOV> <BR><BR>> Mark Sponsler wrote: <BR>> > Is it possible to write the invetory from wgrib2 out to a text file? I <BR>> > don't need the actual data values in the grib, just the inventory. The <BR>> > best I can do now is using the -spread option, which writes a snipet of <BR>> > the invetory out along with all the data (which will work in a pinch): <BR>> > wgrib2.exe grib_file -v -d 1 | wgrib2.exe -i grib_file -spread <BR>> > rec1_out.txt <BR>> > <BR>> > Just trying to get the 'date' out of the first record so I can automate <BR>> > building a ctl file. <BR>> > <BR>> > Any help would be appreciated. <BR>> > <BR>> > Thanks, <BR>> > Mark <BR>> > <BR>> Mark, <BR>> <BR>> How about <BR>>
<BR>&g
t; wgrib2 grib -d 1 > line1 <BR>> <BR>> or <BR>> <BR>> date=`wgrib2 new.grb2 -d 1 -t | sed 's/.*d=//'` <BR>> <BR>> Wesley </BLOCKQUOTE></body></html>