Calculating Seasonal Means (DJFM, etc.).
Goal: Learn about seasonal means calculation in CDAT.
When calculating any climatology it is important to remember that:
Climatology, Departures and Anomalies Tools work on BOUNDS, not on time values!!!
Starting from version 4.0, CDAT DOES NOT generate bounds automatically anymore (if not in a file already).
In order to fix that use
# obj. is a time or a slab axis
cdutil.setTimeBoundsMonthly(obj)
cdutil.setTimeBoundsYearly(obj)
cdutil.setTimeBoundsDaily(obj, frequency=1)
DJFM = cdutil.times.Seasons('DJFM')