windows.RectangularWindow

class windows.RectangularWindow(window_size: int | tuple[int, ...])
__init__(window_size: int | tuple[int, ...]) None

Methods

__init__(window_size)

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

window_size