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

wgrib2: -AAIG

Ascii ArcInfo Grid


The -AAIG option writes the data into a Ascii ArcInfo Grid file. This option is experimental and only supports equally spaced lat-lon grids. My reading of the format specifications that each file contains a single grid. Therefore, each field is written to different file (*.asc) which is written to the current directory.

File name convention for ouput: *.asc

The file name convention

   NAME = grib name (-var), ex. TEMP, HGT  
   LEVEL = level, ex. surface, 2_m_above_ground, 500_mb
   RT = reference time YYYYMMDDHH
   VT = verification time (end_ft) YYYYMMDDHH

   If RT is the same as VT
     output = NAME.LEVEL.RT.asc

   If RT is different than VT
     output = NAME.LEVEL.RT.VT.asc

Problems with file name convention

The above file name convention works for a simple GFS forecast. However, life quickly gets more complicated and a new file name convention was needed (-AAIGlong).




wgrib2 in_file -match ':HGT:400 mb:' -AAIG
The above line converts all the 400 mb HGT fields into an arcinfo ascii grid file.

See also: -AAIGlong, -csv

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: July 30, 2008
Disclaimer Privacy Policy