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

Update generate-percentiles Doc String #1923

Merged
merged 3 commits into from
Aug 3, 2023

Conversation

mspelman07
Copy link
Contributor

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:

  • Ran tests and they passed OK

Comment on lines 81 to 87
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

Copy link
Contributor Author

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.

@bayliffe bayliffe assigned mspelman07 and unassigned bayliffe Jul 13, 2023
@codecov
Copy link

codecov bot commented Jul 26, 2023

Codecov Report

Merging #1923 (3376adc) into master (e1523c2) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1923   +/-   ##
=======================================
  Coverage   98.37%   98.37%           
=======================================
  Files         122      122           
  Lines       11707    11707           
=======================================
  Hits        11517    11517           
  Misses        190      190           
Files Changed Coverage Δ
...semble_copula_coupling/ensemble_copula_coupling.py 99.21% <ø> (ø)

@mspelman07 mspelman07 assigned bayliffe and unassigned mspelman07 Jul 26, 2023
@bayliffe bayliffe removed their assignment Jul 27, 2023
@brhooper brhooper self-assigned this Aug 3, 2023
@brhooper brhooper merged commit 6a82518 into metoppv:master Aug 3, 2023
@brhooper brhooper assigned mspelman07 and unassigned brhooper Aug 3, 2023
MoseleyS pushed a commit to MoseleyS/improver that referenced this pull request Aug 22, 2024
* Clarifys docstring of generate-percentiles regarding mask_percentiles option

* Updates doc string following review

---------

Co-authored-by: Marcus Spelman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants