Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleProject Structure
my-module/
    src/main/
        python/my_python_op.py
        python/my_python_op-info.xml
        nbm/manifest.mf
        resources/META-INF/services/orgeu.esa.snap.pythonsnappy.gpf.PyOperatorSpi
        resources/layer.xml
pom.xml

...

Code Block
languagexml
titleinfo.xml
<operator>
    <name>org.me.MyPyOp</name>
    <alias>my_py_op</alias>
    <!-- In esa_snappy, package org.esa.snap.python is replaced by org.esa.snap.snappy -->
    <operatorClass>org<operatorClass>eu.esa.snap.pythonsnappy.gpf.PyOperator<PyOperatorSpi</operatorClass>
    <version>1.0</version>
    <authors>ACME Guys</authors>
    <copyright>(C) 2016 ACME</copyright>
    <description>
        A short description of the operator
    </description>
    <namedSourceProducts>
        <sourceProduct>
            <name>source</name>
        </sourceProduct>
    </namedSourceProducts>
    <parameters>
        <parameter>
            <name>factor</name>
            <description>Short description of the parameter</description>
            <dataType>double</dataType>
            <defaultValue>1.0</defaultValue>
        </parameter>
    </parameters>
</operator>

...