Hallo i am using sen2cor with python. I have constructed a loop to iterate over multiple files and perform the correction. The code is the following.
for file in os.listdir(inFolder):
if path.rfind(‘S2B_MSIL1C’)!=-1 or path.rfind(‘S2A_MSIL1C’)!=-1 :
print (‘Reading image:’)
print (‘Applying atmoshphheric correction with sen2cor’)
cmd = ‘Sen2Cor-02.05.05-win64\L2A_Process ‘+path+’ --resolution=60’
inFolder is the folder containing all the images. However when i do that in some of the images it produces an additional xml report e.g. S2B_MSIL2A_20171022T103049_N0205_R108_T32TLP_20171022T103821_20181218T235406_report.xml and in others no . Why is that?
Also in the configuration file i have given in the look up table aerosol type maritime and in the report file it says Aerosol Type: Rural. Why is that since i gave in the configuration file another type of aerosol to use?
the report file should be existing for all images. It gives you a lot of information about the processing and possible problems during processing. I never observed that it was missing until now. Therefore I ask you to look careful again in the top directory of the L2A-product. If you really don’t find it, then please give me some more information about your processing (product name, processor version, configuration file) that I can help you to find the origin of the problem.
Your second point: You are sure that the correct configuration file was used? You can also try specifying the configuration file in the call of Sen2Cor.
I use the Sen2Cor-02.05.05-win64 standalone version. For example one of the images i use is S2B_MSIL1C_20180130T103249_N0206_R108_T31TFF_20180130T123945.SAFE and as you can see in the screenshot there is no report in the atmpsheric corrected folder
Why is that?
In regards to the second question i changed the L2A_GIPP.xml located in the cfg folder in the parameter to Maritime (<Aerosol_Type>MARITIME</Aerosol_Type)
However as you can see in the report of this image (S2A_MSIL1C_20161201T103412_N0204_R108_T31TFH_20161201T103456.SAFE) it says aerosol typ rural (posted sceenshot).
Why is that?