Skip Navigation Links 
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-get_int2

wgrib2: -get_int2


The -get_int2 option prints the values of selected two-byte integers in a grib message. For example if you wanted to see octet N and N+1 is section M as a signed two byte integer, you could use -get_int2 M N 1. The first argument is the section number. The second is the octet number starting from 1 (consistent with WMO grib documentation) and the third is the number of integers to display. The -get_int2 option uses the grib format for signed 2-octet integers.




$ wgrib2 f.grb -get_int2 1 6 1  
See also: new grib, -get_byte -get_int -get_hex

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