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

wgrib2: -end


The -end option stops the processing of the grib file after one line of the inventory has been written. The -end option is designed to improve speed when used with the -match option




$ wgrib2 ../example/eta.t00z.awphys18.grb2 -match "HGT:500 mb" -text hgt.txt -end 

The above line writes out the first 500 mb HGT field to the file hgt.txt and stops 
reading the file.

$ wgrib2 ../example/eta.t00z.awphys18.grb2 -match "HGT:500 mb" -text hgt.txt -end 

The above line writes out all 500 mb HGT fields to the file hgt.txt.  This wastes 
time if you only have one matching field.

See also: -match, -not

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