[gradsusr] help with g2grb, please.
Wesley Ebisuzaki
Wesley.Ebisuzaki at noaa.gov
Thu Mar 10 10:10:43 EST 2011
Bernd,
> ga-> g2grb t pop.grb d=2011030300
Try this instead.
g2grb t pop.grb d=2011030300:TMP:2 m above ground:6 hour fcst
After the date code, you have to add the GRIB2 name as used by wgrib2.
Then follows the level which must be consistent with wgrib2 notation.
Then follows the forecast/analysis time information. Again it has to be
consistent with wgrib2 notation.
g2grb uses wgrib2 to add the metadata to the grib2 file. The input
format of this metadata is
based on the wgrib2 inventory and the last argument to g2grb is a
columns 3-6 of a wgrib2 inventory.
Wesley
Becker, Bernd wrote:
> Hi,
> Ineed some hep with g2grb.
>
> t is a single layer/time/surface/global field.
> To writing it to pop.grb, the following error messages occur
> and I don't know where tweak next.
>
> ga-> g2grb t pop.grb d=2011030300
> dlon=0.75 nx = 481 lon0 = 0
> Y is varying Lat = -90 to 90 Y = 1 to 241
> dlat=0.75 ny = 241 lat0 = -90
> new grads found undef=-999000000.000000
> making template file
> ! wgrib2 $GADDIR/template.grb2 -d 1 -lola 0:481:0.75 -90:241:0.75
> pop.grb.template grib
> 1:0:d=2009080100:var discipline=0 center=255 local_table=1 parmcat=255
> parm=255:no_level:-1 missing fcst:
> opening fwrite pop.grb.tmp
> going to display t
> result is Wrote 115921 of 115921 elements to pop.grb.tmp as Sequential
> Big_Endian
>
> metadata = 1:0:d=2011030300:
> ! wgrib2 pop.grb.template -import_ieee pop.grb.tmp -set_metadata
> pop.grb.inv -undefine_val -999000000.000000 -grib_out pop.grb
>
> *** FATAL ERROR: set_metadata: bad input 1:0:d=2011030300:
> ***
>
> 1:0
> !rm pop.grb.tmp pop.grb.inv pop.grb.template
> ga->
>
> Do I need to shave of the "1:0:" from bad input?
> Do I need to specify more metadata?
> What is the minimum set?
>
> Many thanks,
> Bernd.
>
> --
> Bernd Becker Climate Impacts Product Development
> Met Office Hadley Centre FitzRoy Road Exeter Devon EX1 3PB United
> Kingdom
> Tel.: +44 (0) 1392 884511 Fax: +44 (0)870 900 5050
> E-mail:bernd.becker at metoffice.gov.uk -
> http://www.metoffice.gov.uk/research/our-scientists/seasonal-to-decadal/
> bernd-becker
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
More information about the gradsusr
mailing list