forked from Ouranosinc/xclim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<!--Please ensure the PR fulfills the following requirements! --> <!-- If this is your first PR, make sure to add your details to the AUTHORS.rst! --> ### Pull Request Checklist: - [x] This PR addresses an already opened issue (for bug fixes / features) - This PR fixes Ouranosinc#1283 - [x] Tests for the changes have been added (for bug fixes / features) - [x] (If applicable) Documentation has been added / updated (for bug fixes / features) - [x] CHANGES.rst has been updated (with summary of main changes) - [x] Link to issue (:issue:`number`) and pull request (:pull:`number`) has been added ### What kind of change does this PR introduce? * New `convert_doy` function to convert the calendar reference of doy data. Two options : - "year" : doy is seen as the fraction of the year. I.e. : 360 in `360_day` converts to 365 in `noleap`. - "date" : doy is seen as a date (MM-DD). 360 in `360_day` converts to 364 in `noleap` (December 30th). * Convert calendar can automatically apply `convert_doy` if its new argument `doy=True` (or `doy='date'`). * `convert_doy` will NOT convert the time coordinate. ### Does this PR introduce a breaking change? No. ### Other information:
- Loading branch information
Showing
3 changed files
with
171 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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