Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hemengul opened this issue Dec 15, 2023 · 3 comments
Open

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

hemengul opened this issue Dec 15, 2023 · 3 comments

Comments

@hemengul
Copy link

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
Copy link

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
Copy link

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@mdelgadoblasco @hemengul @david-tmotus @keepfighting666 and others