I would like to construct a mask of the values the mndwi index detected as water in red colour in the image bellow and set such values in red colour corresponding the river water to null or nan specially for Band 3 to be further saved as GeoTIFF, how can I do that procedure?
I think all values corresponding to water (red colour) are above zero.