8000 Changes to the modal code to increase the percentage to 30% and alter some of the groupings to give a better daily summary symbol. by Katie-Howard · Pull Request #1925 · metoppv/improver · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Changes to the modal code to increase the percentage to 30% and alter some of the groupings to give a better daily summary symbol. #1925

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

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

Katie-Howard
Copy link
Contributor
@Katie-Howard Katie-Howard commented Jul 12, 2023

After investigating the various options for improving the daily summary symbol we decided that the best option in the time allowed was:

Change the minimum modal percentage from 10% to 30% to allow the code to use the grouping in more situations.
Change the groupings to make them more representative. This involved adding drizzle to the "rain" grouping and also adding a "visibility" grouping containing mist and fog. The new groupings can be seen below:

"snow": [23, 24, 26, 27] (light snow shower, light snow, heavy snow shower, heavy snow)
"sleet": [17, 18] (sleet shower, sleet)
"rain": [10, 11, 12, 14, 15] (light shower, drizzle, light rain, heavy shower, heavy rain)
"convection": [20, 21, 29, 30] (hail shower, hail, thunder shower, thunder)
"visibility": [5, 6] (mist, fog)

This ticket makes those changes.

Acceptance test data: metoppv/improver_test_data#22

Testing:

  • Ran tests and they passed OK
  • Added new tests for the new feature(s)

…e the groupings to provide a more representative daily summary symbol.
@codecov
Copy link
codecov bot commented Jul 12, 2023

Codecov Report

Merging #1925 (59fdfe0) into master (6167eb8) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1925      +/-   ##
==========================================
+ Coverage   98.35%   98.36%   +0.01%     
==========================================
  Files         121      122       +1     
  Lines       11523    11642     +119     
==========================================
+ Hits        11333    11452     +119     
  Misses        190      190              
Impacted Files Coverage Δ
improver/wxcode/utilities.py 100.00% <ø> (ø)
improver/wxcode/modal_code.py 100.00% <100.00%> (ø)

... and 3 files with indirect coverage changes

Copy link
Contributor
@MoseleyS MoseleyS left a comment

Choose a reason for hiding this comment

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

The code is fine. Please can you update the description for this PR to describe in words what you have changed? It might help in the future with documentation / release notes / tracking bugs.

@Katie-Howard Katie-Howard changed the title Changes to the modal code to increase the percentage to 30% and chang… Changes to the modal code to increase the percentage to 30% and change some of the groupings. Jul 12, 2023
@Katie-Howard Katie-Howard changed the title Changes to the modal code to increase the percentage to 30% and change some of the groupings. Changes to the modal code to increase the percentage to 30% and alter some of the groupings to give a better daily summary symbol. Jul 12, 2023
@bayliffe bayliffe self-assigned this Jul 13, 2023
Copy link
Contributor
@bayliffe bayliffe left a comment

Choose a reason for hiding this comment

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

Thanks Katie, this looks fine.

@bayliffe bayliffe merged commit 57a1003 into metoppv:master Jul 13, 2023
@bayliffe bayliffe assigned Katie-Howard and unassigned bayliffe Jul 13, 2023
bayliffe added a commit to bayliffe/improver that referenced this pull request Jul 28, 2023
* upstream/master:
  Fix to the wind vertical displacement adjustment implementation (metoppv#1927)
  Add function which normalises input cubes according to a reference (metoppv#1919)
  Skip ECC bounds usage when converting probabilities to percentiles (metoppv#1926)
  Add CLIs to support rescaling of the forecast based on altitude difference (metoppv#1
8000
917)
  Changes to the modal code to increase the percentage to 30% and change the groupings to provide a more representative daily summary symbol. (metoppv#1925)
  Add plugins to support rescaling of the forecast based on altitude difference (metoppv#1916)
  Support conversion from percentiles to probabilities (metoppv#1924)
  Correct handling of reference time in weather_code plugin (metoppv#1920)
  Add CLI for clipping cubes (metoppv#1918)
  Update cbh ecc name (metoppv#1922)
  Updates Broadcast and expand_bounds in Combine Plugin (metoppv#1914)
  Mobt515 cloud base height spot extraction (metoppv#1911)
  MOBT-494: Cube title setting in weather symbol code (metoppv#1912)
  MOBT512-masking percentiles for cloud base height (metoppv#1908)
  Mobt 496 enforce forecast between references (metoppv#1907)
MoseleyS pushed a commit to MoseleyS/improver that referenced this pull request Aug 22, 2024
…e the groupings to provide a more representative daily summary symbol. (metoppv#1925)
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
0