Skip to content

Allow the land fraction to be flipped - #144

Merged
Pierre Siddall (Pierre-siddall) merged 4 commits into
MetOffice:mainfrom
DanCopsey:fix_river_land_fractions
Aug 27, 2026
Merged

Allow the land fraction to be flipped#144
Pierre Siddall (Pierre-siddall) merged 4 commits into
MetOffice:mainfrom
DanCopsey:fix_river_land_fractions

Conversation

@DanCopsey

@DanCopsey Dan Copsey (DanCopsey) commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

PR Summary

Allow the land fraction field (once read in from ancillary file) to be flipped so that the data is south to north to be consistent with the other ancillary fields.

Sci/Tech Reviewer: Maggie (@maggiehendry)
Code Reviewer: Pierre Siddall (@Pierre-siddall)

When I put in #89 I added land fractions into the rivers-standalone part of JULES to be read in from an ancillary file. However if the other input fields (from ancillary files) are flipped to be running from south to north (using the remap_ancil function) then the land fraction field gets missed out and remains north to south. This makes an inconsistency in the data and the model fails. This change fixes this by adding in the call to remap_ancil for the land fraction.

Code Quality Checklist

(Some checks are automatically carried out via the CI pipeline)

  • I have performed a self-review of my own code
  • My code follows the project's style guidelines
  • Comments have been included that aid understanding and enhance the readability of the code
  • My changes generate no new warnings
  • If editing rose-meta/jules-shared then have you supplied a linked UM and LFRic Apps PR?

Testing

  • I have tested this change locally, using the JULES rose-stem suite
  • If shared files have been modified, I have run the UM and LFRic Apps rose stem suites
  • If any tests fail (rose-stem or CI) the reason is understood and acceptable (eg. kgo changes)
  • I have added tests to cover new functionality as appropriate (eg. system tests, unit tests, etc.)

trac.log

Test Suite Results - jules - jules_fix_river_land_fractions/run1

Suite Information

Item Value
Suite Name jules_fix_river_land_fractions/run1
Suite User dan.copsey
Workflow Start 2026-08-21T16:12:52
Groups Run all
Dependency Reference Main Like
jules DanCopsey/jules@fix_river_land_fractions False
SimSys_Scripts MetOffice/SimSys_Scripts@2026.07.1 True

Task Information

✅ succeeded tasks - 676

Security Considerations

  • I have reviewed my changes for potential security issues
  • Sensitive data is properly handled (if applicable)
  • Authentication and authorisation are properly implemented (if applicable)

Performance Impact

  • Performance of the code has been considered and, if applicable, suitable performance measurements have been conducted

AI Assistance and Attribution

  • Some of the content of this change has been produced with the assistance of Generative AI tool name (e.g., Met Office Github Copilot Enterprise, Github Copilot Personal, ChatGPT GPT-4, etc) and I have followed the Simulation Systems AI policy (including attribution labels)

Documentation

  • Where appropriate I have updated documentation related to this change and confirmed that it builds correctly

Approvals

Please request all relevant approvals. See the CodeOwners.txt file for section owners.

Technical

  • JULES Code Owner
  • OpenMP
  • River Routing
  • Rose Stem
  • Rose Metadata
  • Upgrade Macros

Scientific

  • Surface
  • Hydrology
  • Vegetation
  • Veg3 RED Demography
  • Biogeochemistry
  • Biogenic fluxes
  • Fire
  • Lakes
  • Evaluation
  • Imogen

Sci/Tech Review

  • I understand this area of code and the changes being added
  • The proposed changes correspond to the pull request description
  • Documentation is sufficient (do documentation papers need updating)
  • Sufficient testing has been completed

Please alert the code reviewer via a tag when you have approved the SR

Code Review

  • All dependencies have been resolved
  • Related Issues have been properly linked and addressed
  • CLA compliance has been confirmed
  • Code quality standards have been met
  • Tests are adequate and have passed
  • Documentation is complete and accurate
  • Security considerations have been addressed
  • Performance impact is acceptable

@github-actions github-actions Bot added the cla-required The CLA has not yet been signed by the author of this PR - added by GA label Aug 21, 2026
@github-actions github-actions Bot added cla-signed The CLA has been signed as part of this PR - added by GA and removed cla-required The CLA has not yet been signed by the author of this PR - added by GA labels Aug 24, 2026
@DanCopsey Dan Copsey (DanCopsey) added this to the Autumn 2026 milestone Aug 24, 2026
@DanCopsey Dan Copsey (DanCopsey) added the bug Something isn't working label Aug 24, 2026

@maggiehendry Maggie (maggiehendry) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I can't see anything wrong with the code change. I was about to say that LFRic coupled Rose stem test needs to be run, but the Rose stem test there has l_use_land_fraction=.false.. You should probably still run it though and add it to the PR as it does use the Rivers-standalone code which has been changed here.

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.

Thanks Dan Copsey (@DanCopsey), as this is a relatively simple change which calls an ancillary remapping this looks good to head into testing to me.

@Pierre-siddall
Pierre Siddall (Pierre-siddall) merged commit de9b713 into MetOffice:main Aug 27, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cla-signed The CLA has been signed as part of this PR - added by GA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants