analysis.java
Class FlowDirection

java.lang.Object
  |
  +--analysis.java.FlowDirection

public class FlowDirection
extends java.lang.Object

Class to derive flow direction from DEM, returns a Raster Object direction


Constructor Summary
FlowDirection()
          Creates a module for calculating flow direction
 
Method Summary
 analysis.java.Raster findDirections(analysis.java.Raster dem, analysis.java.Raster direction)
          Finding flow direction for cell, Checks for neighbors 1-8 that are lower or equal to current cell X:
 java.util.ArrayList getPitList()
          Get list of pit cells in DEM
 int getPits()
          Get number of pits in DEM
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowDirection

public FlowDirection()
Creates a module for calculating flow direction

Method Detail

findDirections

public analysis.java.Raster findDirections(analysis.java.Raster dem,
                                           analysis.java.Raster direction)
Finding flow direction for cell, Checks for neighbors 1-8 that are lower or equal to current cell X:

1 2 3
8 X 4
7 6 5


getPits

public int getPits()
Get number of pits in DEM

Returns:
number of pits

getPitList

public java.util.ArrayList getPitList()
Get list of pit cells in DEM

Returns:
list of pit cells