I’m trying to obtain a S2A L2A product by sen2cor command line interface. I use the following commands:
macbookaldo:~ aldotapia$ source /Users/aldotapia/sen2cor/L2A_Bashrc
macbookaldo:~ aldotapia$ L2A_Process /Volumes/AldoMicroSD/Sentinel/S2A_OPER_PRD_MSIL1C_PDMC_20160826T011151_R139_V20160825T144732_20160825T145738.SAFE --resolution=10
But I obtain an IOError message (/._S2A_OPER_MSI_L1C_TL_MTI__20160825T211715_A006142_T19JBH_B01.jp2 is not a JPEG 2000 file.
). I don’t know why appears ._name
in image path, somebody knows how to fix this issue?
Complete output :
Sentinel-2 Level 2A Prototype Processor (Sen2Cor), 2.3.0, created: 2016.11.18 started ...
selected resolution is 10 m.
Progress[%]: 0.27 : PID-1412, 20 m resolution must be processed first, elapsed time[s]: 6.399
Progress[%]: 0.56 : PID-1412, L2A_ProcessTile: processing with resolution 20 m, elapsed time[s]: 7.033
Progress[%]: 0.56 : PID-1412, L2A_ProcessTile: start of pre processing, elapsed time[s]: 0.000
Progress[%]: 0.56 : PID-1412, L2A_Tables: start import, elapsed time[s]: 0.076
Process L2A_ProcessTile-1:
Traceback (most recent call last):
File "/Users/aldotapia/anaconda/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/Users/aldotapia/anaconda/lib/python2.7/site-packages/sen2cor-2.3.0-py2.7.egg/sen2cor/L2A_ProcessTile.py", line 135, in run
if self.process_10() == False:
File "/Users/aldotapia/anaconda/lib/python2.7/site-packages/sen2cor-2.3.0-py2.7.egg/sen2cor/L2A_ProcessTile.py", line 178, in process_10
if not self.process_20():
File "/Users/aldotapia/anaconda/lib/python2.7/site-packages/sen2cor-2.3.0-py2.7.egg/sen2cor/L2A_ProcessTile.py", line 157, in process_20
return self.process()
File "/Users/aldotapia/anaconda/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 "/Users/aldotapia/anaconda/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 "/Users/aldotapia/anaconda/lib/python2.7/site-packages/sen2cor-2.3.0-py2.7.egg/sen2cor/L2A_Tables.py", line 1017, in importBandList
res = self.importBand(i, os.path.join(sourceDir, filename))
File "/Users/aldotapia/anaconda/lib/python2.7/site-packages/sen2cor-2.3.0-py2.7.egg/sen2cor/L2A_Tables.py", line 1638, in importBand
indataset = glymur.Jp2k(filename)
File "/Users/aldotapia/anaconda/lib/python2.7/site-packages/glymur/jp2k.py", line 160, in __init__
self.parse()
File "/Users/aldotapia/anaconda/lib/python2.7/site-packages/glymur/jp2k.py", line 302, in parse
raise IOError(msg)
IOError: /Volumes/AldoMicroSD/Sentinel/S2A_OPER_PRD_MSIL1C_PDMC_20160826T011151_R139_V20160825T144732_20160825T145738.SAFE/GRANULE/S2A_OPER_MSI_L1C_TL_MTI__20160825T211715_A006142_T19JBH_N02.04/IMG_DATA/._S2A_OPER_MSI_L1C_TL_MTI__20160825T211715_A006142_T19JBH_B01.jp2 is not a JPEG 2000 file.