The GrADS data descriptor file defines a grid structure into which the data will fit -- it gives "shape" to the data by identifying its spatial dimensions, the number of time steps, and the number of variables.
If the data is in binary format, its structure has already been
prescribed. If the data is in GRIB format, no consistent
relationship exists between the data and the grid structure defined in the data
descriptor file. Hence, the need for the gribmap
utility which "maps"
between the GRIB data and the GrADS data description.
As gribmap
reads each field in the GRIB data file, the
parameters for that field (e.g. variable name, vertical level, time)
are compared to the information in the data descriptor file until
a match is found. The process continues until all the GRIB elements have been
"mapped" to their location within the GrADS grid structure.
The syntax for the gribmap
command is as follows:
gribmap [options]
The options are as follows:
-i fname
fname
is the name of the data descriptor file. If
not specified, gribmap
will prompt the user.
-v
-q
-t0
-0
-min0
-b
.
-fhr
hr
hours. This is used to isolate a sequence of forecasts. For example, if you
wanted to sample all the 120-hour forecasts from the MRF ensemble runs, you
would use gribmap -f120
.
-sxxx
xxx
bytes between records. The
default is 1000.
-hxxx
xxx
bytes before starting the scan process.
-u
-1
-2
-e
-E
-N
-m
-hnmc
Another feature was added to map by the GRIB "time-range-indicator" as specified
in the .ctl
file. This was put in for handling NMC reanalysis data
where the time-range-indicator distinguishes between monthly mean variances
and means.