whitebox-tools icon indicating copy to clipboard operation
whitebox-tools copied to clipboard

BreachDepressionsLeastCost 4-cell connected

Open cefect opened this issue 2 years ago • 2 comments

Thanks for the awesome tool.

My tests show that BreachDepressionsLeastCost uses 8-cell connectedness: image

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.

cefect avatar Nov 12 '22 18:11 cefect

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.

jblindsay avatar Nov 18 '22 08:11 jblindsay

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).

cefect avatar Nov 18 '22 10:11 cefect