...
For how to configure Python for SNAP please see Configure Python to use the SNAP-Python (snappy) interface (SNAP versions <= 9)
Examples of SNAP API usage from Python
...
Example code for an operator plugin version of the snappy_ndvi.py
example from above is provided on GitHub: https://github.com/senbox-org/snap-examples/tree/master/snap-engine-python-operator
How to Configure SNAP to pick up the build output automatically
Find the etc
folder in the SNAP installation directory. Inside this directory you will find the snap.conf
file. Change the access right of it so that you are allowed to make changes to it. There you will find the extra_clusters
property. Specify the path, to the cluster folder of the build output directory.
Code Block | ||
---|---|---|
| ||
extra_clusters="<project_dir>/target/nbm/netbeans/snap" |
Ensure to remove the '#' character at the beginning of the line.
Now when you start SNAP the build output is automatically used by SNAP and you can test the latest builds.