It has never been so easy to obtain Sentinel2 L2A data processed with MAJA.

Theia’s Sentinel-2 production zones

Sentinel-2 L2A products (with a good cloud mask and atmospheric correction) are produced by THEIA using the MAJA software on approximately 1000 different tiles. But this is only a small part of our big world, and we do not want to let the users alone to deal with Sen2cor poor cloud masks, outside Theia production zones.

Since October 2018, it has been possible to run MAJA on PEPS, the French Copernicus collaborative ground segment, to produce L2A products, on demand. But until now, the way MAJA had been implemented within PEPS was rather inefficient, as the implementation only produced one single L2A at a time with MAJA, even if 8 products were generated to obtain that product. Processing at least 8 products is necessary because MAJA, which is a multi-temporal processor, requires to process time series to improve the quality of the output L2A products. But in its usual implementation, the 8 or more products are provided as output, while in PEPS, only the last one was provided. So if you wanted to obtain a whole time series this way, it turned out each product had to be produced 8 times. It had been implemented this way because of constraints of the PEPS on line processing interface.

Thankfully, my colleague from CNES, Christophe Taillan, who works on PEPS, recently improved the implementation of MAJA with PEPS.

Time series of L2A images generated with MAJA on PEPS. Clouds are circled in green, cloud shadows are outlined in yellow. and snow in pink. MAJA implements a cirrus cloud correction, which explains why you might not see any clouds in regions outlined in green.

With the new FULL-MAJA implementation, we have abandoned the clickable interface, and only offer a python interface, but the processing is much more efficient. With only one command line, you can start the processing of a time series of MAJA images. You can get the python interface program from my github repository. Here is how we obtained the nice images presented to the right of this text, that correspond to Sebastopol in Crimea (I picked a random tile)

You can get the python interface program from my github repository. You will also need to create an account on PEPS. Here is an example of how it works, for more information, please go the the github page. The examples below show how I obtained the nice images presented above, that correspond to Sebastopol region (I picked a random tile).

1. Request processing

To start processing a 6 month time series starting in July 2017, on Sebastopol tile (31TCJ), using only orbit 51, just use the following command line :

python ./full_maja_process.py -a peps.txt -t 36TWQ -o 64 -d 2019-03-01 -f 2019-09-01 -g 36TWQ_2019-03-01.log

In this command line, -a, gives the password file, and -g is a log file, that will be used subsequently to download the data. Do not use the same log file for two different processings, as you will not be able to download the data from the first. The time period to process must be longer or equal to two months, and shorter that 12 months.

2. Check processing status, and if finished, download data

To check if the processing is finished, and retrieve the data, just use the following command line, and the generated products will be stored in the directory provided in with -w option.

python full_maja_download.py -a peps.txt -g 36TWQ_2019-03-01.log -w /path/to/36TWQ

As MAJA only provides data for dates with less than 90% of cloud cover, some of the dates are not downloaded. With Sentinel-2, in some cases, products are split in two, with eigher the upper or the lower part with no_data values. The implementation of MAJA within PEPS only processes one of those two, so far. This corresponds to products which are stated at missing in the log-file

Warning: 4 products have not been processed For more information,
please check Full_MAJA_Sebastopol_2019.json

How long does it take ?

If PEPS is not too busy, it may take up to 24 hours to process a one year time series. But, as the computing resource is limited, the number of simultaneous processes with MAJA on PEPS is limited to 10. Above that number, processes will be queued. As a result, your request could be « pending » for a while. It will mean our on-demand processing facility is a success 😉 To see the progress, use the full_maja_download_tool.py tool, or have a look at the processing page (the gear icon) on https://peps.cnes.fr.

 

A big thank you to the PEPS team, and especially to Christophe Taillan !

 

Plus d'actualités

BIOMASS, the third launched satellite mission designed at CESBIO !

After SMOS in 2009, and VENµS in 2017, the CESBIO Laboratory is very proud to see its third proposed mission, Biomass, reach orbit. As always, it has been a long journey from the idea, at the beginning of the century, to the selection in 2013 as the seventh Earth Explorer Mission by ESA, to the […]

Sentinel-2 reveals the surface deformation after the 2025 Myanmar earthquake

Sentinel-2 captured several clear-sky images of Myanmar before and after the 28 March 2025 earthquake. The animation below shows a 5-day apart sequence of images captured by Sentinel-2B and Sentinel-2C (10 m resolution) near the epicenter located close to Mandalay. The surface slip due to the earthquake follows the Sagaing Fault, a major fault in […]

Evolution de l’altitude de la ligne de neige au cours des 41 dernières années dans le bassin versant du Vénéon (Oisans)

Pour contribuer à caractériser les conditions hydrométéorologiques lors de la crue torrentielle qui a frappé la Bérarde en juin, j’ai analysé une nouvelle série de cartes d’enneigement qui couvre la période 1984-2024 [1]. Grâce à la profondeur temporelle de cette série, on constate que l’altitude de la ligne de neige dans le bassin versant du […]

Rechercher