While running sen2cor I get an error:
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.2.1-py2.7.egg/sen2cor/L2A_ProcessTile.py", line 129, in run
if self.process_60() == False:
File "/opt/anaconda2/lib/python2.7/site-packages/sen2cor-2.2.1-py2.7.egg/sen2cor/L2A_ProcessTile.py", line 154, in process_60
return self.process()
File "/opt/anaconda2/lib/python2.7/site-packages/sen2cor-2.2.1-py2.7.egg/sen2cor/L2A_ProcessTile.py", line 227, in process
if(ac.process() == False):
File "L2A_AtmCorr.py", line 3252, in L2A_AtmCorr.L2A_AtmCorr.process (L2A_AtmCorr.c:66336)
File "L2A_AtmCorr.py", line 9828, in L2A_AtmCorr.L2A_AtmCorr.prepare_wv_retrieval (L2A_AtmCorr.c:224103)
File "L2A_AtmCorr.py", line 9716, in L2A_AtmCorr.L2A_AtmCorr.apda1_lut_constvis_a3 (L2A_AtmCorr.c:221596)
UnboundLocalError: local variable 'wvcols' referenced before assignment
for each granule within a product.
After encountering an error sen2cor switches to processing next granule within a product but after the last granules it hangs and has to be killed manually.
Problem arises only for some products (I can provide more examples of failing or passing products).
Is there a way to fix it?
sen2cor: 2.2.1
product: S2A_OPER_PRD_MSIL1C_PDMC_20160526T200544_R050_V20160521T090903_20160521T090903.SAFE
resolution: both 20m and 60m