<root>
  <key>OpticalCalibration</key>
  <exec>otbcli_OpticalCalibration</exec>
  <longname>Optical calibration</longname>
  <group>Calibration</group>
  <description>Perform optical calibration TOA/TOC (Top Of Atmosphere/Top Of Canopy). Supported sensors: QuickBird, Ikonos, WorldView2, Formosat, Spot5, Pleiades</description>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_InputImage">ParameterRaster</parameter_type>
    <key>in</key>
    <name>Input</name>
    <description>Input image filename (values in DN)</description>
    <optional>False</optional>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_OutputImage">OutputRaster</parameter_type>
    <key>out</key>
    <name>Output</name>
    <description>Output calibrated image filename</description>
    <hidden />
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_RAM">ParameterNumber</parameter_type>
    <key>ram</key>
    <name>Available RAM (Mb)</name>
    <description>Available memory for processing (in MB)</description>
    <minValue />
    <maxValue />
    <default>128</default>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_Choice">ParameterSelection</parameter_type>
    <key>level</key>
    <name>Calibration Level</name>
    <description />
    <options>
      <choices>
        <choice>toa</choice>
        </choices>
    </options>
    <default>0</default>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_Empty">ParameterBoolean</parameter_type>
    <key>milli</key>
    <name>Convert to milli reflectance</name>
    <description>Flag to use milli-reflectance instead of reflectance.
This allows saving the image with integer pixel type (in the range [0, 1000]  instead of floating point in the range [0, 1]. In order to do that, use this option and set the output pixel type (-out filename uint16 for example)</description>
    <default>True</default>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_Empty">ParameterBoolean</parameter_type>
    <key>clamp</key>
    <name>Clamp of reflectivity values between [0, 100]</name>
    <description>Clamping in the range [0, 100]. It can be useful to preserve area with specular reflectance.</description>
    <default>True</default>
  </parameter>
  <parameter>
    <parameter_type source_parameter_type="ParameterType_InputFilename">ParameterFile</parameter_type>
    <key>rsr</key>
    <name>Relative Spectral Response File</name>
    <description>Sensor relative spectral response file
By default the application gets these information in the metadata</description>
    <isFolder />
    <optional>True</optional>
  </parameter>
  </root>
