wgrib2: -small_grib
Introduction
The -small_grib option writes the grid values
to a grib2 file with the same grid spacing but a smaller domain.
The grid point locations are unchanged. This option is used
to make a regional subset and only works for certain grids
such as the lat-lon and Lambert conformal.
Usage
-small_grib LonW:LonE LatS:LatN file_name
For west longitudes and south latitudes, use negative values.
The file_name is the output file.
Example
$ wgrib2 fcst.grb2 -small_grib 10:20 -20:20 small.grb
1:0:d=2007032600:HGT:1000 mb:anl:
$ wgrib2 small.grb -grid
1:0:grid_template=0:
lat-lon grid:(21 x 81) units 1e-06 input WE:SN output WE:SN res 48
lat -20.000000 to 20.000000 by 0.500000
lon 10.000000 to 20.000000 by 0.500000 #points=1701
The first line writes a small grib file from 10E-20E and 20S-20N.
See also: -undefine,
-ijsmall_grib
|