Hello there
I am experiencing a problem with processing Sentinel-2 L2A released after 23/07/2024
When i try to import, as usual, MTD_MSIL2A.xml inside Sentinel-2 root folder, SNAP produces this error:
java.io.IOException: Unable to read metadata from MTD_MSIL2A.xml
at eu.esa.opt.dataio.s2.l2a.metadata.L2aMetadata.initProduct(L2aMetadata.java:110)
at eu.esa.opt.dataio.s2.l2a.metadata.L2aMetadata.(L2aMetadata.java:100)
at eu.esa.opt.dataio.s2.l2a.metadata.L2aMetadata.parseHeader(L2aMetadata.java:91)
at eu.esa.opt.dataio.s2.l2a.metadata.S2L2aProductMetadataReader.parseHeader(S2L2aProductMetadataReader.java:27)
at eu.esa.opt.dataio.s2.l2a.metadata.S2L2aProductMetadataReader.parseHeader(S2L2aProductMetadataReader.java:18)
at eu.esa.opt.dataio.s2.ortho.metadata.AbstractS2OrthoMetadataReader.readMetadataHeader(AbstractS2OrthoMetadataReader.java:52)
at eu.esa.opt.dataio.s2.Sentinel2ProductReader.readProductNodesImpl(Sentinel2ProductReader.java:192)
at org.esa.snap.core.dataio.AbstractProductReader.readProductNodes(AbstractProductReader.java:178)
at eu.esa.opt.dataio.s2.ortho.Sentinel2OrthoProductReaderProxy.readProductNodes(Sentinel2OrthoProductReaderProxy.java:90)
at org.esa.snap.core.dataio.ProductIO.readProduct(ProductIO.java:181)
[catch] at org.esa.snap.rcp.actions.file.ReadProductOperation.run(ReadProductOperation.java:61)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
i run SNAP on linux ubuntu server (18.04 and 22.04), SNAP version: 9.0 and 10.0 (with last update installed)
I check the difference between MTD_MSIL2A.xml before 23/07 and after:
- namespaces in root tag
- DARK_FEATURES class renamed in CAST_SHADOW as reported in this Copernicus News: Deployment of Sentinel-2 Processing Baseline in version 05.11 on 23 July | Copernicus Data Space Ecosystem
is anyone experiencing the same problem? how can i solve it?
Thank you in advance