question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

import pyroSAR.snap fails

See original GitHub issue

If I try to import pyroSAR.snap it fails with the following Error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/qe89hep/Programmieren/pyroSAR/pyroSAR/snap/__init__.py", line 4, in <module>
    snap_config = ExamineSnap()
  File "/home/qe89hep/Programmieren/pyroSAR/pyroSAR/snap/auxil.py", line 253, in __init__
    self.__get_etc()
  File "/home/qe89hep/Programmieren/pyroSAR/pyroSAR/snap/auxil.py", line 263, in __get_etc
    self.config_path = os.path.join(self.etc, [s for s in self.auxdata if "snap.auxdata.properties" in s][0])
IndexError: list index out of range

My Snap etc folder is at /home/username/snap/etc this is the location that is used automatically by the SNAP installer.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
felixcremercommented, Apr 18, 2018

My Snap etc folder is at /home/username/snap/etc

Maybe it isn’t. My snap is installed at /usr/bin/snap and there is a .snap folder in my home with a etc folder. I think, this happens when we use the -dir option of the SNAP installer. This would need to be checked.

0reactions
johntruckenbrodtcommented, Apr 27, 2019

Closed for now since no further import errors were discovered

Read more comments on GitHub >

github_iconTop Results From Across the Web

SNAP API — pyroSAR 0.19 documentation
pyroSAR offers a collection of tools to parse SNAP XML workflows and execute them with SNAP's Graph Processing Tool (GPT). All functionality is...
Read more >
Is pyroSAR a good substitute for python based ... - STEP Forum
Hi, I recently came across pyroSAR and starting to setup it up. I am trying to create a python based preprocessing workflow.
Read more >
pyroSAR Documentation - Read the Docs
from pyroSAR.snap import geocode ... this fails and RES files are allowed, it will download the RES file. The selected OSV.
Read more >
Exporting SNAP S1 preprocessing model as Python script
... it from SNAP, but there are libraries in Python which allow you to easily create and run it. snapista recommended; pyroSAR ·...
Read more >
Data Tools | ASF - Alaska Satellite Facility
... the Sentinel Application Platform (SNAP) for processing Sentinel-1 data. ... pyroSAR — A Python Framework for Large-Scale SAR Satellite Data Processing.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found