Closed borlafgis closed 5 years ago
Hi Ignacio, I guess you printed the content of the file /mnt/d/Software/MAJAws/repL2/SC/35TLL/MAJA_3_1_S2AS2B_MUSCATE_TM//S2A_MSIL1C_20170116T091321_N0204_R050_T35TLL_20170116T091315.SAFE.log
The error is "Impossible to detect a L1 product in the directory </mnt/d/Software/MAJAws/repWork/SC/35TLL/MAJA_3_1_S2AS2B_MUSCATE_TM//in" I do not know what happens, will try to reproduce it on my side. But did you check that folder ? Does it contain all the .SAFE files necessary as input to the backward mode ?
By the way, start-MAJA has moved to a new repository, https://github.com/CNES/Start-MAJA, and you will find there the link to access to MAJA 3.2.2
Sorry for this new error ! Olivier
Hello Olivier
That is just the output I get from the console, the file /mnt/d/Software/MAJAws/repL2/SC/35TLL/MAJA_3_1_S2AS2B_MUSCATE_TM//S2A_MSIL1C_20170116T091321_N0204_R050_T35TLL_20170116T091315.SAFE.log Is completely empty
There are two errors... the first one from python:
Traceback (most recent call last):
File "start_maja.py", line 586, in <module>
start_maja(folder_file, context, site, tile, orbit, nb_backward, options, debug_mode)
File "start_maja.py", line 444, in start_maja
logger.info("Using %s L2 type" % L2type)
And the next one from MAJA:
Impossible to detect a L1 product in the directory </mnt/d/Software/MAJAws/repWork/SC/35TLL/MAJA_3_1_S2AS2B_MUSCATE_TM//in>.
When ls
said directory I get no return, it is entirely empty. Could be that the python script is failing to create the links to the level 1 archive (repL1)? The .SAFE files might be misplaced?
They are on /mnt/d/Software/MAJAws/repL1/SC
ls /mnt/d/Software/MAJAws/repL1/SC
S2A_MSIL1C_20171013T090921_N0205_R050_T35TLL_20171013T091544.SAFE
S2A_MSIL1C_20180928T090731_N0206_R050_T35TLL_20180928T111750.SAFE
S2B_MSIL1C_20180327T090559_N0206_R050_T35TLL_20180327T131514.SAFE
...
Thanks for your kelp! Kind regards, Ignacio
Hiola Ignacio
I was not able to reproduce your error. Same command line works on my side.
But the hint is that /mnt/d/Software/MAJAws/repWork/SC/35TLL/MAJA_3_1_S2AS2B_MUSCATE_TM//in
is empty.
I only can advise for you to dig in to find why files are not copied or linked there. lo siento, Olivier
Hello Olivier
I will take a look and tell you what was wrong. [EDIT] I have been making some tests and the problem seems to be that when os.system(commande)
gets called on the line 437, for some reason Python thinks MAJA finished before it actually does (or MAJA returns 0 before finishing). Thus the next loop is started (nominal mode, line 441 onwards), which seems to expect the presence of a L2 product. As MAJA has been unable to finish, it does not find any, causing the length of nomL2init_Natif
and nomL2init_MUSCATE
to be 0. This, in turn, casuses L2type
and derniereDate
to be left undefined, causing the script to crash when it reaches the line 443, where logger.info("Using %s L2 type" % L2type)
is called.
Also, I tried to download the version 3.2.2, but I have been unable to get the installer. The section "Get MAJA > Get MAJA Sofware" points to the CNES site, where only V1.0 is available. [EDIT2] Just saw that the new version have been uploaded to the CNES site today
Sorry for the trouble
Hello Olivier
I have found a solution. Up to this point I was using either the ubuntu subsystem of windows 10 or a ubuntu virtual machine. Unable to find the problem, I tried in centos... which worked. The only explanation I can think is that maybe the different distros catch the output of commande differently.
Kind regards, Ignacio
Thanks for the feedback, and happy you managed to have it working. I will try to give it a try on a ubuntu computer. But virtual machines are sometimes tricky... Best regards, Olviier
Hello
I am trying to use MAJA 3.1.1. I performed the setup like this:
When I run the script on ubuntu I get the following error:
I am doing something wrong?
Kind regards, Ignacio