cfdm.RaggedIndexedContiguousArray.__array__¶
-
RaggedIndexedContiguousArray.__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:
Noneorbool 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.ndarrayAn independent numpy array of the data.
Examples
>>> isinstance(a, Array) True >>> n = numpy.asanyarray(a) >>> isinstance(n, numpy.ndarray) True