EnMAP-Box / enmap-box

EnMAP-Box source code repository. See https://enmap-box.readthedocs.io for documentation
GNU General Public License v3.0
34 stars 16 forks source link

Add option to set a mask layer in the "Predict classification" tool and in the Advanced Classification workflow #930

Open gthuser opened 1 week ago

gthuser commented 1 week ago

In the older versions of EnMAP-Box there was an option to set a mask layer from a vector file when using the Predict classification tool. It was very useful but in v3.14.3 it is not available.

janzandr commented 1 week ago

Having a mask applied before processing is potentially useful for many other algorithms as well. However, we decided to not have such a mask parameter in all the algorithms as input. We see masking as a preprocessing step, similar to spatial subsetting and band subsetting etc. You can use this algorithm for applying a mask to a raster: image Afterwards, you can use the masked raster layer as input for the "Predict classification" algorithm.

I understand, that this is not as convenient as before. To make raster masking more convinient, I would propose a shortcut "Apply mask" here: image