WorldCereal / ewoc_sen2cor

Other
0 stars 0 forks source link

SCL cloud mask bug over water bodies #83

Closed Fahdben closed 2 years ago

Fahdben commented 2 years ago

@kvantricht noticed some strange patterns on the cloud mask provided over the tile 36MUD.

Note that the cloud mask shown above is the result of the binarization of the SCL from sen2cor. When comparing with the binary mask based on the SCL available on aws (ESA processing), we can clearly see that the patterns are no longer present (image on the right).


Cloud mask using ESA SCL

Cloud mask using Sen2cor SCL

The image shown in this example is S2B_L2A_20190331T075609_N0211R035T36MUD_36MUD_MASK .

Here are some experiments (to run on 36MUD 20190331) that can help us find the origin of these patterns:

mbattude-cs commented 2 years ago

Results before the binarization :


ESA SCL

Sen2cor SCL with and without sc_only option

Difference between ESA SCL and Sen2cor SCL


ESA SCL (entire tile)

Sen2cor SCL (entire tile)

mbattude-cs commented 2 years ago

@Fahdben suggested to use ESA CCI and it solved the issue. https://www.esa-landcover-cci.org/?q=node/164


SCL values

L1C RGB image

ESA SCL

Results for Sen2Cor v2.9 (DEM = srtm)


Sen2cor v2.9 SCL without CCI

Sen2cor v2.9 SCL with CCI

Results for Sen2Cor v2.10 (DEM = copdem)


Sen2cor v2.10 SCL without CCI

Sen2cor v2.10 SCL with CCI

savmickael commented 2 years ago

It is confirmed by this presentation which expose the differences between the local run and ESA production:

Therefore if we want mix L2A data produced by ESA and L2A produced by us with Sen2Cor 2.9 in a time series, we need to do that carefully to have homogenized time series:

Fahdben commented 2 years ago