wgrib2: -set_date
Introduction
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.
Usage
-set_date X
X = starting date
X=YYYY, YYYYMM, YYYYMMDD, YYYYMMDDHH, YYYYMMDDHHmm, YYYYMMDDHHmmSS
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
Example
# 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,
|