jwo.landserf.process
Class ScaleParamThread
java.lang.Object
java.lang.Thread
jwo.landserf.process.LSThread
jwo.landserf.process.ScaleParamThread
- All Implemented Interfaces:
- JWInterruptionListener, Runnable
- public class ScaleParamThread
- extends LSThread
Calculates a given surface parameter over a range of
scales and place the result back in the given GIS frame.
- Version:
- 2.2, 26th February, 2005.
- Author:
- Jo Wood
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
ScaleParamThread
public ScaleParamThread(GISFrame gisFrame,
ScaleSurfParam ssp)
- Calculates a given surface parameter over a range of scales.
- Parameters:
gisFrame
- GIS frame containing raster to process.ssp
- Multi-scale surface parameter to calculate.
doProcessing
public void doProcessing()
- Performs the multi-scale processing. Adds the surface of average parameter
values as a secondary raster map, and the surface of variation of the
paramter as an unselected raster map. A newly created raster map
containing the average parameter values over the range of scales for each cell
in the DEM, and one containing the variation of those parameters are added to
the
GISFrame
provided to the constructor. The average parameter
surface can be retrieved directly via this class's getParamAverage()
method, or by calling gisFrame.getRaster2();
. The raster map
containing the variation in parameter values can be retrieved via
getParamVariation()
or by calling gisFrame.getRasters()
and selecting the last raster map added.
Note that this method will be called automatically if this is run as a threaded
process (e.g. myScaleParamThread.start()). Alternatively it can be called directly
as a non-threaded process.
- Specified by:
doProcessing
in class LSThread
- See Also:
GISFrame
getParamAverage
public RasterMap getParamAverage()
- Retrieves the newly created surface of average parameter values.
- Returns:
- Surface of average parameter values, or null if process yet to take place.
getParamVariation
public RasterMap getParamVariation()
- Retrieves the newly created surface of variation in parameter values.
- Returns:
- Surface of variation in parameter values, or null if process yet to take place.
Copyright Jo Wood, 1996-2005, last modified, 11th March, 2005