Skip to content

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

@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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions