xarray.computation.rolling.DataArrayRolling (original) (raw)
class xarray.computation.rolling.DataArrayRolling(obj, windows, min_periods=None, center=False)[source]#
__init__(obj, windows, min_periods=None, center=False)[source]#
Moving window object for DataArray. You should use DataArray.rolling() method to construct this object instead of the class constructor.
Parameters:
- obj (DataArray) – Object to window.
- windows (mapping of hashable to int) – A mapping from the name of the dimension to create the rolling exponential window along (e.g. time) to the size of the moving window.
- min_periods (int, 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, default: False) – Set the labels at the center of the window. The default, False, sets the labels at the right edge of the window.
Returns:
rolling (type of input argument
)
Methods
Attributes