Version 3.0 Overview
CDMS version 3.0 is a significant enhancement of previous versions. The major changes were:
-
CDAT/CDMS was integrated with the Numerical Python masked array class MA.MaskedVariable. The MV submodule was added as a wrapper around MA.
-
Methods that read data, such as subRegion, subSlice, and the slice operations, return instances of class TransientVariable. The plot and regrid modules were modified to handle masked array input. The specifiers time=..., latitude=..., etc. were added to the I/O routines.
-
The class TransientVariable was added.
-
A number of new functions were added, notably subRegion and subSlice, which return instances of TransientVariable.
-
When a masked array is returned from a method, it is "squeezed": singleton dimensions are removed. In contrast, transient variables are not squeezed. I/O functions have a
squeeze
option. The method setAutoReshapeMode was removed.
-
Internal attributes are handled in the InternalAttributes class. This allows CDMS classes to be subclassed more readily.
-
The class Variable was renamed DatasetVariable.
-
The cu module was emulated in cdms. cu and cdms methods can be mixed.
-
The code was modularized, so that Python, CDMS, and Numerical Python can be built and installed separately. This significantly enhances the portability of the code.