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

wgrib2: -cyclic


Sometimes it is useful to know whether the domain is cyclic. For example, the large domain goes from 0E to 359W by steps of 1 degree. Now there is a request for a subdomain that goes from 350E (left) to 10E (right). Knowing that the domain is cyclic is useful in this case. The -small_grib option calls the cyclic code.

The -cyclic option will only detect cyclic grids that are either lat-lon, Gaussian or Mercator. All other grids will return a not-cyclic response. In addition, staggered and thinned grids will also return a not-cyclic response. The test for cyclic is a bit loose because NCEP grib2 files often have the lon(gitude) and dlon(gitude) to the nearest millidegree rather than the nearest microdegree. (Reason 1: grib1 only stored the lon and dlon to the nearest millidegree. Reason 2: most NCEP codes use single precision for the longitudes and latitudes.)




$ wgrib2 gdt140.g2 -cyclic -nl -grid
1:0:not cyclic:
	Lambert Azimuthal Equal Area grid: (1050 x 1050) input WE:NS output WE:SN res 48
	Lat1 18.876988 Lon1 225.000000 Cen Lon 0.000000 Std Par 90.000000
	Dx 10000.000000 m Dy 10000.000000 m mode 48

$ wgrib2 gep19.t00z.pgrb2af180 -cyclic -nl -grid
	lat-lon grid:(360 x 181) units 1e-06 input WE:NS output WE:SN res 48
	lat 90.000000 to -90.000000 by 1.000000
	lon 0.000000 to 359.000000 by 1.000000 #points=65160

See also: -small_grib,

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: Dec 15, 2015
Disclaimer Privacy Policy