wgrib2: -set
Introduction
Please see new grib for the basic
concepts of making new grib files.
The -set option change specific fields
of the in-memory grib (sub-)message. Expect the list of
supported fields to expand as needed.
Usage
-set X Y X=field, Y=integer
-set junk junk to see supported fields
Fields (as of Aug 18, 2011)
- discipline
- center
- subcenter
- master_table
- local_table
- background_process_id
- analysis_or_forecast_process_id
- table_1.2
- table_1.3
- table_1.4
- table_3.0
- table_3.1 or GDT
- table_3.3
- table_3.4
- table_4.0 or PDT
- table_4.1
- table_4.2
- table_4.6
- table_4.10
- table_4.11
- table_5.0 or DRT
- table_6.0
Example
$ wgrib2 -set center 99 -center
1:0:center=De Bilt, Netherlands
2:46042:center=De Bilt, Netherlands
3:63079:center=De Bilt, Netherlands
4.1:86046:center=De Bilt, Netherlands
...
The -set_var option will rename
all the fields in a grib file. If you only want to rename
specific fields, you will have to use the
-if and -fi options.
See also:
-fi,
-grib,
-grib_out,
-if
-set_metadata
|