Skip to content

Fix handling of lat/lon grids in grib1-to-grib2 tool#254

Merged
dsarmany merged 1 commit intodevelopfrom
fix/lat-lon-grids
Mar 30, 2026
Merged

Fix handling of lat/lon grids in grib1-to-grib2 tool#254
dsarmany merged 1 commit intodevelopfrom
fix/lat-lon-grids

Conversation

@tweska
Copy link
Copy Markdown
Member

@tweska tweska commented Mar 27, 2026

Lat/lon grids don't have gridName and thus we couldn't generate the MARS grid keyword anymore. This PR checks the gridType key first for special handling, before falling back to gridName.

🌈🌦️📖🚧 Documentation 🚧📖🌦️🌈
https://sites.ecmwf.int/docs/dev-section/multio/pull-requests/PR-254

@tweska tweska force-pushed the fix/lat-lon-grids branch from 84e428e to 6d0959c Compare March 27, 2026 16:09
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 27, 2026

Codecov Report

❌ Patch coverage is 0% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.31%. Comparing base (bf1874f) to head (6d0959c).

Files with missing lines Patch % Lines
src/multio/tools/grib1-to-grib2.cc 0.00% 11 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #254      +/-   ##
===========================================
- Coverage    56.32%   56.31%   -0.02%     
===========================================
  Files          321      321              
  Lines        21152    21159       +7     
  Branches      1680     1681       +1     
===========================================
+ Hits         11914    11915       +1     
- Misses        9238     9244       +6     

☔ View full report in Codecov by Sentry.
📢 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.

Copy link
Copy Markdown
Collaborator

@dsarmany dsarmany left a comment

Choose a reason for hiding this comment

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

Check my comment. I may miss something, but I am unsure what happens in the else branch.

@tweska tweska requested a review from dsarmany March 30, 2026 07:34
@dsarmany dsarmany merged commit 7e221b6 into develop Mar 30, 2026
151 checks passed
@dsarmany dsarmany deleted the fix/lat-lon-grids branch March 30, 2026 16:49
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