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

wgrib2: -ncep_uv

Introduction

Operatinal NCEP grib files often have the U and corresponding V fields in the same grib message. (U and V are submessages.) Typically wgrib2 converts all the submessages into individual messages. In order to combine the U and V fields together, you replace the -grib option with -ncep_uv. Options like -grib_out and -new_grid do not have the capability to combine the U and V fields. For theses cases, you run the output through wgrib2. Note that -ncep_uv is more like -grib than -grib_out. The option -ncep_uv uses the compressed grid point values from the original file. Neither the grid point values nor the packing is changed.

Usage

-ncep_uv output_file

Example

$ wgrib2 test.grb2 -match ":500 mb:" -ncep_uv output.grb

$ wgrib2 test.grb2 -inv /dev/null -new_grid_winds earth -new_grid ncep grid 221 - | wgrib2 - -ncep_uv output.grb

In the above example, the first wgrib2 regrids the file and writes it into stdout. The second wgrib2 reads the new grib file from stdout and combines the U and V records together into one message.

See also: -tosubmsg -submsg -grib -grib_out -GRIB

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: Oct 3, 2014
Disclaimer Privacy Policy