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

ggrib v2.0 --Extraction of geographic subdomains from GRIB-1 files

A program for extraction of geographic subdomains from GRIB files now exists. Comments are appreciated, future versions may appear.
  • By v1.0 ggrib tackles global files and a subdomain that crosses the discontinuity (called the branch cut among math freaks, geophysicists place the discontinuity at 0 or 180o longitude, whichever is more convenient). If lon1==lon2, ggrib will attempt to reproduce global grids where the discontinuity has been moved to lon1.
  • The grid MUST be in geographic coordinates (lon,lat). The grid organization is arbitrary, but it is recommended that the ECMWF standard  be adhered to (first grid point in NW corner, adjacent grid points in east-west direction).
  • By v1.0 the original binary representation together with bitmap section (if present) is retained.
  • By v2.0 dots can be substituted for bounding coords, in which case the original grid boundaries will be used (see example 3).
  • By v2.0 specifying bounding coords that go beyond the original grid boundaries will not produce an error but will quietly be adjusted to the original grid boundaries.
Syntax:

ggrib gribfile newgribfile westlon southlat eastlon northlat

Example:

ggrib world.grb smallworld.grb -10.0 45.0 35.0 70.0

Produces an excerpt from a global file with bounding coordinates (10W,45N) and (35E,70N).

Example 2:

ggrib world.grb smallworld.grb -170.0 45.0 -170.0 70.0

Produces a zonal "ribbon" from 45N to 70N that extends around the globe.

Example 3:

ggrib oldworld.grb bravenewworld.grb -20 . . 75

Prodcues a new grid which extends from 20W to the eastern rim of the old grid, takes the southern latitude of the old grid and goes to 75N.

Installation:

tar xvf ggrib.tar
cd ggrib
make -f ggrib.make

The library gribw must be compiled in advance using gribwlib.make. This software along with the other files listed in ggrib.make are all contained in the tape archive gribw.tar found at ftp://ftp.cpc.ncep.noaa.gov/wd51we/gribw.
 
 

--
Oyvind Breivik, Norwegian Meteorological Institute, www.dnmi.no
Marine  Forecasting  Centre,  Alleg 70,  N-5007 Bergen,  Norway
Office:      +47-55236623 Fax:  +47-55236703  Mob: +47-48115241
Switchboard: +47-55236600 Home: +47-55314171


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