<?xml version="1.0" encoding="UTF-8"?>
<toolchain saga-version="2.1.3">
  <group>terrain_analysis</group>
  <identifier>TerrainCluster</identifier>
  <name>Terrain Clustering</name>
  <author>O.Conrad (c) 2014</author>
  <description>created from history</description>
  <menu>Terrain Classification</menu>
  <parameters>
    <option varname="GRID_SYSTEM" type="grid_system">
      <name>Grid System</name>
    </option>
    <input varname="ELEVATION" type="grid" parent="GRID_SYSTEM">
      <name>Elevation</name>
    </input>
    <output varname="CLUSTER" type="grid" parent="GRID_SYSTEM">
      <name>Clusters</name>
    </output>
    <option varname="NCLUSTER" type="integer">
      <name>Number of Terrain Classes</name>
	  <value>5</value>
	</option>
    <option varname="MAXITER" type="integer">
      <name>Maximum Iterations</name>
	  <value>25</value>
	</option>
  </parameters>
  <tools>
    <tool library="ta_morphometry" tool="14" name="Relative Heights and Slope Positions">
      <input id="DEM">ELEVATION</input>
      <output id="NH">NORMHEIGHT</output>
    </tool>
    <tool library="ta_lighting" tool="5" name="Topographic Openness">
      <output id="NEG">OPEN_NEG</output>
      <output id="POS">OPEN_POS</output>
      <option id="RADIUS">10000.000000</option>
      <option id="METHOD">1</option>
      <option id="DLEVEL">3.000000</option>
      <option id="NDIRS">8</option>
      <input id="DEM">ELEVATION</input>
    </tool>
    <tool library="ta_morphometry" tool="0" name="Slope, Aspect, Curvature">
      <output id="SLOPE">SLOPE</output>
      <output id="C_TANG">C_TANG</output>
      <output id="C_LONG">C_LONG</output>
      <option id="UNIT_SLOPE">0</option>
      <input id="ELEVATION">ELEVATION</input>
    </tool>
    <tool library="imagery_classification" tool="1" name="Cluster Analysis for Grids">
      <output id="CLUSTER">CLUSTER</output>
      <option id="METHOD">1</option>
      <option id="NCLUSTER" varname="true">NCLUSTER</option>
      <option id="MAXITER" varname="true">MAXITER</option>
      <option id="NORMALISE">1</option>
      <input id="GRIDS">NORMHEIGHT</input>
      <input id="GRIDS">SLOPE</input>
      <input id="GRIDS">C_TANG</input>
      <input id="GRIDS">C_LONG</input>
      <input id="GRIDS">OPEN_POS</input>
      <input id="GRIDS">OPEN_NEG</input>
    </tool>
  </tools>
</toolchain>
