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

Forecast Precisions #3759

Merged
merged 3 commits into from
Jul 3, 2024
Merged

Forecast Precisions #3759

merged 3 commits into from
Jul 3, 2024

Conversation

brettedw
Copy link
Collaborator

@brettedw brettedw commented Jul 2, 2024

Copy link

codecov bot commented Jul 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.66%. Comparing base (82906b0) to head (f340374).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3759   +/-   ##
=======================================
  Coverage   79.66%   79.66%           
=======================================
  Files         297      297           
  Lines       10823    10823           
  Branches      525      525           
=======================================
  Hits         8622     8622           
  Misses       2056     2056           
  Partials      145      145           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

sonarcloud bot commented Jul 3, 2024

@brettedw brettedw requested review from conbrad and dgboss July 3, 2024 17:35
@@ -187,9 +187,9 @@ export const marshalMoreCast2ForecastRecords = (forecasts: MoreCast2ForecastRow[
for_date: forecast.forDate.toMillis(),
precip: forecast.precip.value,
rh: forecast.rh.value,
temp: forecast.temp.value,
temp: Math.round(forecast.temp.value),
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure we need to be rounding values here. I think I would error on the side of maintaining precision in the event that a forecaster is using persistence forecasting or values from one of the weather models.

Or is the reason to do the rounding to prevent decimals from being sent to and appearing in the WFWX forecasting app?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, to prevent decimals from appearing in WFWX, and following my interpretation of the acceptance criteria "Forecaster can only forecast integers for temp and wind speed". Without rounding, the front end would show integers but they would technically be forecasting floats if they're using models.
I also figured the discrepancy between Morecast and WFWX might be puzzling.

Open to changing it of course, that was just my interpretation of the desired functionality

Copy link
Collaborator

Choose a reason for hiding this comment

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

Having WF1 and Morecast match is good enough reason for me! Thanks for the clarification!

@brettedw brettedw temporarily deployed to production July 3, 2024 22:49 Inactive
@brettedw brettedw merged commit 158fbe0 into main Jul 3, 2024
29 checks passed
@brettedw brettedw deleted the task/forecast-precision branch July 3, 2024 23:01
vanislekahuna pushed a commit to vanislekahuna/wps that referenced this pull request Sep 19, 2024
Limits precision for temp and wind speed (both as integers)
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.

Morecast: Limit precision for Temp and Wind Speed
3 participants