I have tested the new release of sen2cor (v 2.3.0) on Unix.
The problem reported in this post Using DEM for L2A_Process - Error seems to be fixed by using subprocess.Popen.wait().
I still have problems using DEM, the reported error is:
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 196, in process
if(self.preprocess() == False):
File “/opt/anaconda2/lib/python2.7/site-packages/sen2cor-2.3.0-py2.7.egg/sen2cor/L2A_ProcessTile.py”, line 289, in preprocess
if(self.tables.importBandList() == False):
File “/opt/anaconda2/lib/python2.7/site-packages/sen2cor-2.3.0-py2.7.egg/sen2cor/L2A_Tables.py”, line 1091, in importBandList
if(self.gdalDEM_Shade(demfile) == False):
File “/opt/anaconda2/lib/python2.7/site-packages/sen2cor-2.3.0-py2.7.egg/sen2cor/L2A_Tables.py”, line 1582, in gdalDEM_Shade
self.importBand(self.SDW, sdwfile)
File “/opt/anaconda2/lib/python2.7/site-packages/sen2cor-2.3.0-py2.7.egg/sen2cor/L2A_Tables.py”, line 1633, in importBand
indataArr = gdal.Open(filename, GA_ReadOnly)
RuntimeError: No such file or directory
The problem occurs using both one or multiple cores.
If the DEM option is set to “NONE” the process is going through without errors (using both one or multiple cores).
Any solutions?
Federico