Skip to content

Task/port latest 2.10.x changes - #297

Open
dsarmany wants to merge 2 commits into
hotfix/2.11.3from
task/port-latest-2.10.x-changes
Open

dsarmany wants to merge 2 commits into
hotfix/2.11.3from
task/port-latest-2.10.x-changes

Conversation

@dsarmany

@dsarmany dsarmany commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

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.

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

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.

🟡 Changes recommended

The reviewed changes introduce metadata classification errors and remove required encoding transformations.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

This pull request ports 2.10.x changes for surface-level classification and MTG2 encoding.

Changes:

  • Updates surface-level classification in two Fortran modules.
  • Removes local Mars-to-Mars mappings and payload scaling from MTG2 encoding.
File summaries
File Review findings
src/multiom/ifs2mars/ifs-interface/ifs_utils_mod.F90 Moderate (3 votes): Nonzero surface levels are classified as SOL, incorrectly affecting height-above-ground products such as 2-metre temperature.
src/multiom/core/common/enumerators_mod.F90 Moderate (3 votes): The nonzero-level check converts unspecified-level sfc filters and ordinary sfc/2 fields to SOL.
src/multio/action/encode-mtg2/EncodeMtg2.cc Critical (2 votes): Removing allRules() drops required parameter mappings and payload scaling before encoding.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 3
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

}

// Apply mappings
fake_double_loop::fakeDoubleLoop(marsRec);
Comment on lines +1491 to +1495
IF ( LEVEL .NE. 0 ) THEN
ILEVTYPE = LEVTYPE_SOL_E
ELSE
ILEVTYPE = LEVTYPE_SFC_E
! END IF
! CASE DEFAULT
! ILEVTYPE = LEVTYPE_SFC_E
! END SELECT
END IF
Comment on lines +358 to +362
IF ( LEVEL .NE. 0 ) THEN
ILEVTYPE = LEVTYPE_SOL_E
ELSE
ILEVTYPE = LEVTYPE_SFC_E
END SELECT
END IF
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