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

PoP Refactoring #2050

Merged
merged 11 commits into from
Nov 14, 2024
Merged

PoP Refactoring #2050

merged 11 commits into from
Nov 14, 2024

Conversation

eric-gade
Copy link
Collaborator

What does this PR do? 🛠️

Implements the proposed Probability of Precipitation (PoP) data issues outlined in #1982

What does the reviewer need to know? 🤔

Though it's a bunch of complicated munging, there's not much to know. One exception: we currently round to the nearest 5 place using normal Math rounding rules, meaning that things like 9 will round up to 10. If this is not ok @shadkeene we can fix to round down.

Screenshots (if appropriate): 📸

Mobile

localhost_8080_point_32 776_-79 931_(iPhone SE) (1)

Desktop

localhost_8080_point_32 776_-79 931_ (1)

@eric-gade eric-gade changed the title Eg 1982 fix daily high low calc PoP Refactoring Nov 7, 2024
eric-gade and others added 2 commits November 7, 2024 12:46
-- What
In our test data, there are gaps in the gridpoint PoP hourly
information. These might not exist in real life, but we should check
for them when trying to compute a max PoP for a given period/day.

If there is no `probabilityOfPrecipitation` for a given hour, we
return 0 as the probability when trying to compute the max for the period.
@eric-gade eric-gade marked this pull request as ready for review November 7, 2024 17:52
Copy link
Collaborator

@jamestranovich-noaa jamestranovich-noaa left a comment

Choose a reason for hiding this comment

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

LGTM and makes sense to me

@eric-gade eric-gade merged commit 21ef824 into main Nov 14, 2024
20 of 21 checks passed
@eric-gade eric-gade deleted the eg-1982-fix-daily-high-low-calc branch November 14, 2024 13:57
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.

2 participants