smooth_gaussian
- smooth_gaussian(fs, sigma=1, repeat=1, **kwargs)
New in metview-python version 1.13.0.
Performs spatial smoothing using a Gaussian filter for each field in
fs.- Parameters
fs (
Fieldset) – input fieldsetsigma (number) – standard deviation for Gaussian kernel
repeat (number) – specifies how many times the smoothing should be applied to
fs**kwargs –
these arguments are directly passed to
scipy.ndimage.gaussian_filter()(see below)
- Return type
The computations are performed by calling
scipy.ndimage.gaussian_filter()and the extra**kwargsare directly passed to this function.Warning
smooth_gaussian()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(),convolve()andq_vector().