cf.Index.__array__

Index.__array__(dtype=None, copy=None)[source]

The numpy array interface.

New in version (cfdm): 1.7.0

Parameters
dtype: optional

Typecode or data-type to which the array is cast.

copy: None or bool

Included to match the v2 numpy.ndarray.__array__ API, but ignored. The returned numpy array is always independent.

New in version (cfdm): 1.12.0.0

Returns
numpy.ndarray

An independent numpy array of the data.