cfdm.H5netcdfArray.astype¶
-
H5netcdfArray.
astype
(dtype, **kwargs)[source]¶ Cast the data to a specified type.
New in version (cfdm): 1.12.1.0
- Parameters
- dtype:
str
or dtype Typecode or data-type to which the array is cast.
- kwargs: optional
Any other keywords accepted by
np.astype
.
- dtype:
- Returns
np.ndarray
The data with the new data type