How to use the SNAP API from Python says "The supported versions are Python 2.7, 3.3 to 3.6 64-bit (Linux + Darwin) and both 32-bit and 64-bit (Windows) as well as Anaconda distributions. "
A Python 3.6 linux whl file is included with SNAP 8.0 (as well as Windows and macOS):
Ubuntu 18.04 provides Python 3.6. I expect that is a widely used combination, so any serious problems would be known by now even if it hasn’t had the same level of testing as
older Python releases.
As ever, a great tool. Thanks to you all for your efforts. Just one minor point; I receive this error when trying to open products in the old SENTINEL SAFE Format:
java.lang.IllegalStateException: The naming convention structure is invalid for input file 'C:\DAGCRepo\S2A_OPER_PRD_MSIL1C_PDMC_20201023T071918_R133_V20201023T042841_20201023T042841.SAFE\GRANULE\S2A_OPER_MSI_L1C_TL_VGS1_20201023T062130_A027872_T46SEE_N02.09\S2A_OPER_MTD_L1C_TL_VGS1_20201023T062130_A027872_T46SEE.xml'
at org.esa.s2tbx.dataio.s2.metadata.AbstractS2MetadataReader.<init>(AbstractS2MetadataReader.java:33)
at org.esa.s2tbx.dataio.s2.ortho.metadata.AbstractS2OrthoMetadataReader.<init>(AbstractS2OrthoMetadataReader.java:19)
at org.esa.s2tbx.dataio.s2.l1c.metadata.S2L1cProductMetadataReader.<init>(S2L1cProductMetadataReader.java:21)
at org.esa.s2tbx.dataio.s2.l1c.Sentinel2L1CProductReader.buildMetadataReader(Sentinel2L1CProductReader.java:60)
at org.esa.s2tbx.dataio.s2.l1c.Sentinel2L1CProductReader.buildMetadataReader(Sentinel2L1CProductReader.java:45)
at org.esa.s2tbx.dataio.s2.Sentinel2ProductReader.readProductNodesImpl(Sentinel2ProductReader.java:152)
at org.esa.snap.core.dataio.AbstractProductReader.readProductNodes(AbstractProductReader.java:178)
at org.esa.s2tbx.dataio.s2.ortho.Sentinel2OrthoProductReaderProxy.readProductNodes(Sentinel2OrthoProductReaderProxy.java:84)
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)
Does this mean that SENTINEL SAFE is not supported in SNAP 8.0? I’ve done a cursory check of all QI Reports, and the format and structure of the product seems to be OK.
I have currently checked only the product in my previous post, but I am downloading another product to check. I know that if I select the product in COMPACT_SAFE, I can open it in SNAP.
Dear Jan,
looking at the code (from your error stack trace), I see that this can happen if IMG_DATA or QI_DATA are missing (on the same level with granule metadata S2A_OPER_MTD_L1C_TL_VGS1_20201023T062130_A027872_T46SEE.xml )
Can you check this?
I’ve found the issue (it was a local configuration problem in my access software that didn’t present in the COMPACT_SAFE format download). My apologies.
and then the same all over again. Going on for hours.
I can see from the hang-workaround in the docs that we are waiting for the message updates=0 which indicates the process is done. But it does never seem to reach that?
This is with Debian 9 (Stretch).
@neteler did you perhaps encounter this too when developing your Dockerfile or did you just not try to run the update command?