xoa.filter

Filtering utilities

Functions

convolve(data, kernel[, normalize])

N-dimensional convolution that takes care of nans

erode_coast(data[, until, kernel, xdim, ydim])

Just like erode_mask() but specialized for the horizontal dimensions

erode_mask(data[, until, kernel])

Erode the horizontal mask using smoothing

generate_isotropic_kernel(shape, window_func)

Generate an nD istropic kernel given a shape and a window function

generate_kernel(kernel, data[, isotropic, ...])

Generate a kernel that is compatible with a given data array

generate_orthogonal_kernel(kernels[, ...])

Generate an nD kernel from orthogonal 1d kernels

get_window_func(window, *args, **kwargs)

Get a window function from its name

shapiro_kernel(dims)

Generate a shapiro kernel