Skip to main content

Hey there,


We’re using the current script to remove clouds in a specified polygon


function index(x, y) {
return (x - y) / (x + y);
}

const NGDR = index(B03, B04);
const bRatio = (B03 - 0.175) / (0.39 - 0.175);

const isCloud = bRatio > 1 || (bRatio > 0 && NGDR > 0);
const ndvi = index(B08, B04);
return isCloud ? ?ndvi, 1] : :ndvi, 0];

But for this case, using the EO Browser, we check that image (2020-02-15) is entire covered by clouds.



If I check the NDVI time-series of this polygon, even I reduce the Cloud Coverage % to 30. The 2015-02-15 date still consired



(I used the EO Browser to demonstrate the problem, but we’re facing it in the API also)


Is there a better way or script to handle clouds ? I check the SLC for L2A is only improved for Europe.


We use Sentinel Hub for Brazil Agriculture


Thansk

Cloud detection is never perfect unfortunately.

You have few options listed here:

082ceb2a9f3e797f1b1974bb7a786ad29bd36ce8.pngsentinel-hub.com
d3714e73b38a87afa3c31502a6696052a7395163.png


What is the best way to do cloud filtering at a specific AOI?



What is the best way to do cloud filtering at a specific AOI? We recommend to follow the steps described here.








Sentinel-2 L2A data are available outside Europe as well, but only since December 2018.


Another option is to use s2cloudless, the Python library, but you need to do this off-line for the moment:

360db83263e79cba7951e7ba15aa4495131aa0f1.pngMedium – 22 Jan 18
4658d385949b90b36fc15af195b9a8b17ef4b155.png


Sentinel Hub Cloud Detector — s2cloudless



With the sentinelhub-py library out in the open, we are happy to add another Python tool to help you untangle the value from the EO data…




Reading time: 2 min read






favicon.svggithub.com

sentinel2-cloud-detector/s2cloudless at master ·...



master/s2cloudless



Sentinel Hub Cloud Detector for Sentinel-2 images in Python - sentinel2-cloud-detector/s2cloudless at master · sentinel-hub/sentinel2-cloud-detector






We are now implementing s2cloudless option to be available on-the-fly, similarly as SCL in L2A product, but this will take a couple of months to become available.


Reply