cfdm.Array.__array__¶
-
Array.
__array__
(dtype=None, copy=None)[source]¶ The numpy array interface.
New in version (cfdm): 1.8.7.0
- Parameters
- dtype: optional
Typecode or data-type to which the array is cast.
- copy:
None
orbool
Included to match the v2
numpy.ndarray.__array__
API, but ignored. The return numpy array is always independent.New in version (cfdm): 1.12.0.0
- Returns
numpy.ndarray
An independent numpy array of the data.
Examples
>>> isinstance(a, Array) True >>> n = numpy.asanyarray(a) >>> isinstance(n, numpy.ndarray) True