sen2like icon indicating copy to clipboard operation
sen2like copied to clipboard

sen2cor config issue with "di.SPACEC RAFT_NAME.text"

Open ValentinaHutter opened this issue 6 months ago • 2 comments

I have been trying to make use of sen2cor3 in sen2like, where I first downloaded sen2cor and then updated my sen2like config.ini to include the path to sen2cor3 and use_sen2cor = True as well as sen2cor_topographic_correction = True.

I am running into this error:

File "/sen2cor_3.1.0_python_3.10/SEN2COR_3/L2A_Process.py", line 760, in main

    L2A_TILES = config.updateTiles()

  File "/sen2cor_3.1.0_python_3.10/SEN2COR_3/L2A_Config.py", line 4044, in updateTiles

    if self.create_L2A_Tile():

  File "/sen2cor_3.1.0_python_3.10/SEN2COR_3/L2A_Config.py", line 4069, in create_L2A_Tile

    self.getEntriesFromDatastrip()

  File "/sen2cor_3.1.0_python_3.10/SEN2COR_3/L2A_Config.py", line 3997, in getEntriesFromDatastrip

    self.spacecraftName = di.SPACECRAFT_NAME.text

AttributeError: 'bool' object has no attribute 'SPACECRAFT_NAME'

Does anyone know how to resolve it?

ValentinaHutter avatar Aug 09 '24 12:08 ValentinaHutter