Platform and versions:
• Ubuntu 18.04.4 LTS
• Python 3.7.6 (default, Jan 8 2020, 19:59:22)
[GCC 7.3.0] :: Anaconda, Inc. on linux
• GDAL 2.4.2, released 2019/06/28
Dear Maja Users,
I have some problems with the folder and files structure required to properly run Maja. To start, I want to first process without CAMS. The steps are described below:
1-Downloaded and installed Maja_3.3.2_TM.run
bash MAJA-3.2.2_TM.run –target ~/maja
2.Clone the current repository to get start_maja.py
git clone https://github.com/CNES/Start-MAJA.git
3. Prepare folders.txt
repCode= ~/maja/Start-MAJA
repWork= /media/ernesto/cuatrot/maja_procesos/temporal
repL1 = /media/ernesto/cuatrot/maja_procesos/S2/L1C/L1CCH
repL2 = /media/ernesto/cuatrot/maja_procesos/S2/L2A/L2ACH
repMaja= ~/maja/bin/maja
repCAMS= /media/ernesto/cuatrot/maja_procesos/cams
4. Retrieve Sentinel-2 L1C data
Using peps_download.py, I have downloaded 188 images for 4 tiles (PDU,PDV,PEU,PEV) for the period from 2019-08-01 to 2020-03-20 . An example of the commands used to download images for one tile is presented:
python /media/ernesto/cuatrot/peps_download/peps_download-master/peps_download.py -c S2ST -t 16PDU -o 140 -a /media/ernesto/cuatrot/peps_download/peps_download-master/peps.txt -d 2019-08-01 -f 2020-03-20
Unzip L1C data path=media/ernesto/cuatrot/maja_procesos/S2/L1C/L1CCH
5. Parameters
path=~/maja/Start-MAJA/userconf
The files in this folder are:
MAJAUserConfig_FORMOSAT_MUSCATE_PROTO.xml
MAJAUserConfig_LANDSAT8_MUSCATE_PROTO.xml
MAJAUserConfig_LANDSAT8_MUSCATE.xml
MAJAUserConfig_LANDSAT8.xml
MAJAUserConfig_LANDSAT_MUSCATE_PROTO.xml
MAJAUserConfig_LANDSAT_MUSCATE.xml
MAJAUserConfig_SENTINEL2_GPP.xml
MAJAUserConfig_SENTINEL2_MUSCATE.xml
MAJAUserConfig_SENTINEL2_TM.xml
MAJAUserConfig_SENTINEL2.xml
MAJAUserConfig_SPOT4_MUSCATE_PROTO.xml
MAJAUserConfigSystem.xml
MAJAUserConfig_VENUS.xml
path=~/maja/Start-MAJA/GIPP/SENTINEL2_TM
The files in this folder are:
README.md
S2A_TEST_GIP_CKEXTL_S_ALLSITES_00001_20190626_21000101.EEF
S2A_TEST_GIP_CKEXTL_S_ALLSITES_10001_20190626_21000101.EEF
S2A_TEST_GIP_CKQLTL_S_ALLSITES_00001_20190626_21000101.EEF
S2A_TEST_GIP_CKQLTL_S_ALLSITES_10001_20190626_21000101.EEF
S2A_TEST_GIP_L2COMM_L_ALLSITES_00001_20190626_21000101.EEF
S2A_TEST_GIP_L2COMM_L_ALLSITES_10001_20190626_21000101.EEF
S2A_TEST_GIP_L2SMAC_L_ALLSITES_00001_20190626_21000101.EEF
S2B_TEST_GIP_CKEXTL_S_ALLSITES_00001_20190626_21000101.EEF
S2B_TEST_GIP_CKEXTL_S_ALLSITES_10001_20190626_21000101.EEF
S2B_TEST_GIP_CKQLTL_S_ALLSITES_00001_20190626_21000101.EEF
S2B_TEST_GIP_CKQLTL_S_ALLSITES_10001_20190626_21000101.EEF
S2B_TEST_GIP_L2COMM_L_ALLSITES_00001_20190626_21000101.EEF
S2B_TEST_GIP_L2COMM_L_ALLSITES_10001_20190626_21000101.EEF
S2B_TEST_GIP_L2SMAC_L_ALLSITES_00001_20190626_21000101.EEF
S2__TEST_GIP_L2SITE_S_ALLSITES_00001_20190626_21000101.EEF
I have a doubt regarding the use of GIPP without CAMS. According to the instructions, if we want to use Parameters without CAMS, we should use the folder SENTINEL2_TM_CAMS:
However, when we read the README.md for http://tully.ups-tlse.fr/olivier/gipp_maja/tree/master/SENTINEL2_TM_CAMS. It clearly states that CAMS option enabled. And the README.md for: http://tully.ups-tlse.fr/olivier/gipp_maja/tree/master/SENTINEL2_TM, we get the message that CAMS option disabled.
So, I am confused. I assumed that the README files are correct and I should use SENTINEL2_TM when processing without CAMS.
I downloaded the LUT from the zenodo server and I choose to use: 20190626_LUT_MAJA_SENTINEL2_TM_NOCAMS
path=~/maja/Start-MAJA/20190626_LUT_MAJA_SENTINEL2_TM_NOCAMS/LUTs
Files in this folder:
S2A_TEST_GIP_L2ALBD_L_CONTINEN_00001_20190626_21000101.DBL.DIR
S2A_TEST_GIP_L2ALBD_L_CONTINEN_00001_20190626_21000101.HDR
S2A_TEST_GIP_L2DIFT_L_CONTINEN_00001_20190626_21000101.DBL.DIR
S2A_TEST_GIP_L2DIFT_L_CONTINEN_00001_20190626_21000101.HDR
S2A_TEST_GIP_L2DIRT_L_CONTINEN_00001_20190626_21000101.DBL.DIR
S2A_TEST_GIP_L2DIRT_L_CONTINEN_00001_20190626_21000101.HDR
S2A_TEST_GIP_L2TOCR_L_CONTINEN_00001_20190626_21000101.DBL.DIR
S2A_TEST_GIP_L2TOCR_L_CONTINEN_00001_20190626_21000101.HDR
S2A_TEST_GIP_L2WATV_L_CONTINEN_00001_20190626_21000101.DBL.DIR
S2A_TEST_GIP_L2WATV_L_CONTINEN_00001_20190626_21000101.HDR
S2B_TEST_GIP_L2ALBD_L_CONTINEN_00001_20190626_21000101.DBL.DIR
S2B_TEST_GIP_L2ALBD_L_CONTINEN_00001_20190626_21000101.HDR
S2B_TEST_GIP_L2DIFT_L_CONTINEN_00001_20190626_21000101.DBL.DIR
S2B_TEST_GIP_L2DIFT_L_CONTINEN_00001_20190626_21000101.HDR
S2B_TEST_GIP_L2DIRT_L_CONTINEN_00001_20190626_21000101.DBL.DIR
S2B_TEST_GIP_L2DIRT_L_CONTINEN_00001_20190626_21000101.HDR
S2B_TEST_GIP_L2TOCR_L_CONTINEN_00001_20190626_21000101.DBL.DIR
S2B_TEST_GIP_L2TOCR_L_CONTINEN_00001_20190626_21000101.HDR
S2B_TEST_GIP_L2WATV_L_CONTINEN_00001_20190626_21000101.DBL.DIR
S2B_TEST_GIP_L2WATV_L_CONTINEN_00001_20190626_21000101.HDR
6. DTM preparation
After some problems with the code to prepare the dtm. It was suggested to use another branch of the DTM preparation code (https://github.com/CNES/Start-MAJA/tree/reprog-rc1/prepare_mnt) and using this updated code it works fine.
path=~/maja/Start-MAJA/DTM
Since I use 4 tiles I produced 4 DTMs. This folder contains 2 files per tile:
S2__TEST_AUX_REFDE2_16PDU_0001.DBL.DIR S2__TEST_AUX_REFDE2_16PEU_0001.DBL.DIR
S2__TEST_AUX_REFDE2_16PDU_0001.HDR S2__TEST_AUX_REFDE2_16PEU_0001.HDR
S2__TEST_AUX_REFDE2_16PDV_0001.DBL.DIR S2__TEST_AUX_REFDE2_16PEV_0001.DBL.DIR
S2__TEST_AUX_REFDE2_16PDV_0001.HDR S2__TEST_AUX_REFDE2_16PEV_0001.HDR
7. CAMS data
As stated in the beginning currently I want to use MAJA without CAMS but I would like to be able to process with CAMS in the future.
Following instructions from https://github.com/CNES/Start-MAJA/tree/master/cams_download
At this moment I have registered at ECMWF and I have API key.
I do not know what it means with: Create the file '.ecmwfapirc' in your home and type the API key. How you do that. Is it a text in which I hould put the API key? And referring to home folder you mean Home (~) or it means the “cams_download” folder in the Statr-Maja folder?
path= ~/maja/Start-MAJA/cams_download
8. Execute start_maja.py
In the start-maja folder (~/maja/Start-MAJA), I open terminal and run:
python start_maja.py -f ~/maja/Start-MAJA/folders.txt -g ~/maja/Start-MAJA/GIPP/SENTINEL2_TM -l ~/maja/Start-MAJA/20190626_LUT_MAJA_SENTINEL2_TM_NOCAMS -t 16PDU -s ser -d 20190801 -e 202000320
Running the above commands produce the following errors:
What am I missing or doing wrong? Many thanks for your help.
Kind regards,