uk.ac.leeds.ccg.andyt.grids.examples
Class Example

java.lang.Object
  extended by uk.ac.leeds.ccg.andyt.grids.core.OutOfMemoryErrorHandler
      extended by uk.ac.leeds.ccg.andyt.grids.process.Grid2DSquareCellProcessor
          extended by uk.ac.leeds.ccg.andyt.grids.process.Grid2DSquareCellProcessorDEM
              extended by uk.ac.leeds.ccg.andyt.grids.examples.Example
All Implemented Interfaces:
java.io.Serializable

public class Example
extends Grid2DSquareCellProcessorDEM

See Also:
Serialized Form

Field Summary
 
Fields inherited from class uk.ac.leeds.ccg.andyt.grids.process.Grid2DSquareCellProcessor
grid2DSquareCellDoubleChunk64CellMapFactory, grid2DSquareCellDoubleChunkArrayFactory, grid2DSquareCellDoubleChunkFactory, grid2DSquareCellDoubleChunkJAIFactory, grid2DSquareCellDoubleChunkMapFactory, grid2DSquareCellDoubleChunkRAFFactory, grid2DSquareCellDoubleFactory, grid2DSquareCellIntChunk64CellMapFactory, grid2DSquareCellIntChunkArrayFactory, grid2DSquareCellIntChunkFactory, grid2DSquareCellIntChunkJAIFactory, grid2DSquareCellIntChunkMapFactory, grid2DSquareCellIntChunkRAFFactory, grid2DSquareCellIntFactory, grid2DSquareCells, gridStatistics, gridStatistics0, gridStatistics1, log, logIndentation, startTime, workspace
 
Fields inherited from class uk.ac.leeds.ccg.andyt.grids.core.OutOfMemoryErrorHandler
handleOutOfMemoryErrorFalse, handleOutOfMemoryErrorTrue, memoryReserve
 
Constructor Summary
Example()
          Creates a new ProcessorDEMRuns
Example(java.io.File workspace)
          Creates a new ProcessorDEMRuns using specified workspace.
 
Method Summary
 void doSlopeAndAspect(Grid2DSquareCellDoubleFactory grid2DSquareCellDoubleFactory, Grid2DSquareCellAbstract grid2DSquareCell)
          Calculates the slope and aspect of dem and writes results as asciigrid files
static void main(java.lang.String[] args)
           
 void run()
           
 
Methods inherited from class uk.ac.leeds.ccg.andyt.grids.process.Grid2DSquareCellProcessorDEM
doFlowAccumulation, getFlowAccumulation, getHollowFilledDEM, getInitialFlowAccumulation, getInitialPeaksHashSetAndSetTheirValue, getMaxFlowDirection, getMetrics1, getMetrics1, getMetrics2, getSlopeAndAspect, getSlopeAndAspect, getSlopeAndAspect, getSlopeAndAspect, getSlopeAndAspect, getSlopeAndAspect, getSlopeAndAspect, getUpSlopeAreaMetrics
 
Methods inherited from class uk.ac.leeds.ccg.andyt.grids.process.Grid2DSquareCellProcessor
addToGrid, addToGrid, addToGrid, addToGrid, addToGrid, addToGrid, addToGrid, addToGrid, addToGrid, addToGrid, aggregate, aggregate, angle, angle, angle, copyAndSetUpNewLog, distance, distance, distance, getGrid2DSquareCell, getGrid2DSquareCell, getGrid2DSquareCells, getRowProcessData, getRowProcessInitialData, getTime0, getWorkspace, linearRescale, linearRescale, log, log, log, logRescale, logRescale, mask, mask, mask, mask, mask, mask, mask, mask, mask, mask, mask, setValueALittleBitLarger, setValueALittleBitLarger, setValueALittleBitSmaller, setValueALittleBitSmaller, setWorkspace, setWorkspace, setWorkspace, swapToFileGrid2DSquareCellChunk, swapToFileGrid2DSquareCellChunkExcept
 
Methods inherited from class uk.ac.leeds.ccg.andyt.grids.core.OutOfMemoryErrorHandler
clearMemoryReserve, initMemoryReserve, initMemoryReserve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Example

public Example()
Creates a new ProcessorDEMRuns


Example

public Example(java.io.File workspace)
Creates a new ProcessorDEMRuns using specified workspace. WARNING: Files in the specified workspace may get overwritten.

Method Detail

main

public static void main(java.lang.String[] args)
Parameters:
args - the command line arguments

run

public void run()

doSlopeAndAspect

public void doSlopeAndAspect(Grid2DSquareCellDoubleFactory grid2DSquareCellDoubleFactory,
                             Grid2DSquareCellAbstract grid2DSquareCell)
                      throws java.io.IOException
Calculates the slope and aspect of dem and writes results as asciigrid files

Parameters:
dem -
Throws:
java.io.IOException