cf.Data.varray

Data.varray

A numpy array view the data array.

The data type of the array is as returned by the dtype attribute.

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])

Previous topic

cf.Data.Units

Next topic

cf.Data.dimensions

This Page