-
Notifications
You must be signed in to change notification settings - Fork 32
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
[1pt] Add lake masking to stage- and flow-based CatFIM #1418
Conversation
Testing for Stage Based looks great. Carson mentioned we should add this to Flow Based as well. |
…A-OWP/inundation-mapping into dev-catfim-v2-2-lake-masking Conflicts: tools/catfim/generate_categorical_fim_mapping.py
Implemented this change to flow-based and it looks like it's working as expected! I just need to do a bit more testing and then we should be good to go. The lake needing to be masked out from this example is in the bottom right corner. In the example with lake masking, we can see that inundation in the lake polygon has been removed. |
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. Tested against:
- 11100301 - olbo2 - good for FB and SB
- 04140201 - auon6 - good for FB and SB
- 11100302 - hrho2 - good for FB, changed as expected.
However.. 11100302 - hrho2 for SB showed a likely unrelated issue
in the new version it says that it is not mapped as Gage not in HAND usgs gages records.
But it was mapped and fine in 4.5.11.1
I will make a separate card for it.
…into dev-catfim-v2-2-lake-masking
Previously, CatFIM would inundate areas that we know to be lakes based on our FIM data. This update masks out lakes from stage- and flow-based CatFIM inundation.
Changes
inundation-mapping/tools/catfim/generate_categorical_fim_mapping.py
: Added code to stage-based CatFIM to filter out HydroIDs that are associated with a non-null LakeID. Also uses new lake masking function to mask lakes from flow- and stage-based CatFIM right before the tifs are saved, at the end ofproduce_stage_based_lid_tifs()
. Comments in this area were also cleaned up.inundation-mapping/tools/tools_shared_functions.py
: Added function that uses the water bodies geopackage to mask out lakes from a tiff.Testing
Tested flow- and stage-based CatFIM at site auon6 (HUC 04140201)
Additional testing detailed in Issue 1358
Potential HUC/site combos where stage-based CatFIM intersects a lake (for additional testing):
'07090002' 'okfi2'
'07130008' 'kcai2'
'07140202' 'ylow4'
'10070001' 'brlk1'
'11070204' 'tifm7'
'11070208' 'olbo2'
'11100301' 'wtnw2'
'05020002' 'cpei3'
'04300108' 'wlbn6'
'04040002' 'racw3'
Potential HUC/site combos where flow-based CatFIM intersects a lake (for additional testing):
Deployment Plan (For developer use)
How does the changes affect the product?
Issuer Checklist (For developer use)
You may update this checklist before and/or after creating the PR. If you're unsure about any of them, please ask, we're here to help! These items are what we are going to look for before merging your code.
[_pt] PR: <description>
dev
branch (the default branch), you have a descriptive Feature Branch name using the format:dev-<description-of-change>
(e.g.dev-revise-levee-masking
)dev
branchpre-commit
hooks were run locally4.x.x.x
Merge Checklist (For Technical Lead use only)