cf.Index.varray¶
-
Index.
varray
¶ A numpy array view of the data.
Deprecated at version 3.14.0.
Changing the elements of the returned view changes the data array.
See also
array
,data
,datetime_array
,dask_array
Examples
>>> f.data <CF 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) [999 1 2 3 4] >>> f.data <CF Data(5): [999, ... 4] kg m-1 s-2>