package documentation

Routines that use masks to assist in array operations

Module interp ND interpolation for numpy arrays

From __init__.py:

Function from_nan_and_inf Gets a mask of all nan and inf values
Function from_shape Gets a mask of shape and start-end coords extent that are inside poly_shape
def from_nan_and_inf(a: np.ndarray[[...], float]) -> np.ndarray[[...], bool]:

Gets a mask of all nan and inf values

Parameters
a:np.ndarray[[...], float]np.ndarray A numpy array of pixels
Returns
np.ndarray[[...], bool]A boolean numpy array that is True where a is NAN and INF.
def from_shape(shape: S[N], geo_shape: GeoShape, extent: np.ndarray[[N, 2], float] | None = None) -> np.ndarray[S[N], bool]:

Gets a mask of shape and start-end coords extent that are inside poly_shape