I want to determine possible methods to export to geotiff with the major cloud-free areas for each recorded sentinel-2 image and leave the rest as unknown values (0 or ex. -127). I know how to export to a geotiff with clouds but have been unable to mask them out or remove them completely. I am not trying to get a perfect result in SNAP, since I know clouds sometimes are overlook be the automated process.
I am trying to find a method to export Sentinel-2 data to geotiff from SNAP with cloudy areas set to 0 (or some fixed negative value) for all bands. What I want to export is NDVI (normalized difference vegetation index), RIEP(red edge inflection point) and the Sentinel-2 bands (1-12), for areas that seem to be without clouds, shadows from clouds or other covering atmospheric objects.
Currently, I am following these steps:
- Load a MSIL1C sentinel-2 product
- Run sen2cor to get a MSIL2A product
- Resample all bands to 10m, using Raster->“Geometric operations”->Resample
After this step, I have attempted to use “land/sea mask” and the other mask functionalities under Raster, but I have been unsuccessful so far.
I can see the cloud, and shadow masks are present in the project, but I have been unable to utilize them to create a cloud-free geotiff.