CNES / MAJA

Level-2A processor used for atmospheric correction and cloud-detection. The active repository is the one below, this one is kept to leave access to the older issues.
https://gitlab.orfeo-toolbox.org/maja/maja
Apache License 2.0
139 stars 25 forks source link

Too short period of time provided as input for MAJA #20

Closed seffinier closed 5 years ago

seffinier commented 5 years ago

Hello,

I installed MAJA 3.3.0 TM with Start_maja on a CentOS 7.6 but the result I get (without errors) is of a much lower definition than what is downloadable from https://theia.cnes.fr/atdistrib/rocket/#/home.

One of the masks downloaded from theia's site (converted to jpg because I can not attach a tif) SENTINEL2A_20190516-105713-915_L2A_T31UER_C_V2-1_CLM_R1

The corresponding mask I generated SENTINEL2A_20190516-105713-915_L2A_T31UER_C_V1-0_CLM_R1

Can anyone tell me in which direction I should look ?

Thanks !

My configuration:

Commande is: "python ./start_maja.py -f folders.txt -g GIPP_MAJA_S2A_S2B_TM -l LUT_MAJA_S2A_S2B_CAMS_H2ONew_20190411 -t 31UER -s Wallonie -d 20190506 -e 20190516"

olivierhagolle commented 5 years ago

Hi Sébastien I think I have a clue, thanks to the command line.

MAJA is a multi-temporal method. The more data it uses the more accurate it gets. It turns out you provided a working period of 10 days, so at best, MAJA had 3 or 4 images as input. Knowing the usual cloud cover in Wallonie, this would make only 1 or 2 cloud free observations. With such a short period, the multi-temporal method is not efficient, and you get only the results of the mono-temporal method.

I guess the results would be much better with -d 20190401 -e 20190610, for instance. Of course, it means you have to download all the L1C products in that period. Could you please try that ? Thanks, Olivier

seffinier commented 5 years ago

ok, I will try on a longer period and keep you posted Thanks !

seffinier commented 5 years ago

Using a longer period (20190313 to 20190611) is indeed improving a lot the results (not exactly the same but close enough) SENTINEL2A_20190516-105713-915_L2A_T31UER_C_V1-0_CLM_R1

And indeed, over that almost 3-month period I get only 17 valid results out of the 53 products for the 3 orbits going over that tile...

By the way, I adapted slightly the scripts to be able to use Python 3.5 (changed the call to file() into calls to open() in start_maja.py and added the parenthesis to the print calls in convert_CAMS_DBL.py)

Thanks a lot