Sen2Cor v2.10 exporting tif

Hi all,
I’m a newby on running sen2cor standalone and we’re trying to setup and fine tune version 2.10 through command line. If using all by default, all run smoothly… although L2A products doesn’t convince me visually - it seems the same product. For instance, cirrus not corrected/decreased. Downloaded CCI land cover maps… water bodies… etc. Also trying to use a local DEM as we’re below 56 deg S. But all comes the same.
Besides that, when I include the --tif to have .tif files exported, I get the following error message:
global name ‘CogConverter’ is not defined
Traceback (most recent call last):
File “D:\Tests_SNAP\Sen2Cor-02.10.01-win64\Lib\site-packages\sen2cor\L2A_Tables.py”, line 3445, in exportBandList
self.exportTifImage(filename, band)
File “D:\Tests_SNAP\Sen2Cor-02.10.01-win64\Lib\site-packages\sen2cor\L2A_Tables.py”, line 3635, in exportTifImage
tif_file = CogConverter()
NameError: global name ‘CogConverter’ is not defined
Progress[]: 23.67 : PID-27684, L2A_Tables: preparing downsampled export for 60 m resolution, elapsed time[s]: 0.064, total: 0:04:41.578000 Progress[]: 23.67 : PID-27684, L2A_Tables: start export for 60 m resolution, elapsed time[s]: 0.009, total: 0:04:41.587000
no such child: Granule
Traceback (most recent call last):
File “D:\Tests_SNAP\Sen2Cor-02.10.01-win64\Lib\site-packages\sen2cor\L2A_Process.py”, line 692, in main
if tile.process() == True:
File “D:\Tests_SNAP\Sen2Cor-02.10.01-win64\Lib\site-packages\sen2cor\L2A_ProcessTileToolbox.py”, line 117, in process
if not self.process_resolution(20):
File “D:\Tests_SNAP\Sen2Cor-02.10.01-win64\Lib\site-packages\sen2cor\L2A_ProcessTileToolbox.py”, line 147, in process_resolution
return self._process()
File “D:\Tests_SNAP\Sen2Cor-02.10.01-win64\Lib\site-packages\sen2cor\L2A_ProcessTileToolbox.py”, line 197, in _process
if self.postprocess() == False:
File “D:\Tests_SNAP\Sen2Cor-02.10.01-win64\Lib\site-packages\sen2cor\L2A_ProcessTileToolbox.py”, line 273, in postprocess
res = self.tables.downsampleBandList_20to60_andExport()
File “D:\Tests_SNAP\Sen2Cor-02.10.01-win64\Lib\site-packages\sen2cor\L2A_Tables.py”, line 3096, in downsampleBandList_20to60_andExport
Granule = pi.Product_Organisation.Granule_List.Granule
File “src/lxml/lxml.objectify.pyx”, line 229, in lxml.objectify.ObjectifiedElement.getattr (src\lxml\lxml.objectify.c:3835)
File “src/lxml/lxml.objectify.pyx”, line 450, in lxml.objectify._lookupChildOrRaise (src\lxml\lxml.objectify.c:6539)
AttributeError: no such child: Granule
Progress[%]: 100.00 : Application terminated with at least one error.

Help!

It is likely that your python system is missing the cogconverter package.

then it comes the error cited by @thaitran

Dear user,

This --tiff option issue has been fixed in Sen2Cor 2.11.

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

I’m having a similar issue trying to correct a tile from 2018. I’ve run the line L2A_Process.bat FILEPATH.SAFE --tif in version 2.10.01, 2.11, and 2.05.05, and all have failed.

2.11 ended with the message ‘Progress[]: 35.27 : PID-8764, L2A_Tables: stop export, elapsed time[s]: 0.267, total: 0:13:16.877000 Progress[]: 100.00 : Application terminated successfully.’

I had tried the same method with imagery from 2022 in 2.11, and it worked perfectly. If you also have any advice on how to batch process this method, I would be really appreciative. Thank you very much!