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