convolve
- convolve(fs, weights, repeat=1, **kwargs)
New in metview-python version 1.13.0.
Performs spatial convolution with the given kernel for each field in
fs.- Parameters
fs (
Fieldset) – input fieldsetweights (2D ndarray) – specifies the kernel as a matrix (2D array)
repeat (number) – specifies how many times the smoothing should be applied to
fs**kwargs –
these keyword arguments are directly passed to
scipy.ndimage.convolve()(see below)
- Return type
The computations are performed by calling
scipy.ndimage.convolve()and the extra**kwargsare directly passed to this function.Warning
convolve()has some limitations:it only works for regular latitude-longitude grids
for global grids in longitudinal (East-West) direction the resulting field is not smoothed properly along the periodic border
Note
See also
smooth_n_point()andsmooth_gaussian().