Personal tools
You are here: Home CDAT Tips and Tricks Math Tips Calculating Seasonal Means (DJFM, etc.).
Document Actions

Calculating Seasonal Means (DJFM, etc.).

by Renata McCoy last modified 2007-05-08 10:35

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')
 
 

Powered by Plone