-
Notifications
You must be signed in to change notification settings - Fork 30
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] PR: Snap crosswalk to NWM streams #1205
Conversation
Inundation in 18100201 in the oval area was reported to be false (#981). The current feature branch |
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.
I tested a few HUCs (19020602, 21010004, and 1060001), and the code is working as expected. It removes DEM-derived reaches if they’re not within 100 meters of NWM streams.
The red lines show the DEM-derived streams, and the green lines are the NWM streams. For HUC 1060001, the catchment was previously inundated by some DEM-derived reaches (fim_4_5_2_0), but they’re not affected in the current feature branch since they don’t have NWM streams within 100 meters of their midpoints. This PR doesn’t have any unintended effects.
Results of the evaluation of the crosswalk using the intersection method (using
|
That's great! I'll count this as a pretty big win. |
Snaps crosswalk from the midpoint of DEM-derived reaches to the nearest point on NWM streams within a threshold of 100 meters. DEM-derived streams that do not locate any NWM streams within 100 meters of their midpoints are removed from the FIM hydrofabric and their catchments are not inundated. Fixes #1194 and resolves #981.
Changes
src/add_crosswalk.py
: Locates nearest NWM stream to midpoint of DEM-derived reaches if within 100 meters. Also fixes a couple of minor bugs.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 locally/foss_fim/
, run:pytest unit_tests/
)4.x.x.x
Merge Checklist (For Technical Lead use only)