Skip to content

[Enhancement]: Refactor custom_seasons to use Xarray's SeasonGrouper() API [WIP] #714

Open
@tomvothecoder

Description

@tomvothecoder

Is your feature request related to a problem?

The current custom_seasons back-end uses Pandas DataFrames to store Datetime components, which then get manipulated downstream (e.g., shifting months for spanning calendar years, dropping incomplete seasons).

Describe the solution you'd like

In Xarray PR #9524, the SeasonGrouper() API will introduce:

  • groupby() custom seasons
  • support seasons that span the calendar year (uses previous year for correct grouping)
  • drop_incomplete to drop incomplete seasons

Describe alternatives you've considered

No response

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

  • Status

    In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions