Slice-Assembly strange behaviour: gpt VS Interface

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

Hello,

just a report with the 2.0 release: No change, the same problem.

In addition, I don’t know why but whatever gpt command or snap interface, all the processing on Ubuntu seems to be slower than before like the processing have to much stand by time.

Best

Try to slice the images at the very beginning and do the calibration afterwards. However, I am figuring out other issues in SNAP 2.0, that it gives an Product read error when using gpt. Will open a ticket on this.

In addition, make sure that your slices are suited. You have this message, although your products seem to be actually consecutive.
SliceAssembly: Slice assembly requires at least two consecutive slice products

Thanks for help.

About the very begining, I had tried however I had a strange bug lik it overlap the data as shown in an other post SAR mosaic

The product ar wuited for slice because it works with snap desktop but not with gpt this why I post.

Thanks again for help !

Hi.
Sorry, I missed this post and thanks for making me aware of. Indeed I followed your workflow from the other post, and it worked for me also in SNAP 2.0 under Ubuntu 14.04 64bit with successful program execution on CL.

Buuuuut, I am still facing this issue with the striping, which I think comes from the terrain flattening, which does not do a satisfactory job at all. I hope this will be solved soon!

Thanks!

Thanks for reply.
When you say that it works, did you try with same dataset or another one?

If another one xan you give me the data name in order that I download it to test?

Thanks