cf.Data.array¶
-
Data.
array
¶ A numpy array copy the data array.
Note
If the data array is stored as date-time objects then a numpy array of numeric reference times will be returned. A numpy array of date-time objects may be returned by the
datetime_array
attribute.See also
Examples:
>>> d = cf.Data([1, 2, 3.0], 'km') >>> a = d.array >>> isinstance(a, numpy.ndarray) True >>> print(a) [ 1. 2. 3.] >>> d[0] = -99 >>> print(a[0]) 1.0 >>> a[0] = 88 >>> print(d[0]) -99.0 km