First of all, congrats for the release of SNAP 14. It looks promising.
However, when I try to open an OLCI product I get an error.
This is the exception:
java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 1
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106)
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302)
at java.base/java.util.Objects.checkIndex(Objects.java:385)
at java.base/java.util.ArrayList.get(ArrayList.java:427)
at org.esa.snap.dataio.netcdf.cache.NetcdfCacheDataProvider.register(NetcdfCacheDataProvider.java:44)
at eu.esa.opt.dataio.s3.Sentinel3DddbReader.registerVariableWithCache(Sentinel3DddbReader.java:528)
at eu.esa.opt.dataio.s3.Sentinel3DddbReader.addBand(Sentinel3DddbReader.java:448)
at eu.esa.opt.dataio.s3.Sentinel3DddbReader.addVariables(Sentinel3DddbReader.java:401)
at eu.esa.opt.dataio.s3.Sentinel3DddbReader.readProductNodesImpl(Sentinel3DddbReader.java:296)
at org.esa.snap.core.dataio.AbstractProductReader.readProductNodes(AbstractProductReader.java:181)
at org.esa.snap.core.dataio.ProductIO.readProduct(ProductIO.java:180)
at org.esa.snap.rcp.actions.file.ReadProductOperation.run(ReadProductOperation.java:61)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1420)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
you hit a spot that we never encountered - although we’re processing OLCI L1 systematically.
The reason for the crash is: in baseline version 003.00.00 the frame_offset is an 8 bit array, in 003.03.00 also, in 003.03.01 it is a 16 bit vector and finally from version 003.03.02 and onwards it is again an 8 bit array.
We are currently investigating with the OPT-MPC about this and the missing documentation on the sub-baseline version increments.
We will release a module update once we’re aligned with ESA.
Thanks for reporting this and sharing the sample product. It looks like a SNAP 14 issue with the OLCI EFR reader. Hopefully the team can reproduce it and provide a fix or workaround soon.
I still get error while trying to open Sentinel 3 OLCI Level-2 WFR product (downloaded from Copernicus CDSE) in SNAP 14. The error shown is
java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 1
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106)
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302)
at java.base/java.util.Objects.checkIndex(Objects.java:385)
at java.base/java.util.ArrayList.get(ArrayList.java:427)
at org.esa.snap.dataio.netcdf.cache.NetcdfCacheDataProvider.register(NetcdfCacheDataProvider.java:44)
at eu.esa.opt.dataio.s3.Sentinel3DddbReader.registerVariableWithCache(Sentinel3DddbReader.java:525)
at eu.esa.opt.dataio.s3.Sentinel3DddbReader.addBand(Sentinel3DddbReader.java:445)
at eu.esa.opt.dataio.s3.Sentinel3DddbReader.addVariables(Sentinel3DddbReader.java:398)
at eu.esa.opt.dataio.s3.Sentinel3DddbReader.readProductNodesImpl(Sentinel3DddbReader.java:293)
at org.esa.snap.core.dataio.AbstractProductReader.readProductNodes(AbstractProductReader.java:181)
at org.esa.snap.core.dataio.ProductIO.readProduct(ProductIO.java:180)
at org.esa.snap.rcp.actions.file.ReadProductOperation.run(ReadProductOperation.java:61)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1420)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2035)
The products that I tried opening are
S3B_OL_2_WFR____20181016T043339_20181016T043639_20210821T163214_0179_014_033______MAR_R_NT_003.SEN3.zip
S3B_OL_2_WFR____20191016T043459_20191016T043759_20210816T134920_0179_031_090______MAR_R_NT_003.SEN3.zip
S3B_OL_2_WFR____20201016T044626_20201016T044926_20210921T195937_0180_044_304______MAR_R_NT_003.SEN3.zip
(The above 3 products are opening fine in the SeaDAS software)
When I tried opening a very recent product in SNAP 14, it worked fine.
S3B_OL_2_WFR____20260907T045157_20260907T045457_20260907T064339_0179_124_190_2700_MAR_O_NR_004.SEN3.zip
we have been investigating and in contact with EUMETSAT, who processed the files you mentioned.
The issue is a mismatch in the frame_offset variable definition, which is only present in collection 003 data processed by EUMETSAT. They are currently undergoing a full OLCI archive re-processing to bring the complete time-series up to collection 004 format. This is expected to be published in January. So, please be patient ….