mmspy.compute.particle.smooth.smooth_distribution#

mmspy.compute.particle.smooth.smooth_distribution(da, sigma=1.0, kwargs={'boundary': 'extend', 'nan_treatment': 'interpolate'})#

Apply a smoothing kernel on a distribution function.

Parameters:
  • da (DataArray) – Xarray data array.

  • sigma (float) – How large the kernel is, only applicable for 2D distribution.

  • kwargs (dict) – Additional keywords for convolve.

Returns:

smoothed_da (DataArray) – Smoothed data array