Skip Navigation Links www.nws.noaa.gov 
NOAA logo - Click to go to the NOAA home page National Weather Service   NWS logo - Click to go to the NWS home page
Climate Prediction Center
 
 

 
About Us
   Our Mission
   Who We Are

Contact Us
   CPC Information
   CPC Web Team

 
HOME > Monitoring_and_Data > Oceanic and Atmospheric Data > Reanalysis: Atmospheric Data > wgrib2-set
 

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)

  1. discipline
  2. center
  3. subcenter
  4. master_table
  5. local_table
  6. background_process_id
  7. analysis_or_forecast_process_id
  8. table_1.2
  9. table_1.3
  10. table_1.4
  11. table_3.0
  12. table_3.1 or GDT
  13. table_3.3
  14. table_3.4
  15. table_4.0 or PDT
  16. table_4.1
  17. table_4.2
  18. table_4.6
  19. table_4.10
  20. table_4.11
  21. table_5.0 or DRT
  22. 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

NOAA/ National Weather Service
National Centers for Environmental Prediction
Climate Prediction Center
5830 University Research Court
College Park, Maryland 20740
Climate Prediction Center Web Team
Page last modified: May 15, 2005
Disclaimer Privacy Policy