-
Notifications
You must be signed in to change notification settings - Fork 105
fix calculation of the distance between model grid and inventory sites #1475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…s by accounting for potential coords format mismatch
main/FatesInventoryInitMod.F90
Outdated
| 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(:)) + & |
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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.
using great circle for calculating site/inventory adjacency, unit tests
glemieux
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Good call using and modding the Great Circle utility.
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
Integrator
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: