Skip to content

DE-3673 Fix levtype for time statistics on snow depth (228141) - #294

Open
cplltr wants to merge 4 commits into
ecmwf:hotfix/2.10.3from
cplltr:feature/snow-depth-statistics-climdt
Open

DE-3673 Fix levtype for time statistics on snow depth (228141)#294
cplltr wants to merge 4 commits into
ecmwf:hotfix/2.10.3from
cplltr:feature/snow-depth-statistics-climdt

Conversation

@cplltr

@cplltr cplltr commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

The climate DT portfolio required for CY49R3 includes snow depth water equivalent, both instantaneous (228141) and time-averaged (235078). These parameters should be encoded as both levtype=sfc (vertical sum) and levtype=sol (per-level, five layers for snow variables). The branch used by 49r3 climate DT has a sfc->sol mapping for paramid 228141 (instantaneous), but not for 235078 (its time-averaged version).

JIRA: https://jira.ecmwf.int/browse/DE-3673

Description

The sfc->sol levtype fix in fixMapToSol() covered the instantaneous snow
depth (228141) but not its statistically processed variants produced by
statistics-mtg2 (average->235078, max->237078, min->238078, stddev->239078).
As a result the monthly-averaged snow depth kept the wrong levtype and did
not encode/archive. Add the four time-processed params to the rule.

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.

cplltr added 3 commits August 24, 2026 15:02
…c -> sol

The sfc->sol levtype fix in fixMapToSol() covered the instantaneous snow
depth (228141) but not its statistically processed variants produced by
statistics-mtg2 (average->235078, max->237078, min->238078, stddev->239078).
As a result the monthly-averaged snow depth kept the wrong levtype and did
not encode/archive. Add the four time-processed params to the rule.
@cplltr

cplltr commented Aug 28, 2026

Copy link
Copy Markdown
Contributor Author

Targetting hotfix/2.10.3 because it is the multio version currently used in the 49r3 bundle in ifs-raps

@cplltr

cplltr commented Aug 28, 2026

Copy link
Copy Markdown
Contributor Author

Addresses this raised issue: #293

@cplltr cplltr changed the title Fix levtype for time statistics on snow depth (228141) DE-3673 Fix levtype for time statistics on snow depth (228141) Aug 28, 2026
@cplltr

cplltr commented Aug 28, 2026

Copy link
Copy Markdown
Contributor Author

This should merge cleanly into develop. Also now covers 238038 and 238 -- which are not needed in production, but can be useful for research,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant