Skip to content

FIX: Rotate HRRR grid-relative winds to true north before use as constraint - #163

Merged
rcjackson merged 4 commits into
openradar:mainfrom
rcjackson:hrrr_correction
Jul 31, 2026
Merged

FIX: Rotate HRRR grid-relative winds to true north before use as constraint#163
rcjackson merged 4 commits into
openradar:mainfrom
rcjackson:hrrr_correction

Conversation

@rcjackson

Copy link
Copy Markdown
Collaborator

HRRR u/v are defined relative to its Lambert Conformal Conic grid, not true north. This fix has PyDDA apply the correction to true north on the inputs automatically.

…traint

HRRR u/v are defined relative to its Lambert Conformal Conic grid, not
true north. Apply the standard WRF/NCEP grid-rotation correction using
the projection's cone factor before interpolating onto the analysis
grid.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Jul 31, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.87755% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 70.49%. Comparing base (e02529b) to head (c541433).
⚠️ Report is 26 commits behind head on main.

Files with missing lines Patch % Lines
setup.py 0.00% 2 Missing ⚠️
pydda/constraints/model_data.py 94.73% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #163      +/-   ##
==========================================
+ Coverage   70.45%   70.49%   +0.04%     
==========================================
  Files          32       32              
  Lines        5330     5355      +25     
==========================================
+ Hits         3755     3775      +20     
- Misses       1575     1580       +5     
Flag Coverage Δ
unittests 70.49% <93.87%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Robert Jackson and others added 3 commits July 31, 2026 13:56
Uses the bundled HRRR/RUC sample GRIB2 file to verify
add_hrrr_constraint_to_grid's true-north correction meaningfully
changes u/v away from the central meridian while conserving wind
speed, as a rotation must.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@rcjackson
rcjackson merged commit df72154 into openradar:main Jul 31, 2026
16 checks passed
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.

1 participant