0

Is there a Alternative Python Package (https://senbox.atlassian.net/wiki/spaces/SNAP/pages/19300362/How+to+use+the+SNAP+API+from+Python), which allows the User to geocode Sentinel-1 Data?

Snappy doesn't work when i try to install it to the QGIS-Python Interpreter.

0

2 Answers 2

2

The reason why your installation via the QGIS python interpreter fails could be that there is another package called snappy (https://pypi.org/project/snappy/) which is used when you use pip for example. Sometimes it is already installed with QGIS which causes additional problems. It works when you use the full path to the QGIS python.exe in the command line as described in the ESA documentation you posted.

If you search for an alternative to snappy, you can use snapista. https://snap-contrib.github.io/snapista/ It is easy to use and directly calls the SNAP graph processing tool (gpt), so it's also computationally more efficient.

9
  • When i use the full Path to the QGIS python.exe i get an Error, that the "Python interpreter executable not found".
    – Mart1999in
    Aug 11, 2021 at 9:25
  • Can you please give an example how the full command looks like in your case? You can replace sensitive parts of the path (e.g. user directory) by ###
    – AndyB
    Aug 11, 2021 at 11:10
  • I found the Error for the missing intepreter, i forgot the Spaces in the File, my bad. Now the problem is, that QGIS uses Python 3.9 and SNAP only works with Python 3.6, this is why i got an Error, so how could i create a virtual Environment in QGIS with Python 3.6?
    – Mart1999in
    Aug 11, 2021 at 11:43
  • I'm afraid you cannot force QGIS to use another python version. Is it ultimately necessary to do the python processing from within QGIS? If so, the snapista package might be more suitable then.
    – AndyB
    Aug 11, 2021 at 11:59
  • it's necessary to do in QGIS because it should work inside a QGIS Plugin. Is there another way to Geocoding the Sentinel-1 Data (means: update the Orbit-Data, Radiometric Calibration, Orthocorrection and convert the DN-Values in dB-Values) in QGIS with Python?
    – Mart1999in
    Aug 11, 2021 at 12:11
1

As an Alternative for Snappy i found pyroSAR, which works identical to snapista. It's super easy to install with pip and also uses the SNAP gpt.

https://pyrosar.readthedocs.io/en/latest/index.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.