03Atmospheric correction

Created Friday 05 May 2017

Pilot production of Sentinel-2 L2A products over Europe

Alternativas de correccion

sen2cor

MAJA

The mask directory provides :
A no_data mask, at 10m resolution (EDG_R1.tif) and 20m (EDG_R2.tif)
A saturated pixel mask that comes from Level 1 with 10m resolution (SAT_R1.tif) and 20m (SAT_R2.tif)
first bit corresponds to first band at each resolution
second bit corresponds to second band at each resolution
...
Pour R1, the bands appear in this order B2, B3, B4, B8, and for R2 : B5, B6, B7, B8a, B11, B12
a cloud mask for each resolution (CLM_R1.tif ou CLM_R2.tif)
bit 0 (1) : all clouds except the thinnest and all shadows
bit 1 (2) : all clouds (except the thinnest)
bit 2 (4) : clouds detected via mono-temporal thresholds
bit 3 (8) : clouds detected via multi-temporal thresholds
bit 4 (16) : thinnest clouds
bit 5 (32) : cloud shadows cast by a detected cloud
bit 6 (64) : cloud shadows cast by a cloud outside image
bit 7 (128) : high clouds detected by 1.38 µm
Example 1 : value 33 = 32+1 (00100001) : bit 1 tells us a shoadow or a cloud has been detected and bit 5 that it is a shadow (32),
Example 2 : value 11 = 8 + 2 +1 (00001011) tells us that it is a cloud (bits 1 and 2), detected by multi-temporal threshold (bit 4)
A geophysical mask MG2 :
bit 0 (1) : Water mask
bit 1 (2) : All clouds (except the thinnests)
bit 2 (4) : Snow Mask
bit 3 (8) : all shadows ("OU" des bits 5 et 6 du masque de nuages)
bit 4 (16) : Topographic shadows
bit 5 (32) : Unseen pixels due to topography
bit 6 (64) : Sun too low for a correct terrain correction
bit 7 (128) : Sun direction tangent to slope (inaccurate terrain correction)
IAB : A mask of pixels for which the WaterVapour (bit 1) and Aerosol Optical Thickness (bit 2) was interpolated (available at resolutions R1 or R2). However, in MAJA 3.2, there is an inversion of bit 2, which equals zero if interpolated)
How to use the cloud mask
If you want a very strict cloud and shadows mask, just test if cloud mask is greater than 0. This is our advice.If you are working in a region where you think MACCS/MAJA detects too many clouds, check that bit 1 is 1. (Mask & (00000001) == 1)



sen2agri

(much more than atm. corr., which is provided by MAJA)
(works on CentOS 7 only)

Sen2Agri system is a fully automatic production system to produce agriculture information from Sentinel-2 data, with a focus on food security applications.
The system manages the following operations :