xarray.computation.rolling.DataArrayCoarsen (original) (raw)
class xarray.computation.rolling.DataArrayCoarsen(obj, windows, boundary, side, coord_func)[source]#
__init__(obj, windows, boundary, side, coord_func)[source]#
Moving window object.
Parameters:
- obj (Dataset or 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.
- boundary (
{"exact", "trim", "pad"}
) – If ‘exact’, a ValueError will be raised if dimension size is not a multiple of window size. If ‘trim’, the excess indexes are trimmed. If ‘pad’, NA will be padded. - side (
'left'
or'right'
ormapping from dimension
to'left'
or'right'
) - coord_func (
function (name)
ormapping from coordinate name
tofunction (name).
)
Returns:
coarsen
Methods
Attributes