I was trying to run the Sen2Cor Atmospheric Correction processor for a Sentinel 2 L1C image but the following message appear: AttributeError: ‘bool’ object has no attribute ‘ARCHIVING_TIME’
I created the path C:\Users\USUARIO\Documents\sen2cor and attend all instructions given by the tutorial.
This error was reported a couple of times in this forum but yet with no solution. Maybe we can narrow it down:
Did you already apply any pre-processing to the data?
Where did you download the data?
Can you please give the full name of the image you want to process?
Was it extracted successfully? It has 766 MB and contains 103 files with 11 folders.
Are you using the latest version of sen2cor? (02.05.05-win64)
Maybe you have some old versions still floating around which are called when you type L2A_Process
Type in the full path to the bat file and the folder as I did above to go sure.
For example C:\GIS\sen2cor\L2A_Process.bat D:\S2\S2A_MSIL1C_20180711T153621_N0206_R068_T18NUL_20180711T204317.SAFE
(should be one line only of course)
the only thing that looks strange to me is the *.dim and *.data product inside the original directory. Did you already perform any processing on the S2 data?
Maybe also the ó in the path name is causing trouble or the full path is too long. Copy the *.SAFE folder (without dim and data) to a simple location, such as C:\S2\S2A_MSIL… and run again.
I’ve encountered the same error. The first time I ran L2A_Process with a S2 scene an output directory was created for the corrected S2 scene. But I aborted the process before it was finished. When I ran it a second time, I got the error message above. Deleting the output folder solved the problem.