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

Story/bias adjust wind/3055 #3058

Merged
merged 18 commits into from
Aug 16, 2023
Merged

Story/bias adjust wind/3055 #3058

merged 18 commits into from
Aug 16, 2023

Conversation

conbrad
Copy link
Collaborator

@conbrad conbrad commented Aug 10, 2023

  • Given I've logged in to Morecast 2.0, When the Wind Speed tab is enabled, Then the 5 columns for GDPS Bias, RDPS Bias, HRDPS BIas, NAM Bias, and GFS Bias display values for any rows where the raw model has data available

Test Links:

Landing Page
MoreCast 2.0
Percentile Calculator
MoreCast
C-Haines
FireBat
FireBat bookmark
Auto Spatial Advisory (ASA)
HFI Calculator

@codecov
Copy link

codecov bot commented Aug 10, 2023

Codecov Report

Merging #3058 (8b40257) into main (ab882be) will increase coverage by 0.02%.
The diff coverage is 83.33%.

@@            Coverage Diff             @@
##             main    #3058      +/-   ##
==========================================
+ Coverage   84.77%   84.80%   +0.02%     
==========================================
  Files         300      300              
  Lines       10052    10073      +21     
  Branches      587      586       -1     
==========================================
+ Hits         8522     8542      +20     
- Misses       1369     1370       +1     
  Partials      161      161              
Files Changed Coverage Δ
api/app/jobs/noaa.py 58.40% <0.00%> (ø)
api/app/db/models/weather_models.py 98.00% <80.00%> (+0.08%) ⬆️
api/app/weather_models/machine_learning.py 92.80% <83.33%> (+0.27%) ⬆️
api/app/jobs/common_model_fetchers.py 83.33% <100.00%> (+0.21%) ⬆️
api/app/weather_models/__init__.py 96.96% <100.00%> (ø)
api/app/weather_models/fetch/predictions.py 77.77% <100.00%> (ø)
.../features/moreCast2/components/DataGridColumns.tsx 92.85% <100.00%> (-0.70%) ⬇️
.../features/moreCast2/components/MoreCast2Column.tsx 93.40% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@@ -259,7 +259,7 @@ export class PrecipForecastField implements ColDefGenerator, ForecastColDefGener
}

public generateColDefs = (headerName?: string) => {
return this.colDefBuilder.generateColDefs(headerName, false)
return this.colDefBuilder.generateColDefs(headerName, true)
Copy link
Collaborator

Choose a reason for hiding this comment

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

We don't want to display the precip bias adjusted field yet.

@@ -177,7 +177,7 @@ export class WindDirForecastField implements ColDefGenerator, ForecastColDefGene
}

public generateColDefs = (headerName?: string) => {
return this.colDefBuilder.generateColDefs(headerName, false)
return this.colDefBuilder.generateColDefs(headerName, true)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we keep hiding the wind direction bias adjusted field until we get that sorted? Then we can move this PR along and only add the bias adjusted wind speed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep, makes sense

@@ -95,15 +95,9 @@ export const columnGroupingModel: GridColumnGroupingModel = [
// and visibility of our weather parameter tabs
function columnGroupingModelChildGenerator(weatherParam: string) {
// For a given weather model, there are tabs present in the datagrid for each WeatherDetermiante except
// WeatherDeterminate.NULL. Additioanlly, bias adjusted predictions only exist for temp and rh.
// WeatherDeterminate.NULL
let determinates: WeatherDeterminate[] = []
Copy link
Collaborator

Choose a reason for hiding this comment

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

I haven't stepped through the code, but I'm not sure this change will be valid if we're not showing the precip and wind direction bias adjusted values in the data grid?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep it still works

@conbrad conbrad requested a review from dgboss August 15, 2023 17:12
Copy link
Collaborator

@dgboss dgboss left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -12,7 +12,7 @@

# Key values on ModelRunGridSubsetPrediction.
# Wind direction (wdir_tgl_10_b) is handled slightly differently, so not included here.
Copy link
Collaborator

@brettedw brettedw Aug 16, 2023

Choose a reason for hiding this comment

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

Very minor, but I think this comment is no longer needed, unless wdir_tgl_10_b is something different

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually maybe this is why I'm not getting bias adjusted values for wind dir...

@sonarcloud
Copy link

sonarcloud bot commented Aug 16, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@conbrad conbrad temporarily deployed to production August 16, 2023 17:48 Inactive
@conbrad conbrad merged commit 0ba707b into main Aug 16, 2023
32 checks passed
@conbrad conbrad deleted the story/bias-adjust-wind/3055 branch August 16, 2023 18:03
vanislekahuna pushed a commit to vanislekahuna/wps that referenced this pull request Sep 19, 2024
Co-authored-by: Andrea Williams <[email protected]>
Co-authored-by: Andrea Williams <[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.

4 participants