GRIB2CTL not working: Part 2
- "unimplemented grid type:"
- a grid type needs to be added to grib2ctl, it's not
hard if you know the "pdef". Send me the "pdef" and
grid type, and I'll have a new grib2ctl in a few minutes.
(Assuming that GrADS supports the grid type.)
- gribmap complains about some files from nic.fb4.noaa.gov
- some of these GRIB files have non-GRIB data before the
first GRIB record. The length of the non-GRIB
section is too large, some programs (gribmap) may assume
that the file is not in GRIB. To trim the file, use a
new version of wgrib (1.5.0+).
-
wgrib oldfile | wgrib oldfile -i -grib -s -o newfile
grib2ctl.pl newfile >newfile.ctl
- some ngm files from nic.fb4.noaa.gov
- Seen some ngm files which have data on 4 different grids. Gribmap
can only handle one grid at a time, and grib2ctl simply was
not written for multiple grids types. My suggestion is to make a
new GRIB file using one grid type. The following will extract
all the records with grid type "N".
-
wgrib -s oldfile >junk1
wgrib -V oldfile | grep "grid=" >junk2
paste junk1 junk2 >junk3
grep ":grid=N:" < junk3 | wgrib -s -i oldfile -grib -o newfile
- Some ETA files will not display
- Some of the ETA grids are too big for GrADS. It is
a problem with GrADS and not grib2ctl.
- Monthly mean Reanalysis files from TAPE are not right.
- The tape archive of monthly mean include both the mean and
variance. Grib2ctl cannot handle mixed files. You need
to separate the means the the variances and run grib2ctl
on the new files.
-
wgrib -s old | grep ":var" | wgrib -s -i old -grib -o var.grib
wgrib -s old | grep -v ":var" | wgrib -s -i old -grib -o mean.grib
grib2ctl.pl var.grib >var.ctl
grib2ctl.pl mean.grib >mean.ctl
Privacy Policy