wrf.smooth2d

wrf.smooth2d(field, passes, meta=True)

Return the field smoothed.

This routine does not modify the original data.

Parameters:
  • field (xarray.DataArray or numpy.ndarray) – The field to smooth, which must be at least two dimensions. Missing/fill values will be ignored as long as the type is either a numpy.ma.MaskedArray or a :class:`xarray.DataArray with a _FillValue attribute.
  • passes (int) – The number of smoothing passes.
  • meta (bool) – Set to False to disable metadata and return numpy.ndarray instead of xarray.DataArray. Default is True.
Returns:

The smoothed field. If xarray is enabled and the meta parameter is True, then the result will be an xarray.DataArray object. Otherwise, the result will be either a numpy.ndarray or a numpy.ma.MaskedArray depending on the type for field.

Return type:

xarray.DataArray, numpy.ma.MaskedArray or numpy.ndarray)