Skip to content

rolling documentation question #11093

Closed

Description

@barronh

The current documentation for the DataArrayRolling refers to the windows as "exponential window." I think the object uses an unweighted approach (i.e, not exponentially rolling). Maybe this is this is copied over from the RollingExp object?

DataArrayRolling:

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.

RollingExp:

windows : mapping of hashable to int (or float for alpha type)
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.

Similar question for DatasetRolling and Coarsen.

Thanks for any guidance.

p.s, running on linux, python3.9, with xarray 2023.12.0. and on linux, python3.12 with xarray 2025.12.0. Documentation citations are from current main branch.

Activity

  1. dcherian commented on Jan 20, 2026

    @dcherian
    Contributor

    Yes exactly; the windows for rolling and coarsen are unweighted. A PR to fix the docstring is very welcome

  2. barronh commented on Jan 20, 2026

    @barronh
    ContributorAuthor

    Will do.

  3. added a commit that references this issue on Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions