whitebox-tools
whitebox-tools copied to clipboard
BreachDepressionsLeastCost 4-cell connected
Thanks for the awesome tool.
My tests show that BreachDepressionsLeastCost uses 8-cell connectedness:
It would be awesome if there was an option for 4-cell to align with some hydrodynamic model behavior. In the meantime, if you have any alternates to suggest these would be appreciated.
Looking at the image above, I must admit that I don't see the issue. How is 8-cell connectedness a problem? Can you provide an example perhaps? The issue with 4-cell connectedness is that breach paths will necessarily take on a very unnatural zig-zagging pattern. I think I could probably implement this feature, but the question is, do the benefits outweigh the downsides, i.e. the zig-zag breaching pattern and the additional parameter on a tool that already contains a large number of parameters.
Thank you for the reply and apologies for the confusion. The question is not which is preferable, but the application of the DEM. I am conditioning for a LISFLOOD model which uses 4 cell connectedness. I agree It would be nice if LISFLOOD used 8 cell, but it does not. Therefore, I need a conditioning tool which supports 4 cell. I assume there are others in a similar position, also… adding this as another parameter actually brings more clarity to the tool (I don’t think the connectedness is mentioned in the documentation).