smooth_rectangular#
- metpy.calc.smooth_rectangular(scalar_grid, size, passes=1)#
Filter with a rectangular window smoother.
- Parameters
- Returns
array-like – The filtered scalar grid
See also
smooth_window
,smooth_circular
,smooth_n_point
,smooth_gaussian
Notes
This function can be applied multiple times to create a more smoothed field and will only smooth the interior points, leaving the end points with their original values (this function will leave an unsmoothed edge of size (n - 1) / 2 for each n in size around the data). If a masked value or NaN values exists in the array, it will propagate to any point that uses that particular grid point in the smoothing calculation. Applying the smoothing function multiple times will propagate NaNs further throughout the domain.
Examples using metpy.calc.smooth_rectangular
#
Smoothing