Skip to content

Commit

Permalink
Update geospatial_utilities.py
Browse files Browse the repository at this point in the history
comment
  • Loading branch information
Dobson committed May 8, 2024
1 parent 37aa8a0 commit 298a697
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion swmmanywhere/geospatial_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,8 @@ def derive_subbasins_streamorder(fid: Path,
check_ftype = False,
transform = grid.affine,
)
# TODO - use highest valid stream order if streamorder is too high

# Iterate over stream orders to find the first one with subbasins
streamorder_ = streamorder
subbasins = np.zeros_like(flow_dir)
while np.unique(subbasins.reshape(-1)).shape[0] == 1:
Expand Down

0 comments on commit 298a697

Please sign in to comment.