-
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
[2pt] PR: fixed hydrotable nan values #1414
Conversation
I checked some other HUC8s with lakes including 03100208, 02050103, 04030101, 04050002, 04040003, 04060101, and 16050101 to find the same issue. I am developing a script to find them CONUS-wise. |
Here is the list of catchments/huc8 that have single tiny reaches (no upstream). |
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 on a subset of 7 HUCs (01100003, 03060204, 04040002, 07100004, 09030008, 10180009, 12030102) (attempted 19020302 but kept getting segmentation fault).
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.
Please add the changelog.md and it also needs to have the latest dev merged in. :)
…into dev-hydrotable-nan-values
…into dev-hydrotable-nan-values
This PR fixes Hydrotables that have hydroIDs with nan values. These hydroids are associated with very small reaches which are linked to one-pixel catchments. Thus, those small reaches were removed in
filter_catchments_and_add_attributes.py
. This PR also removes the GMS catchments whose main streams are less than 1 m.Also, tiny housekeeping has been done in
filter_flows.py
, no code change though.This PR will close issue #1339.
Changes
src
:filter_catchments_and_add_attributes.py
: Lines of code have been added to the functionfilter_catchments_and_add_attributes
to find streams that do NOT have upstream branches and they are so tiny.split_flows.py
: Reorganization of functions and script description.Testing
This PR has been tested successfully on 25 HUC8s, including 04040002, 01010009, 01050002, 01060001, 01100003, 01100004, 01100006, 02030202, 02070011, 03010205, 03050111, 03090203, 04010102, 04080103, 04140101, 04290001, 07020012, 08010202, 09020104, 09030003, 10130205, 16060010, 17120005, 21010005, and 04040003.
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)