windows.Window
- class windows.Window
Abstract base class for windows
- __init__(*args, **kwargs)
Methods
__init__(*args, **kwargs)define_windowed_shape(reduce[, a, shape])Define the shape of the windowed array
get_fringes(reduce[, ndim])Get the fringes of the window, i.e. the number of pixels between the center and the edge of the window.
get_ind_inner(reduce[, ndim])"Numpy compatible slices to remove the fringes from an array, where the values are NaN
get_mask([ndim])get_raster_shape()get_shape([ndim])get_threshold([fraction_accepted, ndim])Minimum amount of data points necessary to calculate the statistic in the window
validate(reduce[, allow_even, a, shape])"Validate the window for a given array (a) or shape
Attributes
masked- define_windowed_shape(reduce: bool, a: Array | None = None, shape: tuple[int, ...] | None = None) tuple[int, ...]
Define the shape of the windowed array
- get_fringes(reduce: bool, ndim: int = 2) tuple[int, ...]
Get the fringes of the window, i.e. the number of pixels between the center and the edge of the window
- get_ind_inner(reduce: bool, ndim: int = 2) tuple[slice, ...]
“Numpy compatible slices to remove the fringes from an array, where the values are NaN
- get_threshold(fraction_accepted: float = 0.7, ndim: int = 2) float
Minimum amount of data points necessary to calculate the statistic in the window
- validate(reduce: bool, allow_even: bool = False, a: Array | None = None, shape: tuple[int, ...] | None = None) None
“Validate the window for a given array (a) or shape