Command Line Description
Since the IdePix processor makes use of the SNAP graph processing
framework, it can be used also as a command line tool. The graph
processing is invoked by the command
- ${SNAP-INSTALL-DIR}/bin/gpt
To obtain general help on the graph processing, use the command
- ${SNAP-INSTALL-DIR}/bin/gpt -h
Specific help on the IdePix processor for a given instrument can be
obtained with
- ${SNAP-INSTALL-DIR}/bin/gpt -h
Snap.Idepix.<Instrument>
so we have here for S2 MSI:
- ${SNAP-INSTALL-DIR}/bin/gpt -h Idepix.S2
In this case, information on the usage and a list of all available
parameters are given. The IdePix processor parameters can also be
specified via a graph xml file. E.g., a possible graph xml file for
S2 MSI could look like the following. (Note that in principle it is
not necessary to explicitly set parameters if default values shall
be used).
<graph id="IdepixS2MsiTest">
<version>1.0</version>
<node id="idepix">
<operator>Idepix.S2</operator>
<sources>
<source>${sourceProduct}</source>
</sources>
<parameters>
<computeCloudShadow>false</computeCloudShadow>
</parameters>
<parameters>
<outputCtp>true</outputCtp>
</parameters>
<parameters>
<computeCloudBuffer>true</computeCloudBuffer>
</parameters>
<parameters>
<cloudBufferWidth>4</cloudBufferWidth>
</parameters>
<parameters>
<useSrtmLandWaterMask>true</useSrtmLandWaterMask>
</parameters>
</node>
</graph>
This graph can be invoked by the following call on the command
line:
${SNAP-INSTALL-DIR}/bin/gpt <graph-file.xml> -SsourceProduct=<path-to-source-file>