Sen2cor 2.5.5 - No such file _PVI.jp2

I use sen2cor 2.5.5 (standalone installer - linux). Does anyone know why this error occurs:

Process L2A_ProcessTile-1:
Traceback (most recent call last):
File "/home/ogist/Sen2Cor-02.05.05-Linux64/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/home/ogist/Sen2Cor-02.05.05-Linux64/lib/python2.7/site-packages/sen2cor/L2A_ProcessTile.py", line 122, in run
if not self.process_60():
File "/home/ogist/Sen2Cor-02.05.05-Linux64/lib/python2.7/site-packages/sen2cor/L2A_ProcessTile.py", line 147, in process_60
self.tables = L2A_Tables(self.config)
File "/home/ogist/Sen2Cor-02.05.05-Linux64/lib/python2.7/site-packages/sen2cor/L2A_Tables.py", line 270, in __init__
indataset = glymur.Jp2k(L1C_Tile_PVI_File)
File "/home/ogist/Sen2Cor-02.05.05-Linux64/lib/python2.7/site-packages/glymur/jp2k.py", line 159, in __init__
self.parse()
File "/home/ogist/Sen2Cor-02.05.05-Linux64/lib/python2.7/site-packages/glymur/jp2k.py", line 268, in parse
self.length = os.path.getsize(self.filename)
File "/home/ogist/Sen2Cor-02.05.05-Linux64/lib/python2.7/genericpath.py", line 57, in getsize
return os.stat(filename).st_size
OSError: [Errno 2] No such file or directory: '/tmp/PREP/S2A_MSIL2A_20180326T094029_N0206_R036_T33TXK_20180326T121330.SAFE/GRANULE/L2A_T33TXK_A005496_20180326T094622/QI_DATA/T33TXK_20180326T094029_PVI.jp2'

Why does the processor look for _PVI.jp2 in QI_DATA? And what is _PVI.jp2?
This happens when the processor is started.

the similar question about pvi tiles. When we use 2.5.5 to deal with the data in 2016( before renamed) , it gives the error at 40%+processing about “AttributeError :‘L2A_Tables’ object has no attribute ‘_L2A_Tile _PVI_Files’”, how can i resolve this problem?

the same question question about pvi tiles.who have been solved this problem?

I have the same issue with old style L2A products acquired before December 5th 2016 (when data were not split per tiles)

I have a similar issues with products of 2018 using the sen2cor 2.5.5

Syntax error in metadata, see report file for details.
[PERROR] L2A_XmlParse: 120 Schema file: S2-PDGS-TAS-DI-PSD-V14.5_Schema\S2_PDI_Level-2A_Tile_Metadata.xsd
arsing error:[
ERROR] L2A_XmlParse: 120 Schema file: S2-PDGS-TAS-DI-PSD-V14.5_Schema\S2_PDI_Level-2A_Tile_Metadata.xsd
S[chema file: S2-PDGS-TAS-DI-PSD-V14.5_Schema\S2_PDI_Level-2A_Tile_Metadata.xsdERROR] L2A_XmlParse: 121 Details: Element ‘PVI_FILENAME’: [facet ‘pattern’] The value ‘GRANULE/L1C_T17MPM_A014222_20180313T154103/QI_DATA/T17MPM_20180313T153611_PVI.jp2’ is not accepted by the pattern ‘GRANULE/L2A_T[\w{Lu}]{5}A\d{6}\d{8}T\d{6}/QI_DATA/T[\w{Lu}]{5}_\d{8}T\d{6}_PVI.jp2’.

[DERROR] L2A_XmlParse: 121 Details: Element ‘PVI_FILENAME’: [facet ‘pattern’] The value ‘GRANULE/L1C_T17MPM_A014222_20180313T154103/QI_DATA/T17MPM_20180313T153611_PVI.jp2’ is not accepted by the pattern ‘GRANULE/L2A_T[\w{Lu}]{5}A\d{6}\d{8}T\d{6}/QI_DATA/T[\w{Lu}]{5}\d{8}T\d{6}PVI.jp2’.
etails: Element ‘PVI_FILENAME’: [facet ‘pattern’] The value ‘GRANULE/L1C_T17MPM_A014222_20180313T154103/QI_DATA/T17MPM_20180313T153611_PVI.jp2’ is not accepted by the pattern 'GRANULE/L2A_T[\w{Lu}
]{5}A\d{6}\d{8}T\d{6}/QI_DATA/T[\w{Lu}
]{5}_\d{8}T\d{6}_PVI.jp2’.
Progress[%]: 100.00 : Application terminated successfully.

After sen2cor finished I trying to open de new product, however, the following menssage is shown by snap “No valied tiles associated to product [MTD_MSIL2A.xml]” and I can not open it.

Than you in advances,

Caleb.

I also had the same error as the OP with the Linux standalone installation. I also tried running as sudo to make sure it wasn’t a permission problem. I was able to correct the same image with sen2cor running on OSX.

Further to my previous post, the Linux version with the “OSError: [Errno 2] No such file or directory: ‘…_PVI.jp2’” error was the latest version 2.5.5. I then installed the older 2.4.0 Linux version and the error was not present.

Hallo all,

the problem is related to the new operation mode of Sen2Cor for the PDGS. Therefore it is clear, that it not occurs for Sen2Cor 2.4. I have no information about your processing configuration. Please make sure, that you use the TOOLBOX mode to avoid this problem. More, it seems for me that the problem occurs if you are running 10m processing only (Look also at Error Sen2cor). Then try to process for all resolutions.

I unfortunately have no information when the problem will be solved. It seem to be difficult.

2 Likes

Thank you Bringfried.

Then try to process for all resolutions.

Do you mean use first --resolution 20, than reprocess with --resolution 10 ?
best regards,
Olivier

Hello! I have the same problem. Where did you find Linux version 2.4.0? I can’t find it anywhere, all links lead to the latest version 2.5.5.

You can just change the URL for the current version to get 2.4

http://step.esa.int/thirdparties/sen2cor/2.4.0/Sen2Cor-2.4.0-Linux64.run

The file causing problems (*_PVI.jp2) is a preview file. The SAFE format seems highly volatile by relying on correctly named files. sen2cor seems very stringent on the exact name of this file for some unknown reason.

I think the preview file causing trouble is using the datatake time in its name instead of the sensing time which is also part of the granule tile name. If you rename the preview file to use the time stamp found in the granule tile name, sen2cor will not throw a fit.