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

wgrib2: -grid_changes


The -grid_changes option is a safety option. Normally we don't expect the grid to change within a grib file, and many programs would fail if the grid did change. Wgrib2 will work if the grid changes but it would work much slower. (Each grid change would require a recalculation of the grid parameters such as the the grid point locations if needed.) The -grid_changes option prints to stderr, the number of times the grid changed during processing of the file. Only grib (sub-)messages that were processed and not skipped by a -match or similar option will count.




$ wgrib2 fcst.grb2 -bin fcst.bin -grid_changes -count
-sh-3.00$ wgrib2 fcst.grb2 -bin fcst.bin -grid_changes
1:4:d=2007032600:HGT:1000 mb:anl:
2:422561:d=2007032600:HGT:1000 mb:3 hour fcst:
Good: only one grid
number of records: 2
In the above example, we converted the file to binary. It consisted of a single grid and two records.

See also: count

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: Sep 13, 2016
Disclaimer Privacy Policy