windows.MaskedWindow

class windows.MaskedWindow(mask: numpy.ndarray[tuple[int, ...], numpy.bool])
__init__(mask: ndarray[tuple[int, ...], bool]) None

Methods

__init__(mask)

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

match_shape(ndim)

validate(reduce[, allow_even, a, shape])

"Validate the window for a given array (a) or shape

Attributes

masked

mask