xarray.Dataset.rolling#
- Dataset.rolling(dim=None, min_periods=None, center=False, **window_kwargs)[source]#
Rolling window object for Datasets.
- Parameters:
dim (
dict
, optional) – Mapping from the dimension name to create the rolling iterator along (e.g. time) to its moving window size.min_periods (
int
orNone
, default:None
) – Minimum number of observations in window required to have a value (otherwise result is NA). The default, None, is equivalent to setting min_periods equal to the size of the window.center (
bool
orMapping
toint
, default:False
) – Set the labels at the center of the window.**window_kwargs (optional) – The keyword arguments form of
dim
. One of dim or window_kwargs must be provided.
- Returns:
See also