Error using sen2cor v 2.3.0 with LUT parameter set to 'AUTO'

I have tested the new release of sen2cor (v 2.3.0) on Unix.

I set the parameter ‘Mid_Latitude’ to value ‘AUTO’ in the ‘L2A_GIPP.xml’ configuration file, and I got two different messages during single granules processing:

  • L2A_AtmCorr: No DDV Pixels found, aerosol type detection will be disabled

  • L2A_AtmCorr: best fit is: WINTER RURAL

For the first case, the processing of the granule was completed without errors.
In the second case, the processing of the granule stopped and the following error message was reported:

Process L2A_ProcessTile-1:
Traceback (most recent call last):
File “/opt/anaconda2/lib/python2.7/multiprocessing/process.py”, line 258, in _bootstrap
self.run()
File “/opt/anaconda2/lib/python2.7/site-packages/sen2cor-2.3.0-py2.7.egg/sen2cor/L2A_ProcessTile.py”, line 121, in run
if self.process_60() == False:
File “/opt/anaconda2/lib/python2.7/site-packages/sen2cor-2.3.0-py2.7.egg/sen2cor/L2A_ProcessTile.py”, line 147, in process_60
return self.process()
File “/opt/anaconda2/lib/python2.7/site-packages/sen2cor-2.3.0-py2.7.egg/sen2cor/L2A_ProcessTile.py”, line 216, in process
if(ac.automaticAerosolDetection() == False):
File “sen2cor/L2A_AtmCorr.py”, line 3331, in sen2cor.L2A_AtmCorr.L2A_AtmCorr.automaticAerosolDetection (L2A_AtmCorr.c:67442)
File “sen2cor/L2A_AtmCorr.py”, line 3356, in sen2cor.L2A_AtmCorr.L2A_AtmCorr.calcDratioAerosol (L2A_AtmCorr.c:68047)
File “sen2cor/L2A_AtmCorr.py”, line 3165, in sen2cor.L2A_AtmCorr.L2A_AtmCorr.process (L2A_AtmCorr.c:64564)
File “sen2cor/L2A_AtmCorr.py”, line 5687, in sen2cor.L2A_AtmCorr.L2A_AtmCorr.masking_a3 (L2A_AtmCorr.c:125826)
File “sen2cor/L2A_AtmCorr.py”, line 6213, in sen2cor.L2A_AtmCorr.L2A_AtmCorr.masking_a3_skip1 (L2A_AtmCorr.c:137627)
File “sen2cor/L2A_AtmCorr.py”, line 9739, in sen2cor.L2A_AtmCorr.L2A_AtmCorr.apda1_lut_constvis_a3 (L2A_AtmCorr.c:220096)
File “sen2cor/L2A_AtmCorr.py”, line 4425, in sen2cor.L2A_AtmCorr.L2A_AtmCorr.altit3_atm (L2A_AtmCorr.c:96448)
File “sen2cor/L2A_AtmCorr.py”, line 4037, in sen2cor.L2A_AtmCorr.L2A_AtmCorr.read_atm_hyper_a3 (L2A_AtmCorr.c:84257)
File “/opt/anaconda2/lib/python2.7/genericpath.py”, line 57, in getsize
return os.stat(filename).st_size
OSError: [Errno 2] No such file or directory: ‘/opt/anaconda2/lib/python2.7/site-packages/sen2cor-2.3.0-py2.7.egg/sen2cor/lib/20_60/h99000_wv02_rura.atm’
Progress[%]: 4.80 : PID-3112, L2A_Tables: band B05 imported, elapsed time[s]: 11.326
no resolution specified, will process all resolutions.
Process L2A_ProcessTile-5:
Traceback (most recent call last):
File “/opt/anaconda2/lib/python2.7/multiprocessing/process.py”, line 258, in _bootstrap
self.run()
File “/opt/anaconda2/lib/python2.7/site-packages/sen2cor-2.3.0-py2.7.egg/sen2cor/L2A_ProcessTile.py”, line 121, in run
if self.process_60() == False:
File “/opt/anaconda2/lib/python2.7/site-packages/sen2cor-2.3.0-py2.7.egg/sen2cor/L2A_ProcessTile.py”, line 147, in process_60
return self.process()
File “/opt/anaconda2/lib/python2.7/site-packages/sen2cor-2.3.0-py2.7.egg/sen2cor/L2A_ProcessTile.py”, line 216, in process
if(ac.automaticAerosolDetection() == False):
File “sen2cor/L2A_AtmCorr.py”, line 3331, in sen2cor.L2A_AtmCorr.L2A_AtmCorr.automaticAerosolDetection (L2A_AtmCorr.c:67442)
File “sen2cor/L2A_AtmCorr.py”, line 3356, in sen2cor.L2A_AtmCorr.L2A_AtmCorr.calcDratioAerosol (L2A_AtmCorr.c:68047)
File “sen2cor/L2A_AtmCorr.py”, line 3165, in sen2cor.L2A_AtmCorr.L2A_AtmCorr.process (L2A_AtmCorr.c:64564)
File “sen2cor/L2A_AtmCorr.py”, line 5687, in sen2cor.L2A_AtmCorr.L2A_AtmCorr.masking_a3 (L2A_AtmCorr.c:125826)
File “sen2cor/L2A_AtmCorr.py”, line 6213, in sen2cor.L2A_AtmCorr.L2A_AtmCorr.masking_a3_skip1 (L2A_AtmCorr.c:137627)
File “sen2cor/L2A_AtmCorr.py”, line 9739, in sen2cor.L2A_AtmCorr.L2A_AtmCorr.apda1_lut_constvis_a3 (L2A_AtmCorr.c:220096)
File “sen2cor/L2A_AtmCorr.py”, line 4425, in sen2cor.L2A_AtmCorr.L2A_AtmCorr.altit3_atm (L2A_AtmCorr.c:96448)
File “sen2cor/L2A_AtmCorr.py”, line 4037, in sen2cor.L2A_AtmCorr.L2A_AtmCorr.read_atm_hyper_a3 (L2A_AtmCorr.c:84257)
File “/opt/anaconda2/lib/python2.7/genericpath.py”, line 57, in getsize
return os.stat(filename).st_size
OSError: [Errno 2] No such file or directory: ‘/opt/anaconda2/lib/python2.7/site-packages/sen2cor-2.3.0-py2.7.egg/sen2cor/lib/20_60/h99000_wv02_rura.atm’

It seems that the LUT file for the resulting best fit model was not found. Actually it is not present in the sen2cor folder.

Could the error be generated by the fact that I used thevalue ‘AUTO’ for the parameter ‘Mid_Latitude’ and this resulted in best fit LUT ‘WINTER’ to be not compatible with thedefault value ‘h’ in parameter ‘Ozone_Content’?

Should I set the parameter ‘Ozone_Content’ to another value (‘0’ for instance) to avoid this error?

Federico

I think this is the still the same issue from the previous version. It was supposed to be fixed in the current version, but I also had it occur to me again in 2.3.0. My only solution is to set Mid_Latitude to either SUMMER or WINTER unfortunately.

Here are some previous reports: