xCDAT / xcdat

An extension of xarray for climate data analysis on structured grids.
https://xcdat.readthedocs.io/en/latest/
Apache License 2.0
119 stars 12 forks source link

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

Open tomvothecoder opened 1 week ago

tomvothecoder commented 1 week ago

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:

Describe alternatives you've considered

No response

Additional context

No response