Closed eoasker closed 9 months ago
Hi @eoasker,
can you provide some info, please:
bands
object? (bands.shape
)mask
object? (mask.shape
)Are you plotting masks or cloud probabilities above a certain threshold?
Hi @mlubej . So the bands shape is (1, 5210, 7660, 10)
and the mask shape is (1, 5210, 7660)
. I am opening the mask and cloud probability on qgis, where for the mask the min and max is 0 and 1 which is the image I am showing you above.
OK, it looks like the shapes are correct. Can you use the info tool on the black and white areas to check the values of the tiff if they are correct? I'm suspicious of this being a no_data
issue, where the 0 values of the mask were tagged as no_data automatically.
Try setting the nodata to -1 in qgis manually, or add a specific value when you save the tiff.
Let me know if this solves the issue.
Hello. I am trying to use the Cloud-detector on locally stored S2-Images in .SAFE format (L1C). I ran the cloud detector for 3 images. One of them masked quite well the clouds. However when I ran the same code for two other images with almost no clouds in the image, the cloud mask that is returned comes completely wrong. Is there something wrong in my code? Or is this a problem with the detection?
This is the code I am running:
The image I am showing you below is _S2A_MSIL1C_20231004T113321_N0509_R080_T29TNF20231004T151316.SAFE and I have clipped it around the district of Porto. This is the RGB composite and the mask cloud for the same image: