senbox-org / sen2like

The main goal of Sen2Like is to generate Sentinel-2 like harmonised/fused surface reflectances with higher periodicity by integrating additional compatible optical mission sensors.
https://www.researchgate.net/project/Sen2Like
84 stars 14 forks source link

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

Open ValentinaHutter opened 3 months ago

ValentinaHutter commented 3 months ago

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 commented 3 months ago

@jeromemblouis I saw you added the README and download script, do you know who's maintaining sen2cor3? I would really appreciate it, if you could forward this :)

ValentinaHutter commented 3 months ago

Oh, just found this: https://forum.step.esa.int/t/sen2cor-supporting-processing-baseline-05-11/42828