mdelgadoblasco / snap2stamps

Using SNAP as InSAR processor for StaMPS
Other
109 stars 52 forks source link

splitting_slaves is completed but nothing in the split folder #3

Closed JoyceHuang228 closed 10 months ago

JoyceHuang228 commented 4 years ago

Hi, I'm trying to use snap2stamps instead of processing via SNAP interface. When launching python splitting_slaves.py project.conf in terminal, it showed splitting was successfully completed. But the folder split was empty. It was supposed to save the splitted slave image there, right? For more informaiton, I'm using SNAP 7 and ubuntu 18.04.
Here are some screenshots for this step: s2s_pb_p1 s2s_pb_p2 s2s_split_log

Instead of using snap2stamps, I loaded the graphic file: slave_split_applyorbit.xml in SNAP and ran it. I got the splitted slave image data and the corresponding .dim file. Could you please help me to solve this issue? thank you very much

uditasopatudelft commented 3 years ago

Hello, I am facing the same issue. I am tyring to the process and noticed that I recieve error in the "apply orbit file" step. I recieve the following error:

3492 [main] INFO org.apache.http.impl.execchain.RetryExec - I/O exception (java.net.NoRouteToHostException) caught when processing request to {s}->https://qc.sentinel1.eo.esa.int:443: No route to host (Host unreachable)

The full terminal output is as follows:

-------------------------------------------------terminal windows output start----------------------------------------------------------------

`(py2) user@machine:~/stamps/project/bin$ python splitting_slaves.py project.conf /home/user/stamps/project /home/user/stamps/project/graphs IW2 /home/user/snap7/bin/gpt

#####################################################################

TOPSAR Splitting and Apply Orbit

#####################################################################

[1] Folder: 20200601 /home/user/stamps/project/slaves/20200601 ['/home/user/stamps/project/slaves/20200601/S1A_IW_SLC__1SDV_20200601T214655_20200601T214722_032829_03CD75_5D75.zip'] FILE(s) : /home/user/stamps/project/slaves/20200601/S1A_IW_SLC__1SDV_20200601T214655_20200601T214722_032829_03CD75_5D75.zip ['/home/user/snap7/bin/gpt', '/home/user/stamps/project/graphs/splitgraph2run.xml', '-c', '28G', '-q', '8'] SNAP STDOUT:INFO: org.esa.snap.core.gpf.operators.tooladapter.ToolAdapterIO: Initializing external tool adapters SEVERE: org.esa.s2tbx.dataio.gdal.activator.GDALDistributionInstaller: The environment variable LD_LIBRARY_PATH does not contain the current folder '.'. Its value is '/usr/lib/mesa-diverted/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu/mesa:/usr/lib/x86_64-linux-gnu/dri:/usr/lib/x86_64-linux-gnu/gallium-pipe'. INFO: org.esa.snap.core.util.EngineVersionCheckActivator: Please check regularly for new updates for the best SNAP experience. Executing processing graph INFO: org.hsqldb.persist.Logger: dataFileCache open start 3492 [main] INFO org.apache.http.impl.execchain.RetryExec - I/O exception (java.net.NoRouteToHostException) caught when processing request to {s}->https://qc.sentinel1.eo.esa.int:443: No route to host (Host unreachable) 3493 [main] INFO org.apache.http.impl.execchain.RetryExec - Retrying request to {s}->https://qc.sentinel1.eo.esa.int:443 3603 [main] INFO org.apache.http.impl.execchain.RetryExec - I/O exception (java.net.NoRouteToHostException) caught when processing request to {s}->https://qc.sentinel1.eo.esa.int:443: No route to host (Host unreachable) 3603 [main] INFO org.apache.http.impl.execchain.RetryExec - Retrying request to {s}->https://qc.sentinel1.eo.esa.int:443 3715 [main] INFO org.apache.http.impl.execchain.RetryExec - I/O exception (java.net.NoRouteToHostException) caught when processing request to {s}->https://qc.sentinel1.eo.esa.int:443: No route to host (Host unreachable) 3715 [main] INFO org.apache.http.impl.execchain.RetryExec - Retrying request to {s}->https://qc.sentinel1.eo.esa.int:443 Exception calling QC Rest API: No route to host (Host unreachable) WARNING: org.esa.s1tbx.sar.gpf.orbits.ApplyOrbitFileOp: No route to host (Host unreachable) 3942 [main] INFO org.apache.http.impl.execchain.RetryExec - I/O exception (java.net.NoRouteToHostException) caught when processing request to {s}->https://qc.sentinel1.eo.esa.int:443: No route to host (Host unreachable) 3942 [main] INFO org.apache.http.impl.execchain.RetryExec - Retrying request to {s}->https://qc.sentinel1.eo.esa.int:443 4054 [main] INFO org.apache.http.impl.execchain.RetryExec - I/O exception (java.net.NoRouteToHostException) caught when processing request to {s}->https://qc.sentinel1.eo.esa.int:443: No route to host (Host unreachable) 4054 [main] INFO org.apache.http.impl.execchain.RetryExec - Retrying request to {s}->https://qc.sentinel1.eo.esa.int:443 4166 [main] INFO org.apache.http.impl.execchain.RetryExec - I/O exception (java.net.NoRouteToHostException) caught when processing request to {s}->https://qc.sentinel1.eo.esa.int:443: No route to host (Host unreachable) 4167 [main] INFO org.apache.http.impl.execchain.RetryExec - Retrying request to {s}->https://qc.sentinel1.eo.esa.int:443 Exception calling QC Rest API: No route to host (Host unreachable) WARNING: org.esa.s1tbx.sar.gpf.orbits.ApplyOrbitFileOp: ApplyOrbit ignoring error and continuing: java.net.NoRouteToHostException: No route to host (Host unreachable) ....10%....20%....30%....40%....50%....60%....70%....80%....90% done.

[1] Finished process in 80.9991059303 seconds. Split slave ['/home/user/stamps/project/slaves/20200601/S1A_IW_SLC__1SDV_20200601T214655_20200601T214722_032829_03CD75_5D75.zip'] successfully completed.

#####################################################################

[2] Folder: 20200613 /home/user/stamps/project/slaves/20200613 ['/home/user/stamps/project/slaves/20200613/S1A_IW_SLC__1SDV_20200613T214656_20200613T214723_033004_03D2A8_E3CF.zip'] FILE(s) : /home/user/stamps/project/slaves/20200613/S1A_IW_SLC__1SDV_20200613T214656_20200613T214723_033004_03D2A8_E3CF.zip ['/home/user/snap7/bin/gpt', '/home/user/stamps/project/graphs/splitgraph2run.xml', '-c', '28G', '-q', '8'] ^Z [9]+ Stopped python splitting_slaves.py project.conf`

-------------------------------------------------terminal windows output stop----------------------------------------------------------------

Same as your error, I also don't receive any file in the output folder, but the code creates the folder successfully. I also tried making a similar graph myself and tried with that too, but the error is the same. I tried the snap version 7 and 8 both.

I'd appreciate any help or troubleshoot in this regard.

uditasopatudelft commented 3 years ago

I had a workaround for this problem by downloading the orbit files manually and moving them to the location (/.snap/auxdata/Orbits/Sentinel-1/POEORB/S1A/). I used the package EOF. This could be the solution if you face a similar issue.

ridhuan7 commented 1 year ago

can you explain how you solve the problem?