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 > wgrib2api: grb2_mk_inv
 

wgrib2api: grb2_mk_inv(..)

Introduction

To read grib using wgrib2api, you need to have an index or inventory file. The index file is used for searching and it is quick to create. The format of the index file keeps expanding as needed. For example, chemical tracers was added to the grib format, so naturally the index file had to include the possibility of a chemical type.

The index file created by grb2_mk_inv('file.grb2', 'file.inv') is the same as created by

  wgrib2 file.grb2 -Match_inv > file.inv

The inv file can be created before the fortran program is run. This may be more efficient if multiple programs need to create the inv of the same file.

Usage

    iret = grb2_mk_inv(GRB2, INV)
    iret:  integer
           0 if index file created
           1 if index file not created
    GRB2: character (len=*) existing grib2 file
    INV:  character (len=*) index file that is created

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