Memory optimization (was Re: Performance tuning)

Wesley Ebisuzaki Wesley.Ebisuzaki at NOAA.GOV
Fri Sep 19 09:52:02 EDT 2008


Stefan,

Stefan Gofferje wrote:
> Hi,
>
> Wesley Ebisuzaki schrieb:
>
>>>>   $WGRIB2 ${FILENAME} -small -60:100 43:90 -grib_out ${FILENAME}.extracted
>>>>
>
> Problem:
>
> $WGRIB2 ${FILENAME} -small_grib -60:100 43:90 -grib_out
> ${FILENAME}.extracted
>
> *** FATAL ERROR: too many grib files ..
> 2nd=/home/turvavar/public_html/saakeskus.fi/grib/gfs.t18z.pgrb2f00.extracted
> ***
>
>
Another mistake.  :(   Guess that is what happens when you have 173
different options.
The arguments of -small_grib are

-sh-3.00$ wgrib2 -help -small_grib
wgrib2 v0.1.7.7f 9/2008 (names removed)
 -small_grib      out  X Y Z  make small domain grib file X=lonW:lonE
Y=latS:latN Z=file (beta)

Try    $WGRIB2 ${FILENAME} -small -60:100 43:90 ${FILENAME}.extracted

A test:

-sh-3.00$ wgrib2 fcst.grb2 -small_grib -60:100 43:90 small.grb2
1:0:d=2007032600:HGT:1000 mb:anl:
2:125535:d=2007032600:HGT:1000 mb:3 hour fcst:
-sh-3.00$ wgrib2 small.grb2 -grid
1:0:grid_template=0:
        lat-lon grid:(321 x 95) units 1e-06 input WE:SN output WE:SN res 48
        lat 43.000000 to 90.000000 by 0.500000
        lon 300.000000 to 100.000000 by 0.500000 #points=30495
2:49734:grid_template=0:
        lat-lon grid:(321 x 95) units 1e-06 input WE:SN output WE:SN res 48
        lat 43.000000 to 90.000000 by 0.500000
        lon 300.000000 to 100.000000 by 0.500000 #points=30495


            Wesley


> Terve,
> Stefan
>
> --
> Last words of a stormchaser:
> "Where is that rotation on the radar?!"
>



More information about the gradsusr mailing list