Command Line Description
Since the Radiance-to-Reflectance 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
-
${OPTTBX-INSTALL-DIR}/bin/gpt
To obtain general help on the graph processing, use the command
-
${OPTTBX-INSTALL-DIR}/bin/gpt -h
Specific help on the Radiance-to-Reflectance processor can be obtained with
-
${OPTTBX-INSTALL-DIR}/bin/gpt -h Rad2Refl
In this case, information on the usage and a list of all available parameters are given.
The Radiance-to-Reflectance processor parameters can also be specified via a graph xml file.
A possible graph xml file 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="RadianceToReflectanceOlciTest">
<version>1.0</version>
<node id="rad2refl">
<operator>Rad2Refl</operator>
<sources>
<source>${olciProduct}</source>
</sources>
<parameters>
<sensor>OLCI</sensor>
</parameters>
<parameters>
<conversionMode>RAD_TO_REFL</conversionMode>
</parameters>
<parameters>
<copyFlagBandsAndMasks>true</copyFlagBandsAndMasks>
</parameters>
<parameters>
<copyNonSpectralBands>true</copyNonSpectralBands>
</parameters>
<parameters>
<copyTiePointGrids>true</copyTiePointGrids>
</parameters>
</node>
</graph>
This graph can be invoked by the following call on the command line:
gpt <graph-file.xml> -SolciProduct=<path-to-source-file>