wrf.smooth2d¶
-
wrf.smooth2d(field, passes, meta=True)¶ Return the field smoothed.
This routine does not modify the original data.
Parameters: - field (
xarray.DataArrayornumpy.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 anumpy.ma.MaskedArray or a :class:`xarray.DataArraywith a _FillValue attribute. - passes (
int) – The number of smoothing passes. - meta (
bool) – Set to False to disable metadata and returnnumpy.ndarrayinstead ofxarray.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.DataArrayobject. Otherwise, the result will be either anumpy.ndarrayor anumpy.ma.MaskedArraydepending on the type for field.Return type: - field (