Skip to content
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

Fix for soil texture force-fill exclusion in LDT #1662

Merged

Conversation

karsenau
Copy link
Contributor

Implemented fix in LDT to address when the
Soil texture force exclusion of water points during fill is not
set in the ldt.config file, even though STATSGOFAO soil texture
and more than 1 surface model type are selected.

The default value is set to "false", which causes a mismatch for
points north of -60S in STATSGOFAO soil texture and when surface
type, e.g., open water, are selected -- and causes LIS run to fail.

This is issue is documented in the LISF GitHub issue #1658.

In addition, some additional info has been included in ldt.config.adoc
and some additional comment notes for SRTM30 native topo readers
for dealing with points south of -60S.

Testcase

Test case for this PR and fix can be found here:
/discover/nobackup/karsenau/LISF_PR/LDT_SText_ForceOpt_Fix

Tester is able to run the LDT step in:
/discover/nobackup/karsenau/LISF_PR/LDT_SText_ForceOpt_Fix/LDT_Run

with ldt.config_test

Then run a final test of that file in a LIS test case setup, with the lis.config_test file provided. All input files are provided.
MERRA2 input forcing is symlinked in directory: lisdata

 Implemented fix in LDT to address when the
  Soil texture force exclusion of water points during fill is not
  set in the ldt.config file, even though STATSGOFAO soil texture
  and more than 1 surface model type are selected.

 The default value is set to "false", which causes a mismatch for
  points north of -60S in STATSGOFAO soil texture and when surface
  type, e.g., open water, are selected -- and causes LIS run to fail.

 This is issue is documented in the LISF GitHub issue NASA-LIS#1658.

 In addition, some additional info has been included in ldt.config.adoc
   and some additional comment notes for SRTM30 native topo readers
   for dealing with points south of -60S.
@dmocko
Copy link
Contributor

dmocko commented Dec 23, 2024

The code compiles, and I was able to successfully run and replicate the ldt and lis testcases.

I approve of the code revisions as well, so will merge this PR.

@karsenau - the lis.config_test file you provided did not have open permissions, but I just used the lis.config_target file, and renamed it to lis.config_test. I only renamed "target" to "test" within the config file, which made it 6 bytes smaller than the original, which is the same difference as your two lis.config files. Anyway, just FYI so you can open permissions to your lis.config_test file for others/posterity. Thanks!

@dmocko dmocko merged commit 7d0c4f1 into NASA-LIS:support/lisf-public-7.5 Dec 23, 2024
@karsenau
Copy link
Contributor Author

Thanks @dmocko for testing the PR code and use case, and also for mentioning the lis.config_test file permissions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BugFix Fixes bug found in code LISF 7.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants