dustming / basinmaker

An automated GIS toolbox for watershed delineation with lakes
Artistic License 2.0
24 stars 6 forks source link

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

Open rchlumsk opened 1 year ago

rchlumsk commented 1 year ago

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 commented 1 year ago

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