Skip to content
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

Add option to carve in clip_to_catchments #165

Open
Tracked by #227
barneydobson opened this issue May 15, 2024 · 0 comments
Open
Tracked by #227

Add option to carve in clip_to_catchments #165

barneydobson opened this issue May 15, 2024 · 0 comments

Comments

@barneydobson
Copy link
Collaborator

barneydobson commented May 15, 2024

The subbasin delineation here has huge influences on the rest of the procedure. It is conceivable that we should carve roads before doing this.

Can be done by inserting into graph_utilities.py:

# Derive subbasins
with tempfile.TemporaryDirectory() as temp_dir:
        temp_fid = Path(temp_dir) / "carved.tif"
        go.burn_shape_in_raster([d['geometry'] for u,v,d in G.edges(data=True)],
                subcatchment_derivation.carve_depth,
                addresses.elevation,
                temp_fid)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant