Hi Robb,
I fixed the Time problem but I was comparing the results with wgrib2. It
seems that wgrib2 calculates the forecast time differently then our grib
library. Our library figures out the valid time that is the end of the
accumulation interval verses the wgrib2 that uses the start of the interval.
Since the accumulation interval is 1 month the difference should be no
bigger than 1 month... The way I see it, for the monthly average of
January 1979 instead of 1979010100 one would see 1979013123 (or
1979020100).
hours since 1979-01-01T00:00:00Z
time = 124, 856, 1540, 2280, 3004, 3744, ....
1979-01-06 04:00:00Z
1979-02-05 16:00:00Z
1979-03-06 04:00:00Z
1979-04-06 00:00:00Z
...
wgrib2:
1.1:0:d=1979010100
2.1:149612:d=1979020100
Does this make sense?
While it appears that there is a 1 month time-step between records the
first one starts at 124 hours, when it *should* start at 00Z
(1979010100). It does get the months right, but perhaps this
difference on the first record might wrongly increase the gaps between
each record, eventually leading to differences in the Time (month)
itself after several steps. Nevertheless the 124 hours at the first
record makes no sense since it's supposed to be a monthly average!
Do you believe that, despite the wrong initial time, the months will
correspond to what it's supposed to be, or that eventually it will
skip a month?
Best Regards,
___________________________
Guilherme O. Chagas
address@hidden