[gradsusr] GRIB2 and GrADS

Wesley Ebisuzaki wesley.ebisuzaki at noaa.gov
Thu Jan 12 12:52:25 EST 2012


Mike,

  From your ctl file,

HGT 0,100,400,0,0   0,3,5 ** 4 mb - reserved Geopotential Height [gpm]

The above line suggests that wgrib2 thinks the field is for a layer "4
mb-reserved"
rather than the level "4 mb".  If you understand grib2, the second Code
Table 4.5 should
be set to 255 (missing) rather than 0 (reserved).  Fix the grib files and
the problem should
go away.

        Wesley


On Thu, Jan 12, 2012 at 11:32 AM, Frost, Mr. Michael <
Michael.Frost at nrlmry.navy.mil> wrote:

> Hi:
>
> I have a bunch of individual GRIB2 files that I cat together to make one
> large one.  The files in question are geopotential height and different
> pressure levels.  All files are for the same bastime/tau and are for the
> same domain.
>
> When I use the grb2ctl.pl to create the control file, it lists out each
> of the different levels as basically different parameters.   That is, it
> says I have many one level parameters, instead of 1 parameter with many
> levels.
>
> Any idea on where I screwed up?
>
> Thanks,
> Mike Frost
>
> ===
> %cat geopht_pre_00*grib2 > test.grib2
> %grb2ctl.pl test.grib2 > test.ctl
> ===
>
> ===
> %more test.ctl
>
> dset ^test.grib2
> index ^test.grib2.idx
> undef 9.999E+20
> title test.grib2
> * produced by g2ctl v0.0.8.4
> * command line options: test.grib2
> * griddef=1:0:(61 x 61):grid_template=30:winds(N/S): Lambert Conformal:
> (61 x 61) input WE:SN output WE:SN res 48 Lat1 34.867636 Lon1 229.943856
> LoV 235.975998 LatD 60.000000 Latin1 60.000000 Latin2 30.000000 LatSP
> 0.000000 LonSP 235.975998 North Pol dtype grib2 pdef 61 61 lcc 34.867636
> -130.056144 1 1 60.000000 30.000000 -124.024002 18000.000000 18000.000000
> xdef 72 linear -131.123443 0.199441029068876 ydef 63 linear 34.867636
> 0.163636363636364 tdef 1 linear 12Z06jan2012 1mo zdef 1 linear 1 1 vars 30
> HGT 0,100,400,0,0   0,3,5 ** 4 mb - reserved Geopotential Height [gpm]
> HGT 0,100,500,0,0   0,3,5 ** 5 mb - reserved Geopotential Height [gpm]
> HGT 0,100,700,0,0   0,3,5 ** 7 mb - reserved Geopotential Height [gpm]
> HGT 0,100,1000,0,0   0,3,5 ** 10 mb - reserved Geopotential Height [gpm]
> HGT 0,100,2000,0,0   0,3,5 ** 20 mb - reserved Geopotential Height [gpm]
> HGT 0,100,3000,0,0   0,3,5 ** 30 mb - reserved Geopotential Height [gpm]
> HGT 0,100,5000,0,0   0,3,5 ** 50 mb - reserved Geopotential Height [gpm]
> HGT 0,100,7000,0,0   0,3,5 ** 70 mb - reserved Geopotential Height [gpm]
> HGT 0,100,10000,0,0   0,3,5 ** 100 mb - reserved Geopotential Height [gpm]
> HGT 0,100,15000,0,0   0,3,5 ** 150 mb - reserved Geopotential Height [gpm]
> HGT 0,100,20000,0,0   0,3,5 ** 200 mb - reserved Geopotential Height [gpm]
> HGT 0,100,25000,0,0   0,3,5 ** 250 mb - reserved Geopotential Height [gpm]
> HGT 0,100,30000,0,0   0,3,5 ** 300 mb - reserved Geopotential Height [gpm]
> HGT 0,100,35000,0,0   0,3,5 ** 350 mb - reserved Geopotential Height [gpm]
> HGT 0,100,40000,0,0   0,3,5 ** 400 mb - reserved Geopotential Height [gpm]
> HGT 0,100,45000,0,0   0,3,5 ** 450 mb - reserved Geopotential Height [gpm]
> HGT 0,100,50000,0,0   0,3,5 ** 500 mb - reserved Geopotential Height [gpm]
> HGT 0,100,55000,0,0   0,3,5 ** 550 mb - reserved Geopotential Height [gpm]
> HGT 0,100,60000,0,0   0,3,5 ** 600 mb - reserved Geopotential Height [gpm]
> HGT 0,100,65000,0,0   0,3,5 ** 650 mb - reserved Geopotential Height [gpm]
> HGT 0,100,70000,0,0   0,3,5 ** 700 mb - reserved Geopotential Height [gpm]
> HGT 0,100,75000,0,0   0,3,5 ** 750 mb - reserved Geopotential Height [gpm]
> HGT 0,100,80000,0,0   0,3,5 ** 800 mb - reserved Geopotential Height [gpm]
> HGT 0,100,85000,0,0   0,3,5 ** 850 mb - reserved Geopotential Height [gpm]
> HGT 0,100,90000,0,0   0,3,5 ** 900 mb - reserved Geopotential Height [gpm]
> HGT 0,100,92500,0,0   0,3,5 ** 925 mb - reserved Geopotential Height [gpm]
> HGT 0,100,95000,0,0   0,3,5 ** 950 mb - reserved Geopotential Height [gpm]
> HGT 0,100,97500,0,0   0,3,5 ** 975 mb - reserved Geopotential Height [gpm]
> HGT 0,100,100000,0,0   0,3,5 ** 1000 mb - reserved Geopotential Height
> [gpm]
> HGT 0,100,101300,0,0   0,3,5 ** 1013 mb - reserved Geopotential Height
> [gpm]
> ENDVARS
> ===
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20120112/5efc4ce1/attachment-0003.html 


More information about the gradsusr mailing list