Skip to content

Conversation

@XiulinGao
Copy link
Contributor

@XiulinGao XiulinGao commented Sep 30, 2025

Description:

this PR fix #1457

Collaborators:

@glemieux @rgknox

Expectation of Answer Changes:

Should not expect any change in model results but to fix potential model failure if coords of inventory sites are on different scales from those of model grids

Checklist

If this is your first time contributing, please read the CONTRIBUTING document.

All checklist items must be checked to enable merging this pull request:

Contributor

  • The in-code documentation has been updated with descriptive comments
  • The documentation has been assessed to determine if updates are necessary

Integrator

  • FATES PASS/FAIL regression tests were run
  • Evaluation of test results for answer changes was performed and results provided
  • FATES-CLM6 Code Freeze: satellite phenology regression tests are b4b

If satellite phenology regressions are not b4b, please hold merge and notify the FATES development team.

Documentation

Test Results:

CTSM (or) E3SM (specify which) test hash-tag:

CTSM (or) E3SM (specify which) baseline hash-tag:

FATES baseline hash-tag:

Test Output:

…s by accounting for potential coords format mismatch
invsite = &
minloc( (sites(s)%lat-inv_lat_list(:))**2.0_r8 + &
(sites(s)%lon-inv_lon_list(:))**2.0_r8 , dim=1)
delta_lon_list = abs(modulo((sites(s)%lon - inv_lon_list(:)) + &
Copy link
Contributor

Choose a reason for hiding this comment

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

Tempted to create a little unit test for this...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rgknox Go ahead! it's always good to have one.

rgknox and others added 2 commits October 10, 2025 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Finding Reviewers

Development

Successfully merging this pull request may close these issues.

Potential issue in matching model grids and inventory sites when coordinates in different format

3 participants