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

Function request - combine two or more sets of routing products in post-processing #15

Open
rchlumsk opened this issue Jan 12, 2023 · 1 comment
Assignees

Comments

@rchlumsk
Copy link
Collaborator

Would be great to have a function to combine routing products from two or more folders into one product. This would be useful in instances where you have two sections of catchments that you ultimately want in one model, but with two distinct outlets.

Something like:

basinmaker.basinmaker.delineate.Combine_Routing_Products(routing_product_folders, gis_platform='qgis')

routing_product_folders = ['folder1','folder2']
gis_platform='qgis'

Output is a single routing product determined from combining one or more routing products. Key challenge would be to confirm that the individual routing products have non-overlapping extents. Note that this can currently be done manually with GIS software, and subsequent operations seem to work ok.

@dustming dustming self-assigned this Feb 2, 2023
@dustming
Copy link
Owner

dustming commented Apr 1, 2023

Hi Rob,
Many thanks for the comment.
please check this function that supports routing products for multiple outlets. The post-processing function allows the user to use more than one outlet ID. So we could obtain a product covering multiple outlets at step one. Let me know if this make sense to you. Thanks
Ming
https://colab.research.google.com/drive/1r6t67IRZmVbWAsZIHHxEm5gDan5m6itR?usp=sharing 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants