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_date

wgrib2: -set_date


The -set_date option changes the reference date of the in-memory grib (sub-)message. You can write out the message with the new date by the -grib (fast) and -grib_out (slow) options. Of course if the in-memory grid values have changed, you have to use the latter option.

The -set_date X option changes the date code to X.


-set_date  X
                    X = starting date
                    YYYY=year, MM=month, DD=day, HH=hour, mm=minute, SS=second
                    if MM/DD/HH/mm/SS is missing, the original MM/DD/mm/SS is unaltered


# every field has the same date code
$ wgrib p.grb -set_date 2010020304
1:0:d=2010020304:PRMSL:mean sea level:3 hour fcst:
2:17960:d=2010020304:PRES:1 hybrid level:3 hour fcst:
3:34248:d=2010020304:HGT:1 hybrid level:3 hour fcst:
4:48055:d=2010020304:TMP:1 hybrid level:3 hour fcst:
See also: -grib, -grib_out,

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