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_byte
 

wgrib2: -set_byte

Introduction

The -set_byte option sets 1 octet (byte) to a a specified integer value. The integer value ranges from 0 to 255.

-set_byte I J K
  I = section number = 1..7
  J = location in the section = 1..(section length)
  K = 0 .. 255
would set 
  Section I, Octet J to the value K

Multiple octets can be set by making the third argument a colon seperated list.

Usage

-set_byte  SECTION STARTING_OCTET_LOCATION I-1:I-2:..:I-N
SECTION=0 .. 7
STARTING_OCTET_LOCATION ≥ 1
I-M = Mth octet

Example

See also: -set_hex -set_ieee -set_int -set_int2 -set_ieee


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: June 1, 2017
Disclaimer Privacy Policy