Skip to content

Remove geometry related code in encode-mtg2 action and grib1-to-grib2 tool#247

Open
tweska wants to merge 5 commits intodevelopfrom
feature/mars2grib-grid-refactor
Open

Remove geometry related code in encode-mtg2 action and grib1-to-grib2 tool#247
tweska wants to merge 5 commits intodevelopfrom
feature/mars2grib-grid-refactor

Conversation

@tweska
Copy link
Member

@tweska tweska commented Mar 11, 2026

This PR removes old code related to the geometry dictionary. This code is still evaluated but we don't use the data in the encoder.

This PR removes the dependency on Atlas in both the action and tool, and it removes the MARS key repres in FullMarsRecord.

Note that it is now sufficient to set grid or truncation in the MARS dictionary and the rest can be handled in the encoder.

This change is needed to support ocean fields, their grids can't be handled by this removed code.

These changes are needed for this PR in the encoder: ecmwf/metkit#181

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

@codecov-commenter
Copy link

codecov-commenter commented Mar 11, 2026

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.35%. Comparing base (8c9be5f) to head (0bb91c7).

Files with missing lines Patch % Lines
src/multio/tools/grib1-to-grib2.cc 0.00% 2 Missing ⚠️
src/multio/action/encode-mtg2/EncodeMtg2.cc 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #247      +/-   ##
===========================================
+ Coverage    55.81%   56.35%   +0.54%     
===========================================
  Files          325      321       -4     
  Lines        21372    21141     -231     
  Branches      1692     1679      -13     
===========================================
- Hits         11928    11915      -13     
+ Misses        9444     9226     -218     

☔ 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.

@tweska tweska requested a review from dsarmany March 12, 2026 12:53
@tweska tweska marked this pull request as ready for review March 12, 2026 12:53
@dsarmany dsarmany force-pushed the feature/mars2grib-grid-refactor branch from 6e78a62 to 0bb91c7 Compare March 15, 2026 11:27
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