

#SNAPPY SNAP INSTALL#
To make snappy permanently accessible, you could install it into your Python installation. On the command line (shell, terminal window on Unixes, cmd on Windows), type.There are a number of ways to achieve this. To effectively use the SNAP Python API from Python, the snappy module must be detectable by your Python interpreter. To generally make use of snappy you need to do one of the following configuration steps. This approach only works if the current working directory is in the. P = ProductIO.readProduct('snappy/testdata/MER_FRS_L1B_SUBSET.dim') When seeing result below the configuration was successful. Next you can call the tool with the path to the python executable and optionally you can specify a directory where the snappy folder should be created. If you want the snappy module to be placed somewhere else use: The parameter must be the full path to the Python interpreter executable which you want to use with SNAP (supported versions are 2.7, 3.3 to 3.6). snap/snap-pythonĭirectory of the user home directory. This will generate the Python module snappy configured for the current SNAP installation and your Python interpreter into the. On Windows you can simply choose 'SNAP Command-Line' from the Start menu. Open the command line at the bin folder of the SNAP installation directory. Within the installer you can simply activate a checkbox and select the path to the python executable.īut it is also not a big deal to do it later manually if you might have forgotten it or if you want to configure another Python installation for snappy. The easiest way to configure your Python installation for the usage SNAP-Python (snappy) interface is to do it during the installation of SNAP. For higher Python version it needs a manual build of jpy ( Readme). It is suggested to use either Python 3.5 or 3.6.
