Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snow season length is not a season length #1703

Closed
aulemahal opened this issue Apr 11, 2024 · 0 comments · Fixed by #1708
Closed

Snow season length is not a season length #1703

aulemahal opened this issue Apr 11, 2024 · 0 comments · Fixed by #1708
Assignees
Labels
bug Something isn't working indicators Climate indices and indicators invalid This doesn't seem right
Milestone

Comments

@aulemahal
Copy link
Collaborator

Snow season length indicators (snd_season_length, snw_season_length) are counting the number of days with snow, without the "season" notion (windowed run at the start and the end).

def snw_season_length(

def snd_season_length(

@aulemahal aulemahal added bug Something isn't working indicators Climate indices and indicators labels Apr 11, 2024
@aulemahal aulemahal added this to the Summer 2024 milestone Apr 11, 2024
@aulemahal aulemahal self-assigned this Apr 11, 2024
@Zeitsperre Zeitsperre added the invalid This doesn't seem right label Apr 16, 2024
aulemahal added a commit that referenced this issue Apr 18, 2024
<!--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 #1703
- [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?

* Renames old `sn[dw]_season_length` to `sn[dw]_days_above`, which
better reflects what they actually do.
* Implement `sn[dw]_season_length` as an actual season length :
duraction between a start and an end, both defined as the first day of a
period of minimum length continuously above/under a given threshold.
* Rephrase the documentation of these indicators and of the start/end
variants.
* Update the threshold of `snw`, like we said we'd do in 0.47 (youpsi).

### Does this PR introduce a breaking change?
Yes. An indicator name now points to another computation.

### Other information:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working indicators Climate indices and indicators invalid This doesn't seem right
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants