-
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] PR: Tool to evaluate crosswalk accuracy #1061
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RobHanna-NOAA
previously approved these changes
Jan 10, 2024
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 checked out a couple of combinations of the x arg and it looks good
CarsonPruitt-NOAA
approved these changes
Jan 12, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a post-processing tool to compare crosswalked (conflated)
feature_id
s between NWM stream network to DEM-derived reaches. The tool is run if the-x
flag is added tofim_pipeline.sh
. Results are computed for branch 0 and saved in a summary file in the HUC output folder. Closes #1000 and closes #1013 and closes #1020.Three different crosswalking methods were evaluated with this tool: midpoint, majority catchment, and the ras2fim conflation developed by A. Carter. Two HUCs were tested -- the midpoint and ras2fim had similar results with midpoint performing slightly better as shown below (highest in each category in bold)
Additions
tools/evaluate_crosswalk.py
: evaluates crosswalk accuracy using two methods:Changes
Dockerfile
: addedtoolsDir
environment variablefim_pipeline.sh
: added-x
flag to run crosswalk evaluation toolfim_post_processing.sh
: changed hardcoded/foss_fim/tools
totoolsDir
environment variablefim_pre_processing.sh
: addedevaluateCrosswalk
environment variablesrc/
add_crosswalk.py
: fix bugdelineate_hydros_and_produce_HAND.sh
: added a call toverify_crosswalk.py
if evaluateCrosswalk is True.Testing
Ran the following
pipeline.sh
with-x
flag to producecrosswalk_evaluation_0.csv
in HUC folder in/outputs/dev-verify-crosswalk
Example output for
/outputs/dev-verify-crosswalk/12040101/crosswalk_evaluation_0.csv
: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)