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

wgrib2: -one_line

Introduction

The -one_line option changes the format of the inventory so all the items are one line. This is useful in using -grid, for example, in making inventories that can be grepped.

Suppose we want select fields by the grid type.

-sh-2.05b$ ./wgrib2 eta.t00z.awphys18.grb2 -d 1 -s -grid
1:0:d=2003090300:MSLET:mean sea level:18 hour fcst:grid_template=30:
        Lambert Conformal: (614 x 428) scan WE:SN res 8
        Lat1 12.19 Lon1 226.541 Lov 265
        Latin1 25 Latin2 25 LatSP 0 LonSP 0
              North Pole (614 x 428) Dx 12.191 Dy 12.191 mode 8
The above format doesn't work with grep. By using the -one_line option, we can easily extract specific grids.
-sh-2.05b$ ./wgrib2 eta.t00z.awphys18.grb2 -d 1 -s -grid -one_line
1:0:d=2003090300:MSLET:mean sea level:18 hour fcst:grid_template=30: 
Lambert Conformal: (614 x 428) scan WE:SN res 8 Lat1 12.19 Lon1 226.541 
Lov 265 Latin1 25 Latin2 25 LatSP 0 LonSP 0       North Pole (614 x 428) 
Dx 12.191 Dy 12.191 mode 8

Usage

-one_line
      change format so that all the information/field is on one line

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