uk.ac.leeds.ccg.andyt.projects.geomorphometrics
Class DEMProcessing

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.projects.geomorphometrics.DEMProcessing
All Implemented Interfaces:
java.io.Serializable

public class DEMProcessing
extends uk.ac.leeds.ccg.andyt.grids.process.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
DEMProcessing()
          Creates a new ProcessorDEMRuns
DEMProcessing(java.io.File workspace)
          Creates a new ProcessorDEMRuns using specified workspace.
 
Method Summary
 void doMetrics1(uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellDoubleFactory grid2DSquareCellDoubleFactory, uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellIntFactory grid2DSquareCellIntFactory, uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellAbstract grid2DSquareCell, java.io.File dataDirectory, boolean handleOutOfMemoryError)
           
 void doSlopeAndAspect(uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellDoubleFactory grid2DSquareCellDoubleFactory, uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellAbstract grid2DSquareCell)
          Calculates the slope and aspect of dem and writes results as asciigrid files
static void main(java.lang.String[] args)
           
 void run()
           
 void runTest(boolean handleOutOfMemoryError)
           
 
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

DEMProcessing

public DEMProcessing()
Creates a new ProcessorDEMRuns


DEMProcessing

public DEMProcessing(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()

runTest

public void runTest(boolean handleOutOfMemoryError)
             throws java.lang.Exception
Throws:
java.lang.Exception

doSlopeAndAspect

public void doSlopeAndAspect(uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellDoubleFactory grid2DSquareCellDoubleFactory,
                             uk.ac.leeds.ccg.andyt.grids.core.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

doMetrics1

public void doMetrics1(uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellDoubleFactory grid2DSquareCellDoubleFactory,
                       uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellIntFactory grid2DSquareCellIntFactory,
                       uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellAbstract grid2DSquareCell,
                       java.io.File dataDirectory,
                       boolean handleOutOfMemoryError)
Parameters:
file - Input data file