cfdm.AuxiliaryCoordinate.array

AuxiliaryCoordinate.array

A numpy array deep copy of the data.

Changing the returned numpy array does not change the data array.

New in version (cfdm): 1.10.0.0

See also

data, datetime_array

Examples

>>> f.data
<Data(5): [0, ... 4] kg m-1 s-2>
>>> a = f.array
>>> type(a)
<type 'numpy.ndarray'>
>>> print(a)
[0 1 2 3 4]
>>> a[0] = 999
>>> print(a)
[999 1 2 3 4]
>>> print(f.array)
[0 1 2 3 4]
>>> f.data
<Data(5): [0, ... 4] kg m-1 s-2>