cdms2.axis¶
-
createAxis
(data, bounds=None, id=None, copy=0, genericBounds=False)[source]¶ Creates an axis.
To enabled automatic bounds generation see
setAutoBounds
.- Parameters
- data(list/
numpy.ndarray
) Values for axis.
- bounds
numpy.ndarray
2D array containing boundaries for
data
.- idstr
Axis identifier.
- copyint
0: Stores reference of data. 1: Stores copy of data.
- genericBoundsbool
True will create generic bounds if
bounds
is None.
- data(list/
- Returns
- cdms2.TransientAxis
Returns a
TransientAxis
containing data.