Initial prototype to refactor custom_seasons API with Xarray SeasonGrouper() API [WIP] #715
Draft
tomvothecoder wants to merge 17 commits intomainfrom
Draft
Initial prototype to refactor custom_seasons API with Xarray SeasonGrouper() API [WIP] #715tomvothecoder wants to merge 17 commits intomainfrom
custom_seasons API with Xarray SeasonGrouper() API [WIP] #715tomvothecoder wants to merge 17 commits intomainfrom
Conversation
- Remove logic for requiring all 12 months to be used
- Add conditional that determines whether subsetting time coordinates is necessary with custom seasons - Update docstrings for `season_config` - Add tests
- Months are also shifted in the `_preprocess_dataset()` method now. Before months were being shifted twice, once when dropping incomplete seasons or DJF, and a second time when labeling time coordinates.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
custom_seasonsto use Xarray'sSeasonGrouper()API [WIP] #714Checklist
If applicable: