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

Set TR-55 to use NLCD11 2011 by default #3528

Merged
merged 2 commits into from
Apr 21, 2022
Merged

Conversation

rajadain
Copy link
Member

Overview

As noted in #3527, the NLCD19 + Soil combination for RasterGroupedCount would result in unstable values, reporting NODATA for cases that had real values.

While investigating this failure, it was observed that the NLCD11 2011 + Soil combination worked correctly, as before. After conferring with clients, it was decided that TR-55 should be switched back to NLCD11 2011, until further notice.

This code change allows the specification of a land layer override, but in the absence of an override will use the NLCD11 2011 layer. Since the UI does not specify any overrides, the NLCD11 2011 layer will be used for all cases.

Connects #3527

Demo

image

Notes

This bug may have implications for GWLF-E as well. Will continue investigating the original issue, but this should alleviate the issue for TR-55 users.

Testing Instructions

  • On master, ensure you are logged in so that your work is saved
  • Make a TR-55 project with this shape: rivera.geojson.txt
  • Draw some modifications on it
    • Ensure it fails
  • Check out this branch
  • Run migrations
    ./scripts/manage migrate
  • Restart Celery
    vagrant ssh worker -c 'sudo service celeryd restart'
  • Go back to your saved project
    • Ensure it succeeds

As noted in #3527, the NLCD19 + Soil combination for
RasterGroupedCount would result in unstable values,
reporting NODATA for cases that had real values.

While investigating this failure, it was observed
that the NLCD11 2011 + Soil combination worked
correctly, as before. After conferring with clients,
it was decided that TR-55 should be switched back
to NLCD11 2011, until further notice.

This code change allows the specification of a land
layer override, but in the absence of an override
will use the NLCD11 2011 layer. Since the UI does
not specify any overrides, the NLCD11 2011 layer
will be used for all cases.
Since we're switching TR-55 projects back to NLCD11 2011,
this migration clears the results for all TR-55 projects
made since 1.33.0, which switched the default to NLCD19 2019.
These results will be recalculated with NLCD11 2011 whenever
they are opened next in the UI.
@rajadain rajadain added the NSF Funding Source: National Science Foundation label Apr 21, 2022
@rajadain rajadain merged commit afebb07 into develop Apr 21, 2022
@rajadain rajadain deleted the tt/switch-tr55-to-nlcd-2011 branch April 21, 2022 01:32
@rajadain rajadain restored the tt/switch-tr55-to-nlcd-2011 branch April 21, 2022 01:32
@rajadain rajadain deleted the tt/switch-tr55-to-nlcd-2011 branch April 21, 2022 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NSF Funding Source: National Science Foundation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant