cf.AuxiliaryCoordinate.varray¶

AuxiliaryCoordinate.
varray
¶ A numpy array view of the data array.
Changing the elements of the returned view changes the data array.
See also
Examples:
>>> f.data <CF Data(5): [0, ... 4] kg m1 s2> >>> 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) [999 1 2 3 4] >>> f.data <CF Data(5): [999, ... 4] kg m1 s2>