-
Notifications
You must be signed in to change notification settings - Fork 89
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
Update generate-percentiles Doc String #1923
Conversation
improver/cli/generate_percentiles.py
Outdated
be masked. If True, then where the percentile is higher than | ||
the probability of the diagnostic existing the outputted | ||
percentile will be masked. | ||
The probability of being below the final threshold in | ||
forecast_probabilities is used as the probability of the diagnostic | ||
existing. | ||
This is only implemented to work when converting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
be masked. If True, then where the percentile is higher than | |
the probability of the diagnostic existing the outputted | |
percentile will be masked. | |
The probability of being below the final threshold in | |
forecast_probabilities is used as the probability of the diagnostic | |
existing. | |
This is only implemented to work when converting | |
be masked. This masking acts to cap the maximum percentile | |
that can be generated for any grid point relative to the | |
probability of exceeding the highest threshold at that point. | |
For example, if the probability of a temperature exceeding 40C | |
is 5%, the 95th and above percentiles will all be masked. | |
Likewise, if at some grid point the probability of the cloud base | |
being below 15000m (the highest threshold) is 0.7 then every | |
percentile above the 70th would be masked. | |
This is only implemented to work when converting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've updated this part with a conglomeration of what you suggested and what I had originally written.
Codecov Report
@@ Coverage Diff @@
## master #1923 +/- ##
=======================================
Coverage 98.37% 98.37%
=======================================
Files 122 122
Lines 11707 11707
=======================================
Hits 11517 11517
Misses 190 190
|
* Clarifys docstring of generate-percentiles regarding mask_percentiles option * Updates doc string following review --------- Co-authored-by: Marcus Spelman <[email protected]>
This PR updates the doc sting of generate-percentiles and related plugin to clarify the option mask_percentiles. This was requested by @bayliffe in the review of https://github.com/MetOffice/improver_suite/pull/1684
Testing: