Page Properties | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Goals
- Let Python programmers write GPF operators using CPython and its scientific extension libraries numpy, scipy, pandas, etc.
- It should be transparent to users how operators are implemented, e.g. using the native Java GPF API, using the Python API or using the stand-alone tools adapter.
...
A Python extension module is a JAR file or directory which must contain a plain text file META-INF/snappy.def
which lists all Python extensions contained in the module. Python extension modules are found in the following locations:
<module-jar-file>
a module JAR file${user.home}/.snap/snappy/ext/*
the directories in directorysnappy/
in the SNAP user directorye
xt${snap.snappy.ext}
from the directory paths given in the special system propertysnap.snappy.ext
The text file snappy.def
contains either empty lines, comment lines starting with the '#' character, or lines declaring a Python extension as follows:
...
[<ext-rel-path>/]
<ext>.py
the Python code containing the class ExtClass
<ext>-info.xml
contains the operator metadata such as processing parameter definitions (for GPF operators only)
Questions
Below is a list of questions to be addressed as a result of this requirements document:
...