Skip to content

Commit

Permalink
Update geospatial_utilities.py
Browse files Browse the repository at this point in the history
  • Loading branch information
barneydobson committed Feb 25, 2024
1 parent 2bfedaf commit 682bbe4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion swmmanywhere/geospatial_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,12 @@ def delineate_catchment(grid: pysheds.sgrid.sGrid,
y=y_snap,
fdir=flow_dir,
dirmap=dirmap,
xytype='coordinate')
xytype='coordinate',
algorithm = 'recursive'
)
# n.b. recursive algorithm is not recommended, but crashes with a seg
# fault occasionally otherwise.

grid_.clip_to(catch)

# Polygonize the catchment
Expand Down

0 comments on commit 682bbe4

Please sign in to comment.