geoutils.Raster.get_nanarray#
- Raster.get_nanarray(floating_dtype='float32', *, return_mask=False)[source]#
Get NaN array from the raster.
Optionally, return the mask from the masked array.
- Parameters:
- Return type:
ndarray[tuple[Any,...],dtype[Union[floating[Any],integer[Any]]]] |tuple[ndarray[tuple[Any,...],dtype[Union[floating[Any],integer[Any]]]],ndarray[tuple[Any,...],dtype[bool]]]
:returns Array with masked data as NaNs, (Optional) Mask of invalid data.