Issue when opening pleiades product

When opening the Pleiades_Ortho_Reflectance_Pansharpened_jpeg2000_Regular.zip product downloaded from Airbus sample imagery https://www.intelligence-airbusds.com/en/8262-sample-imagery?type=363 website, the following exception is thrown by s2tbx

 java.lang.IllegalStateException: Different data types: bandDataType=11, dataTypeFromMetadata=21.
at org.esa.s2tbx.dataio.pleiades.PleiadesProductReader.validateMatrix(PleiadesProductReader.java:578)
at org.esa.s2tbx.dataio.pleiades.PleiadesProductReader.buildJP2MosaicMatrix(PleiadesProductReader.java:570)
at org.esa.s2tbx.dataio.pleiades.PleiadesProductReader.buildMosaicMatrix(PleiadesProductReader.java:484)
at org.esa.s2tbx.dataio.pleiades.PleiadesProductReader.readProductNodesImpl(PleiadesProductReader.java:187)
at org.esa.snap.core.dataio.AbstractProductReader.readProductNodes(AbstractProductReader.java:178)
at org.esa.snap.core.dataio.ProductIO.readProduct(ProductIO.java:179)
at org.esa.snap.rcp.actions.file.ReadProductOperation.run(ReadProductOperation.java:61)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)

[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)

Content of the VOL_PHR.xml and the DIM_PHR1B_PMS_201701061026046_ORT_2155287101-001.XML files provided for troubleshooting
VOL_PHR.xml (2.0 KB) DIM_PHR1B_PMS_201701061026046_ORT_2155287101-001.XML (227.6 KB)

I can confirm that the current reader fails to get the image including metadata. Yet, the image itself can be opened

I have the same issue with the following Pleiades product IMG_PHR1A_PMS_201410050834414_ORT_5636687101_R1C1.JP2

I can open it on QGIS but when I try to open the image with SNAP I receive this error

Hello Fabrizio,
It seems related to:


for which 2 tickets were opened:



I remember the error you get, it is corrected now. The data is not correctly written in the medatada (extra spaces that don’t respect the format), this is why SNAP throws an error. The handling was updated in order to ignore the extra spaces.
1 Like

We should wait for the next SNAP’s update to fix it? Because I have just updated my SNAP and when I import that jp2 file I get the error message.

Yes, the issues are corrected and planned for 9.0.0.
We could prepare them for the next minor release if you think they are urgent.