I ran into the FloodDetection graph and understood that the flood detection is a binarization expression.
This post is about asking why the threshold cannot be defined as a parameter in the expression (example):
But you don’t need to apply the “Flood-Detection” operator to identify the differences in two coregistered images. You can als use logical statements (as in your example) in the Mask Manager or the Band Maths to identify pixels where backscatter intensity has decreased by a cretain degree.
Thanks @ABraun, sure but if there’s a FloodDetection operator it maybe the way to go as as it is I don’t see how it can be used for flood detection (the threshold may change according to the area or other factors).
The Operator code is here: s1tbx/FloodDetectionOp.java at master · senbox-org/s1tbx · GitHub, it’s a pity not to expose the threshold as a parameter.
The operator was not maintained. But if your SNAP is built from source code, you can add threshold as a parameter with code like the following two lines: