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-number_of_coordinate_values_after_template
 

wgrib2: -number_of_coordinate_values_after_template

Introduction

Vertical coordinates can be easy like "400 hPa", "2 meters above ground" or "sigma=0.4". However, the situation is more complicated with the vertical coordinates in the models. In these model coordinates, the vertical are usually an integer. You need some extra information to locate the level in physical space. This information is stored in the PDT (section 4) as the "optional list of coordinate values" at the end of the product defintion template.

The -number_of_coordinate_values_after_template option prints the number of values (4 byte) in the "optional list of coordinate values". The WMO documentation only specifies the hybrid coordinate values should be in pairs of IEEE single precision floats.

Usage

-number_of_coordinate_values_after_template
   prints section 4, octets 6-7 as an unsigned integer
   it is expected that each value uses 4 octets of storage a the end of Section 4.

Example

$  wgrib2 -number_of_coordinate_values_after_template COSMO_EU_1rec.grib2 -get_byte 4 6 2
1:0:number_coordinates_values_in_pdt=45:4-6=0,45

See also:


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

See also: -undefine


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: August 15, 2014, July 2022
Disclaimer Privacy Policy