Image Classification

I haven’t worked with MODIS in SNAP but you could get good results with the filter options

if your mask consists of 0 and 1, you can apply a maximum filter of 5x5 pixels to set all pixels within this distance to clouds to 1 as well. You can then subtract this binary raster from another one (e.g. the original mask) in order to refine your result.

2 Likes