Skip to content

Fix to soil colour initialisation - #48

Draft
mpaiao wants to merge 6 commits into
monanadmin:release/2.0.0-rcfrom
mpaiao:mpaiao-pr-slcol-hotfix
Draft

Fix to soil colour initialisation#48
mpaiao wants to merge 6 commits into
monanadmin:release/2.0.0-rcfrom
mpaiao:mpaiao-pr-slcol-hotfix

Conversation

@mpaiao

@mpaiao mpaiao commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Note. This is identical to #47, but the source branch name was confusing as it had the same name as the release. That pull request is now closed.

Pull Request Description

It turned out that my previous pull request to initialise spatially heterogeneous soil colour was crashing the model under some configurations. This pull request is an attempt to fix it.

In short, I made 3 modifications:

  1. The ocean flag in soil colour data sets is now replaced by a default soil colour class with valid albedo values.
  2. The soil colour map is no longer used for consistency check for land/ocean masks. This reverts the logic back to MPAS default. If land use or soil texture flags a pixel as ocean, then soil colour is forced to the default value (which should not be used).
  3. Sea ice initialisation assigned default values for soil texture. I added code so MONAN assigns a default value for soil colour too. This shouldn't be ever needed, but I preferred to err on the side of caution.

I made some initial tests on Jaci and it seems to be running for 12 UTC initialisations. It is still unclear to me why the first PR would work at 00 UTC but not at 12 UTC. I suspect some pixel with inconsistent ocean/land flags existed on a place where it is nighttime at 00 UTC and daytime at 12 UTC.

Type of Change

  • Bug fix
  • Hot fix
  • New feature
  • Improvement to existing functionality
  • Code refactoring
  • Code optimization
  • Other: ______

Testing and Quality

  • Code was written following MONAN’s DTN-01 (Coding Standard)
  • Compilation and execution tests of the model were executed
  • Test with the debug flag was executed
  • Results are reproducible with the default configuration

Scientific Impact

Hopefully this PR will allow MONAN-2.0.0-rc to run at 00 UTC and 12 UTC.

mpaiao added 6 commits August 8, 2026 22:20
…tly when soil colour

is not available. There may have been a uninitialisation problem for glaciers/oceans. Not
sure if this will make any difference though.
… default values

whenever we identify a grid cell with soil colour flagged as water. We no longer use the
water soil colour to replace the values for soil class or land use.
@mpaiao mpaiao mentioned this pull request Aug 18, 2026
11 tasks
@mpaiao
mpaiao marked this pull request as draft August 18, 2026 18:29
@mpaiao

mpaiao commented Aug 18, 2026

Copy link
Copy Markdown
Contributor Author

Set it to draft before tests are finalised.

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.

1 participant