Hi,
after some test I have seen that running slice-assembly in snap directly or with gpt that it works better in snap (contrary to more tools that works better for in gpt than snap).
Indeed, based on the following dataset:
S1A_IW_GRDH_1SDV_20150503T094534_20150503T094559_005755_00763F_5560
S1A_IW_GRDH_1SDV_20150503T094505_20150503T094534_005755_00763F_1133
The slice work well in Snap but in gpt I have this error message in windows or Ubuntu with the following command line (apply to data with no border - precise orbit -calibrated
sh /opt/snap/bin/gpt SliceAssembly -SsourceProduct=/media/cedric/CL/S1PDG/TestBatchSlice/Output/S1A_IW_GRDH_1SDV_20150503T094505_20150503T094534_005755_00763F_1133/S1A_IW_GRDH_1SDV_20150503T094505_20150503T094534_005755_00763F_1133_Cal.dim /media/cedric/CL/S1PDG/TestBatchSlice/Output/S1A_IW_GRDH_1SDV_20150503T094534_20150503T094559_005755_00763F_5560/S1A_IW_GRDH_1SDV_20150503T094534_20150503T094559_005755_00763F_5560_Cal.dim -t /media/cedric/CL/S1PDG/TestBatchSlice/Output/S1A_IW_GRDH_1SDV_20150503T094505_20150503T094559_005755_Ubuntu.dim
SliceAssembly: Slice assembly requires at least two consecutive slice products
org.esa.snap.core.gpf.OperatorException: SliceAssembly: Slice assembly requires
at least two consecutive slice products
at org.esa.snap.engine_utilities.gpf.OperatorUtils.catchOperatorExceptio
n(OperatorUtils.java:386)
at org.esa.s1tbx.sentinel1.gpf.SliceAssemblyOp.initialize(SliceAssemblyO
p.java:156)
at org.esa.snap.core.gpf.internal.OperatorContext.initializeOperator(Ope
ratorContext.java:499)
at org.esa.snap.core.gpf.internal.OperatorContext.getTargetProduct(Opera
torContext.java:278)
at org.esa.snap.core.gpf.Operator.getTargetProduct(Operator.java:357)
at org.esa.snap.core.gpf.main.CommandLineTool.runOperator(CommandLineToo
l.java:269)
at org.esa.snap.core.gpf.main.CommandLineTool.runGraphOrOperator(Command
LineTool.java:247)
at org.esa.snap.core.gpf.main.CommandLineTool.run(CommandLineTool.java:1
51)
at org.esa.snap.core.gpf.main.CommandLineTool.run(CommandLineTool.java:1
23)
at org.esa.snap.core.gpf.main.GPT.run(GPT.java:54)
at org.esa.snap.core.gpf.main.GPT.main(GPT.java:34)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.esa.snap.runtime.Launcher.lambda$run$12(Launcher.java:55)
at org.esa.snap.runtime.Engine.runClientCode(Engine.java:186)
at org.esa.snap.runtime.Launcher.run(Launcher.java:51)
at org.esa.snap.runtime.Launcher.main(Launcher.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:62)
at com.exe4j.runtime.WinLauncher.main(WinLauncher.java:101)
at com.install4j.runtime.launcher.WinLauncher.main(WinLauncher.java:16)
Error: SliceAssembly: Slice assembly requires at least two consecutive slice pro
ducts
The same for Sanp 2b08 in Ubuntu 14.04 64bits or Windows 7 64bits (for windows the computer have4Go of ram vs 8Go ram on ubuntu) .
To be sure that I have the same settings in Snap and gpt (on ubuntu) my gpt.vmoptions was modified (same problem with or without modification):
-Xms256m
-Xmx5120m
-XX:+AggressiveOpts
-Xverify:none
-Dnetbeans.mainclass=org.esa.snap.main.Main
-Dsun.java2d.noddraw=true
-Dsun.awt.nopixfmt=true
-Dsun.java2d.dpiaware=false
On otther dataset it’s the same.
Furthermor, if I want to slice 3 data this one with the 2 other S1A_IW_GRDH_1SDV_20150503T094559_20150503T094624_005755_00763F_68EE
With snap I have a beautifull sliced data containing the 3 data but in command line he slice only the two data at the south.
By writting that it’s like with gpt he skip one data explaing why he don’t want to work.
But why it works with snap and not gpt ?
Best regards