cf.Data.varray

Data.varray

A numpy array view of the data array.

Deprecated at version 3.14.0. Data are now stored as dask arrays for which, in general, a numpy array view is not robust.

Note that making changes to elements of the returned view changes the underlying data.

Examples

>>> a = d.varray
>>> type(a)
<type 'numpy.ndarray'>
>>> a
array([0, 1, 2, 3, 4])
>>> a[0] = 999
>>> d.varray
array([999, 1, 2, 3, 4])