Skip to content

Conversation

hohe12ly
Copy link

the new algorithm uses GeoPandas overlay with identity method to create splits. then these splits are ordered by lake IDs. a subsequence that goes in and out of a lake multiple times is modified to have at most three parts: the one going into the late, the one in the lake, and the one out of the lake. the new algorithm returns such splits as a GeoDataFrame for the next step 1.5km length-based splitting. That length-based splitting is unchanged.

Also, added one step after HUC8 overlay to remove empty geometries.

@BradfordBates-NOAA
Copy link
Contributor

BradfordBates-NOAA commented Mar 2, 2022

@hohe12ly Could you please request that this PR be merged into the dev-fim3 branch?

@BradfordBates-NOAA BradfordBates-NOAA added the enhancement New feature or request label Mar 2, 2022
@BradfordBates-NOAA
Copy link
Contributor

@BrianAvant-NOAA Please check this out if you are interested

@frsalas-noaa
Copy link
Contributor

We should also note this for FIM v4.X.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request FIM3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

split_flows.py: tiny split reaches caused by mismatch of flowline and lake polygon
3 participants