sen2cor processor fails in batch with the following error:
“wrong operation mode: None”
I understand this is an issue with the configuration file.
The correct configuration file can be specified in command line with the --GIP_L2A option.
Unfortunately, I end up with the same error even in this case.
It sound like the option was ignored
Can you provide any support on that?
Apart from the sen2cor/2.8/cfg/L2A_GIPP.xml in the home, what does L2A_Processor needs?
the L2A_bashrc specifies the path to the configuration file.
The default is in the user home.
I can edit the bashrc file with a different path but that is not ideal.
here it is
/work/PATH2sen2cor_Install/sen2cor_v2.8/Sen2Cor-02.08.00-Linux64/bin/L2A_Process
–GIP_L2A=/work/PATH2sen2cor_Install/sen2cor_v2.8/Sen2Cor-02.08.00-Linux64/lib/python2.7/site-packages/sen2cor//cfg/L2A_GIPP.xml
/work/PATH2_S2L1C_SAFEfolder/S2A_MSIL1C_20190103T154641_N0207_R011_T19TCJ_20190103T173526.SAFE/
Symlink?
If you mean symbolic link, yes the S2L1C is indeed a symbolic link but I think I tried to hard copy it to do some tests.
I can double check that.
I would also suggest to copy your L2A_GIPP.xml in a shorter local path, without any symlink.
The way it looks, maybe you build it (obtain it) using some variables, and maybe the resulted path is not correct.
Cristophe,
The problem is the “=” sign after the --GIP_L2A option
It should be:
–GIP_L2A /work/PATH2sen2cor_Install/sen2cor_v2.8/Sen2Cor-02.08.00-Linux64/lib/python2.7/site-packages/sen2cor//cfg/L2A_GIPP.xml