In reference to an older post:
I am having a recurrence of this issue on SNAP 5.0, S3tbx 5.0.3 on OSx 10.10. I am trying to run a simple XML graph that subsets, land-masks and reprojects a level 2 S3 OLCI scene. The same XML has been confirmed as working on two other OSx machines (10.10 and 10.12).
The error log is below (collected from a python logger, with gpt called as a sub-process with the -e option). Can you please help with how to proceed to correct this? I can’t find any reference to modern occurrences.
Thanks
Ben
===================================
INFO:root:INFO: org.esa.snap.core.gpf.operators.tooladapter.ToolAdapterIO: Initializing external tool adapters
INFO:root:INFO: org.esa.s2tbx.dataio.gdal.activator.GDALDistributionInstaller: No distribution folder found on Macintosh.
INFO:root:Executing processing graph
INFO:root:The Product ‘Subset_S3A_OL_2_WFR____20170705T063341_20170705T063641_20170706T150012_0179_019_291_1799_MAR_O_NT_002.SEN3’ already contains a band with the name ‘latitude’.
INFO:root: done.
INFO:root:org.esa.snap.core.gpf.graph.GraphException: [NodeId: Land-Sea-Mask] The Product ‘Subset_S3A_OL_2_WFR____20170705T063341_20170705T063641_20170706T150012_0179_019_291_1799_MAR_O_NT_002.SEN3’ already contains a band with the name ‘latitude’.
INFO:root: at org.esa.snap.core.gpf.graph.NodeContext.initTargetProduct(NodeContext.java:79)
INFO:root: at org.esa.snap.core.gpf.graph.GraphContext.initNodeContext(GraphContext.java:195)
INFO:root: at org.esa.snap.core.gpf.graph.GraphContext.initNodeContext(GraphContext.java:178)
INFO:root: at org.esa.snap.core.gpf.graph.GraphContext.initNodeContext(GraphContext.java:178)
INFO:root: at org.esa.snap.core.gpf.graph.GraphContext.initNodeContext(GraphContext.java:178)
INFO:root: at org.esa.snap.core.gpf.graph.GraphContext.initOutput(GraphContext.java:162)
INFO:root: at org.esa.snap.core.gpf.graph.GraphContext.(GraphContext.java:91)
INFO:root: at org.esa.snap.core.gpf.graph.GraphContext.(GraphContext.java:64)
INFO:root: at org.esa.snap.core.gpf.graph.GraphProcessor.executeGraph(GraphProcessor.java:130)
INFO:root: at org.esa.snap.core.gpf.main.DefaultCommandLineContext.executeGraph(DefaultCommandLineContext.java:86)
INFO:root: at org.esa.snap.core.gpf.main.CommandLineTool.executeGraph(CommandLineTool.java:534)
INFO:root: at org.esa.snap.core.gpf.main.CommandLineTool.runGraph(CommandLineTool.java:388)
INFO:root: at org.esa.snap.core.gpf.main.CommandLineTool.runGraphOrOperator(CommandLineTool.java:287)
INFO:root: at org.esa.snap.core.gpf.main.CommandLineTool.run(CommandLineTool.java:188)
INFO:root: at org.esa.snap.core.gpf.main.CommandLineTool.run(CommandLineTool.java:121)
INFO:root: at org.esa.snap.core.gpf.main.GPT.run(GPT.java:54)
INFO:root: at org.esa.snap.core.gpf.main.GPT.main(GPT.java:34)
INFO:root: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO:root: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
INFO:root: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO:root: at java.lang.reflect.Method.invoke(Method.java:498)
INFO:root: at org.esa.snap.runtime.Launcher.lambda$run$0(Launcher.java:55)
INFO:root: at org.esa.snap.runtime.Engine.runClientCode(Engine.java:189)
INFO:root: at org.esa.snap.runtime.Launcher.run(Launcher.java:51)
INFO:root: at org.esa.snap.runtime.Launcher.main(Launcher.java:31)
INFO:root: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO:root: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
INFO:root: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO:root: at java.lang.reflect.Method.invoke(Method.java:498)
INFO:root: at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:62)
INFO:root: at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:57)
INFO:root:Caused by: org.esa.snap.core.gpf.OperatorException: The Product ‘Subset_S3A_OL_2_WFR____20170705T063341_20170705T063641_20170706T150012_0179_019_291_1799_MAR_O_NT_002.SEN3’ already contains a band with the name ‘latitude’.
INFO:root: at org.esa.snap.engine_utilities.gpf.OperatorUtils.catchOperatorException(OperatorUtils.java:421)
INFO:root: at org.esa.snap.raster.gpf.masks.CreateLandMaskOp.initialize(CreateLandMaskOp.java:103)
INFO:root: at org.esa.snap.core.gpf.internal.OperatorContext.initializeOperator(OperatorContext.java:486)
INFO:root: at org.esa.snap.core.gpf.internal.OperatorContext.getTargetProduct(OperatorContext.java:273)
INFO:root: at org.esa.snap.core.gpf.Operator.getTargetProduct(Operator.java:387)
INFO:root: at org.esa.snap.core.gpf.graph.NodeContext.initTargetProduct(NodeContext.java:77)
INFO:root: … 30 more
INFO:root:
INFO:root:Error: [NodeId: Land-Sea-Mask] The Product ‘Subset_S3A_OL_2_WFR____20170705T063341_20170705T063641_20170706T150012_0179_019_291_1799_MAR_O_NT_002.SEN3’ already contains a band with the name ‘latitude’.



I found the S3 should be re-projected to the same S2 projection, because simply the tutorial says that the template is the preprocessed S2 band reflectance, and thus it has different projection, the input S3 is Band_observation_geometry