climpred.smoothing.temporal_smoothing#
- climpred.smoothing.temporal_smoothing(ds: Dataset, tsmooth_kws: Optional[Dict[str, int]] = None, how: str = 'mean', d_lon_lat_kws: Optional[Dict[str, float]] = None) Dataset [source]#
Apply temporal smoothing by creating rolling smooth-timestep means.
- Parameters:
ds – input to be smoothed.
tsmooth_kws – length of smoothing of timesteps. Defaults to
{"time": 4}
(see Goddard et al. [2013]).how – aggregation type for smoothing. Allowed:
["mean", "sum"]
. Default:"mean"
.d_lon_lat_kws – leads nowhere but consistent with
spatial_smoothing_xesmf
.
- Returns:
input with
smooth
timesteps less and labeling"1-(smooth-1)", "...", ...
.
References
Goddard et al. [2013]