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

wgrib2: -set_ftime


Changing the time stamp is more complicated than necessary. Depending on the type of time stamp, the options needed differ, and the options have some arbitary limitions. It's all on how wgrib2 evolved. Originally there was PDT 4.0 and -set_ftime and -set_date were written to modify the time stamp. Next came an option to support PDT 4.8, -set_ave. The -set_ave option allowed conversion of PDT 4.0 to 4.8.

Original: :d=2014113018:6 hour fcst:
New:      :d=2014122500:12 hour fcst:
   options: -set_date 2014122500 -set_ftime "12 hour fcst"

Original: :d=2014113018:6 hour fcst:
New:      :d=2014122500:0-6 hour ave fcst:
   options: -set_date 2014122500 -set_ave "0-6 hour ave fcst"

Original: :d=2014113018:6 hour fcst:
New:      :d=2014122500:124@6 hour ave(0-6 hour ave fcst),missing=0:
   options: -set_date 2014122500 -set_ave "124@6 hour ave(0-6 hour ave fcst),missing=0"
The options, -set_ave and -set_ftime may have to convert between PDTs. Only a subset of the conversions are supported.

See also:

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