Sen2Cor 2.9 Linux Error in creating L2A User Product

I installed Sen2Cor 2.9 on the Linux server, and I can get the correct response by using the L2A_Process -h command, but I get the following error when processing the data:
Error in creating L2A User Product
Sen2Cor 2.9.0, created: 2020.11.30, supporting Level-1C product version 14.2 - 14.6
Operation mode: TOOLBOX
Processing baseline: 99.99
Application started …
Progress[%]: 0.00 : Generating datastrip metadata
cannot find L2A datastrip directory
Traceback (most recent call last):
File “/home/sfeng/sen2cor/Sen2Cor-02.09.00-Linux64/lib/python2.7/site-packages/sen2cor/L2A_Process.py”, line 541, in
sys.exit(main())
File “/home/sfeng/sen2cor/Sen2Cor-02.09.00-Linux64/lib/python2.7/site-packages/sen2cor/L2A_Process.py”, line 489, in main
L2A_TILES = config.updateTiles()
File “/home/sfeng/sen2cor/Sen2Cor-02.09.00-Linux64/lib/python2.7/site-packages/sen2cor/L2A_Config.py”, line 3821, in updateTiles
if self.create_L2A_Tile():
File “/home/sfeng/sen2cor/Sen2Cor-02.09.00-Linux64/lib/python2.7/site-packages/sen2cor/L2A_Config.py”, line 3846, in create_L2A_Tile
self.getEntriesFromDatastrip()
File “/home/sfeng/sen2cor/Sen2Cor-02.09.00-Linux64/lib/python2.7/site-packages/sen2cor/L2A_Config.py”, line 3787, in getEntriesFromDatastrip
self.spacecraftName = di.SPACECRAFT_NAME.text
AttributeError: ‘bool’ object has no attribute ‘SPACECRAFT_NAME’

1 Like

Hi,
I have the same problem with sen2cor version 2.9 processing images that have Processing Baseline number more than N0300 (acquired after April 2021). The issue occur only when i try to process the topographic atmospheric correction. Have you found some kind of solution?

Hello,
Try to see if the related posts may help:

Hi oana,
thanks for your help. The last post you suggest partially respond to my problems “New REFINED L1C tiles do not process with Sen2Cor 2.8”. I know that the version 2.8 of sen2cor operate on images till march 2021 then I have to use 2.9 version. So I did using stand-alone version of sen2cor 2.9 that works well for standard atmosferic correction for images between 1 april 2021 to today but it fails applying the correction of topografic effects.

I have a similar error when I run a docker using sen2cor 2.09.00

docker run --name=test_V2_9 -t --rm -v /mnt/RAM_DISK/data/:/home/desuser/data/ -v /raid0/DES/scripts/EURAC_L2A/test_processing_scripts/test_processing_container_v2_9/L2A_GIPP.xml:/home/desuser/sen2cor/2.9/cfg/L2A_GIPP.xml -e INPUT_IMAGE=S2B_MSIL1C_20220416T101559_N0400_R065_T32TNR_20220416T160249.SAFE sen2cor2.09.00 /home/desuser/processing_scripts/run_sen2cor_v2_9.sh

This is the error:

Syntax error in metadata, see report file for details.
Schema file: S2-PDGS-TAS-DI-PSD-V14.6_Schema/S2_PDI_Level-1C_Datastrip_Metadata.xsd
Details: Element ‘PRODUCT_DOI’: This element is not expected. Expected is ( PROCESSING_CENTER ).
Sen2Cor 2.9.0, created: 2020.11.30, supporting Level-1C product version 14.2 - 14.6
Operation mode: TOOLBOX
Processing baseline: 99.99
Application started …
Progress[%]: 0.00 : Generating datastrip metadata
Syntax error in metadata, see report file for details.
Schema file: S2-PDGS-TAS-DI-PSD-V14.6_Schema/S2_PDI_Level-1C_Datastrip_Metadata.xsd
Details: Element ‘PRODUCT_DOI’: This element is not expected. Expected is ( PROCESSING_CENTER ).
Incorrect datastrip L1C xml format
Traceback (most recent call last):
File “/home/desuser/sen2cor/lib/python2.7/site-packages/sen2cor/L2A_Process.py”, line 541, in
sys.exit(main())
File “/home/desuser/sen2cor/lib/python2.7/site-packages/sen2cor/L2A_Process.py”, line 489, in main
L2A_TILES = config.updateTiles()
File “/home/desuser/sen2cor/lib/python2.7/site-packages/sen2cor/L2A_Config.py”, line 3821, in updateTiles
if self.create_L2A_Tile():
File “/home/desuser/sen2cor/lib/python2.7/site-packages/sen2cor/L2A_Config.py”, line 3846, in create_L2A_Tile
self.getEntriesFromDatastrip()
File “/home/desuser/sen2cor/lib/python2.7/site-packages/sen2cor/L2A_Config.py”, line 3787, in getEntriesFromDatastrip
self.spacecraftName = di.SPACECRAFT_NAME.text
AttributeError: ‘bool’ object has no attribute ‘SPACECRAFT_NAME’

Any suggestions?

Dear user,

We recommend using Sen2Cor 2.11 when processing recent Sentinel-2 products.

Please be aware of point 7) of Sen2Cor FAQ if you plan to install Sen2Cor version 2.11 on Linux recent distributions.

Cheers,

@Sen2cor_dev_team