mdelgadoblasco / snap2stamps

Using SNAP as InSAR processor for StaMPS
Other
111 stars 53 forks source link

snap2stamps master splitting "list index out of range" error #20

Open hemengul opened 11 months ago

hemengul commented 11 months ago

Screenshot from 2023-12-15 14-58-37

Hi, When I am trying snap2stamps master splitting step using these codes: python topsar_step_1_splitting_master_multi_IW.py -F project_topsar.conf

I receive; "Traceback (most recent call last): File "/home/selmaacar/Downloads/deneme/projectfolder/topsar_step_1_splitting_master_multi_IW.py", line 142, in filename=os.path.basename(files[-1])


IndexError: list index out of range  "
Please help me, how can I fix it?
david-tmotus commented 6 months ago

I fixed it by setting correctly the MASTER path. I had the same issue because I was following this tutorial, which set up the MASTER path to the dim file, but you need to point just to the folder(https://youtu.be/Xy7Y4Ea5mOo?si=PapNY97ZVbMAH_Ef)

keepfighting666 commented 3 months ago

According to David Tmotus's suggestion, I didn't specify the path as the path to the dim but simply specified it as the path to master.zip. If I only specify the folder for the generated product, it still throws an error.

mdelgadoblasco commented 3 months ago

The RUS tutorial was based using v1 of snap2stamps, which if you want to work with a single IW I suggest you use the previous version instead of the newer one.

However, if you want to adapt the current one, I suggest that you overwrite the IW you want to use in the graphs XML related to the master and slaves splitting (both with and without assembling).

My prefer option would be to work with snap2stamps v1 and you on. By the way, this is not an issue of the software package, so please do not rise it as errors, as they are misusage of the package.

Best