Skip to content

mars2grib: fix type of processed data for ssd#232

Open
MircoValentiniECMWF wants to merge 1 commit into
developfrom
bugfx/type-of-processed-date-for-ssd
Open

mars2grib: fix type of processed data for ssd#232
MircoValentiniECMWF wants to merge 1 commit into
developfrom
bugfx/type-of-processed-date-for-ssd

Conversation

@MircoValentiniECMWF

Copy link
Copy Markdown
Contributor

Description

Contributor Declaration

By opening this pull request, I affirm the following:

  • All authors agree to the Contributor License Agreement.
  • The code follows the project's coding standards.
  • I have performed self-review and added comments where needed.
  • I have added or updated tests to verify that my changes are effective and functional.
  • I have run all existing tests and confirmed they pass.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adjusts mars2grib’s deduction of GRIB2 typeOfProcessedData so that MARS type=ssd is classified as forecast products rather than processed satellite observations.

Changes:

  • Map mars.type=ssd to TypeOfProcessedData::ForecastProducts.
  • Restrict TypeOfProcessedData::ProcessedSatelliteObservations mapping to mars.type=gsd.

mars2grib documentation sync (per repo guideline 1000000):

  • Impacted files under src/metkit/mars2grib/**:
    • src/metkit/mars2grib/backend/deductions/typeOfProcessedData.h
  • Documentation status: ✅ in sync (Doxygen documentation is co-located in the header; no separate mars2grib docs content describes the specific ssd mapping that would require updates).

result = tables::TypeOfProcessedData::AnalysisProducts;
}
else if (marsType == "fc") {
else if (marsType == "fc" || marsType == "ssd" ) {
result = tables::TypeOfProcessedData::ControlForecastProducts;
}
else if (marsType == "ssd" || marsType == "gsd") {
else if ( marsType == "gsd") {
Comment on lines +159 to 160
else if (marsType == "fc" || marsType == "ssd" ) {
result = tables::TypeOfProcessedData::ForecastProducts;
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 53.22%. Comparing base (6cde183) to head (e5e5d71).

Files with missing lines Patch % Lines
...mars2grib/backend/deductions/typeOfProcessedData.h 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #232   +/-   ##
========================================
  Coverage    53.22%   53.22%           
========================================
  Files          339      339           
  Lines        14634    14634           
  Branches      1158     1158           
========================================
  Hits          7789     7789           
  Misses        6845     6845           

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

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