I would like to know the procedure for opening the .img file which is how we generally receive the processed image in SNAP. In addition to this the .HDR contains the geographic info which should also be imported for each pixel to have its own coordinate values.
Although Python offers ways to open an image in the GeoTiff format, saving the pre-processed image in the GeoTiff is time & space consuming.
Are you working in Linux or windows os? I think in Linux the matter is simpler to configure SNAPPY, and it’s supported python 3.5 and up, also you could create an environment and different versions of python, for instance py2.7 and then cofi. with snappy, However under windows os, it’s a bit tricky, but it’s possible to solve it,
Please take a look at the following thread, Configuration SNAPPY with python under windows os
I used to work on Windows and SNAPPY worked quite well using Python 3.7 (note that is was with SNAP 6, i didn’t try the newest SNAP version on windows). I talked about it here: Snappy requirements
As I said it’s a bit tricky that’s why I only succeeded to configure using py3.4 and SNAP 7, I’m working in windows os. I don’t know if there is any other way to get cofi-ed with anaconda in windows os, but please take a look at the thread I referred to it in my previous post.
Dear @marfersel would you please to give explanation details if that possible! to be followed as an instructions.
I needed to install some dependencies such as JDK, Maven and Microsoft Visual C++ Build Tools (it is important to follow the same architecture, x64 or x86, in all the dependencies) , but while installing you are required to do so. May be someone has anything else to say.
INFO: Installing from Java module ‘C:\Users\ma6\AppData\Roaming\SNAP\modules\org-esa-snap-snap-python.jar’
INFO: Installing jpy…
ERROR: Traceback (most recent call last):
File “.\snappyutil.py”, line 280, in _main
force=args.force)
File “.\snappyutil.py”, line 154, in _configure_snappy
" $ cd jpy"
AttributeError: ‘list’ object has no attribute ‘join’
I got something different while trying out another way I remember I installed snappy and this is what I get. Do I need to get admin restrictions removed from my system?
it is important that you name the location including the python.exe file, e.g. snappy-conf.bat C:\user\ma6\AppData\Local\Continuum\anaconda3\python.exe
I’m not sure - shouldn’t be too much differences.
If you want to go sure: You can create an environment of python 2.7 or 3.4 with the Anaconda Navigator and refer to the python.exe created there. https://docs.anaconda.com/anaconda/navigator/getting-started/ (see Managing Environments).
The location will be C:\user\ma6\AppData\Local\Continuum\anaconda3\envs\name_you_give\python.exe