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

wgrib2: -wind_uv


The -wind_uv option takes the wind speed and wind direction and computes the zonal (UGRD) and meridional (VGRD) wind components. The wind components are then written out in grib format. For this option to work, the corresponding wind direction and speed must not be separated by a non-corresponding wind speed or direction. If the speed and direction do no have this order, the file must be sorted.

If the wind direction is earth (grid) relative, the UGRD and VGRD winds are earth (grid) relative.

You can save computer time by using the -match option to restricting the decoding of records to wind speed (WIND) and wind direction (WDIR).


-wind_uv output_grib_file


$ wgrib2 gep19.t00z.pgrb2af180 -wind_dir wind.grb -wind_speed wind.grb -match "(UGRD|VGRD)"
4.1:86046:d=2009060500:UGRD:200 mb:180 hour fcst:ENS=+19
4.2:86046:d=2009060500:VGRD:200 mb:180 hour fcst:ENS=+19
8.1:226831:d=2009060500:UGRD:250 mb:180 hour fcst:ENS=+19
8.2:226831:d=2009060500:VGRD:250 mb:180 hour fcst:ENS=+19

$ wgrib2 wind.grb -wind_uv uv.grb
1:0:d=2009060500:WDIR:200 mb:180 hour fcst:ENS=+19
2:97922:d=2009060500:WIND:200 mb:180 hour fcst:ENS=+19
3:179554:d=2009060500:WDIR:250 mb:180 hour fcst:ENS=+19
4:277476:d=2009060500:WIND:250 mb:180 hour fcst:ENS=+19

$ wgrib2 uv.grb
1:0:d=2009060500:UGRD:200 mb:180 hour fcst:ENS=+19
2:89777:d=2009060500:UGRD:200 mb:180 hour fcst:ENS=+19
3:179554:d=2009060500:UGRD:250 mb:180 hour fcst:ENS=+19
4:269331:d=2009060500:UGRD:250 mb:180 hour fcst:ENS=+19

See also: -match, -wind_speed -wind_dir

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 created: April 1, 2019
Disclaimer Privacy Policy