Package

geotrellis.raster.mapalgebra

focal

Permalink

package focal

Visibility
  1. Public
  2. All

Type Members

  1. case class Annulus(innerRadius: Double, outerRadius: Double) extends Neighborhood with Product with Serializable

    Permalink

    Annulus neighborhood.

    Annulus neighborhood.

    innerRadius

    The radius of the inner circle of the Annulus.

    outerRadius

    The radius of the outer circle of the Annulus.

    Note

    Cells who's distance from the center is exactly the inner or outer radius are included in the neighborhood.

  2. trait ArrayTileResult extends Resulting[Tile]

    Permalink
  3. trait BitArrayTileResult extends Resulting[Tile]

    Permalink

    Defines a focal calculation as returning a Tile with BitArrayTile, and defines the Initialization.init function for setting up the tile.

  4. trait ByteArrayTileResult extends Resulting[Tile]

    Permalink

    Defines a focal calculation as returning a Tile with ByteArrayTile, and defines the Initialization.init function for setting up the tile.

  5. abstract class CellwiseCalculation[T] extends FocalCalculation[T]

    Permalink

    A focal calculation that uses the Cellwise focal strategy

  6. class CellwiseDoubleSumCalc extends CellwiseCalculation[Tile] with ArrayTileResult

    Permalink
  7. class CellwiseMeanCalc extends CellwiseCalculation[Tile] with DoubleArrayTileResult

    Permalink
  8. class CellwiseMeanCalcDouble extends CellwiseCalculation[Tile] with DoubleArrayTileResult

    Permalink
  9. class CellwiseMedianCalc extends CellwiseCalculation[Tile] with IntArrayTileResult with MedianModeCalculation

    Permalink
  10. class CellwiseModeCalc extends CellwiseCalculation[Tile] with IntArrayTileResult with MedianModeCalculation

    Permalink
  11. trait CellwiseStrategyCalculation extends AnyRef

    Permalink
  12. class CellwiseSumCalc extends CellwiseCalculation[Tile] with ArrayTileResult

    Permalink
  13. case class Circle(radius: Double) extends Neighborhood with Product with Serializable

    Permalink

    A circle neighborhood.

    A circle neighborhood.

    radius

    Radius of the circle that defines which cells inside the bounding box will be considered part of the neighborhood.

    Note

    Cells who's distance from the center is exactly the radius are included in the neighborhood.

  14. class Cursor extends AnyRef

    Permalink

    Represents a cursor that can be used to iterate over cells within a focal neighborhood.

  15. abstract class CursorCalculation[T] extends FocalCalculation[T]

    Permalink

    A focal calculation that uses the Cursor focal strategy.

  16. class CursorDoubleSumCalc extends CursorCalculation[Tile] with ArrayTileResult

    Permalink
  17. class CursorMask extends AnyRef

    Permalink

    A mask over a cursor.

    A mask over a cursor. The CursorMask helps the cursor keep track of the state of masking and unmasking of cells between moves.

  18. class CursorMeanCalc extends CursorCalculation[Tile] with DoubleArrayTileResult

    Permalink
  19. class CursorMeanCalcDouble extends CursorCalculation[Tile] with DoubleArrayTileResult

    Permalink
  20. class CursorMedianCalc extends CursorCalculation[Tile] with IntArrayTileResult with MedianModeCalculation

    Permalink
  21. class CursorModeCalc extends CursorCalculation[Tile] with IntArrayTileResult with MedianModeCalculation

    Permalink
  22. class CursorSumCalc extends CursorCalculation[Tile] with ArrayTileResult

    Permalink
  23. trait DoubleArrayTileResult extends Resulting[Tile]

    Permalink

    Defines a focal calculation as returning a Tile with DoubleArrayTile, and defines the Initialization.init function for setting up the tile.

  24. trait FloatArrayTileResult extends Resulting[Tile]

    Permalink

    Defines a focal calculation as returning a Tile with FloatArrayTile, and defines the Initialization.init function for setting up the tile.

  25. abstract class FocalCalculation[T] extends Resulting[T]

    Permalink

    A calculation that a FocalStrategy uses to complete a focal operation.

  26. trait FocalMethods extends MethodExtensions[Tile]

    Permalink
  27. trait IntArrayTileResult extends Resulting[Tile]

    Permalink

    Defines a focal calculation as returning a Tile with IntArrayTile, and defines the Initialization.init function for setting up the tile.

  28. case class Kernel(tile: Tile) extends Neighborhood with Product with Serializable

    Permalink

    Kernel

    Kernel

    Represents a neighborhood that is represented by a tile.

  29. abstract class KernelCalculation[T] extends FocalCalculation[T]

    Permalink

    A focal calculation that uses the Cursor focal strategy.

  30. class KernelCursor extends Cursor with MacroIterableTile with Serializable

    Permalink
  31. trait MedianModeCalculation extends AnyRef

    Permalink
  32. sealed trait Movement extends AnyRef

    Permalink
  33. trait Neighborhood extends Serializable

    Permalink

    A definition of the shape and size of the neighborhood (or kernel) to be used in a focal operation.

  34. case class Nesw(extent: Int) extends Neighborhood with Product with Serializable

    Permalink

    A neighborhood that includes a column and row intersectin the focus.

    A neighborhood that includes a column and row intersectin the focus.

    extent

    Extent of the neighborhood. The extent is how many cells past the focus the bounding box goes. (e.g., 1 for 3x3 square)

  35. trait Resulting[T] extends AnyRef

    Permalink
  36. trait ShortArrayTileResult extends Resulting[Tile]

    Permalink

    Defines a focal calculation as returning a Tile with ShortArrayTile, and defines the Initialization.init function for setting up the tile.

  37. case class Square(extent: Int) extends Neighborhood with Product with Serializable

    Permalink

    A square neighborhood.

    A square neighborhood.

    extent

    Extent of the neighborhood. The extent is how many cells past the focus the bounding box goes. (e.g., 1 for 3x3 square)

  38. sealed trait TargetCell extends Serializable

    Permalink
  39. sealed trait TraversalStrategy extends AnyRef

    Permalink
  40. case class Wedge(radius: Double, startAngle: Double, endAngle: Double) extends Neighborhood with Product with Serializable

    Permalink

    Wedge neighborhood.

    Wedge neighborhood.

    radius

    The radius of the wedge, in raster cell units.

    startAngle

    The starting angle of the wedge (in degrees).

    endAngle

    The ending angle of the wedge (in degrees).

    Note

    Cells who's distance from the center is exactly the radius are included in the neighborhood.

Value Members

  1. object Angles

    Permalink
  2. object Aspect

    Permalink

    Calculates the aspect of each cell in a raster.

    Calculates the aspect of each cell in a raster.

    Aspect is the direction component of a gradient vector. It is the direction in degrees of which direction the maximum change in direction is pointing. It is defined as the directional component of the gradient vector and is the direction of maximum gradient of the surface at a given point. It uses Horn's method for computing aspect.

    As with slope, aspect is calculated from estimates of the partial derivatives dz / dx and dz / dy.

    If Aspect operations encounters NoData in its neighborhood, that neighborhood cell well be treated as having the same elevation as the focal cell.

    Aspect is computed in degrees from due north, i.e. as an azimuth in degrees not radians. The expression for aspect is:

    val aspect = 270 - 360 / (2 * Pi) * atan2(`dz / dy`, - `dz / dx`)
  3. object CellwiseStrategy

    Permalink

    Focal strategy that implements a more strict mechanism that informs the user what cells have been added or removed.

    Focal strategy that implements a more strict mechanism that informs the user what cells have been added or removed. This strategy is more performant, but can only be used for Square or Circle neighborhoods.

  4. object Convolve

    Permalink

    Computes the convolution of a raster with a kernel.

  5. object Conway

    Permalink
  6. object Cursor

    Permalink
  7. object CursorStrategy

    Permalink

    Focal strategy which moves a Cursor across the raster, allowing a calculation to be done on each cell using the Cursor to determine what neighboring cells are inside the focus's neighborhood, what cells have been added since the last move, and what cells have been removed since the last move.

  8. object Kernel extends Serializable

    Permalink
  9. object Max

    Permalink

    Computes the maximum value of a neighborhood for a given raster.

    Computes the maximum value of a neighborhood for a given raster.

    Note

    Maximum does not currently support Double raster data. If you use a Tile with a Double CellType (FloatConstantNoDataCellType, DoubleConstantNoDataCellType) the data values will be rounded to integers.

  10. object Mean

    Permalink
  11. object Median

    Permalink
  12. object Min

    Permalink

    Computes the minimum value of a neighborhood for a given raster

  13. object Mode

    Permalink

    Computes the mode of a neighborhood for a given raster

    Computes the mode of a neighborhood for a given raster

    Note

    Mode does not currently support Double raster data. If you use a Tile with a Double CellType (FloatConstantNoDataCellType, DoubleConstantNoDataCellType) the data values will be rounded to integers.

  14. object Movement

    Permalink

    Movements used to move a Cursor around, and to track it's movements.

  15. object ScalarMoransICalculation

    Permalink

    Calculates global spatial autocorrelation of a raster based on the similarity to neighboring values.

    Calculates global spatial autocorrelation of a raster based on the similarity to neighboring values.

    The resulting statistic is such that the more positive the number, the greater the similarity of values in the raster, and the more negative the number, the more dissimilar the raster values are.

    Note

    Since mean and standard deviation are based off of an Int based Histogram, those values will come from rounded values of a double typed Tile (FloatConstantNoDataCellType, DoubleConstantNoDataCellType).

    ,

    This operation requires that the whole raster be passed in; it does not work over tiles.

  16. object ScanLineTraversalStrategy extends TraversalStrategy with Product with Serializable

    Permalink
  17. object Slope

    Permalink

    Calculates the slope of each cell in a raster.

    Calculates the slope of each cell in a raster.

    Slope is the magnitude portion of the gradient vector. It is the maximum change of elevation from a raster cell to any immediate neighbor. It uses Horn's method for computing slope.

    As with aspect, slope is calculated from estimates of the partial derivatives dz / dx and dz / dy.

    Slope is computed in degrees from horizontal.

    The use of a z-factor is essential for correct slope calculations when the surface z units are expressed in units different from the ground x,y units.

    If Slope operations encounters NoData in its neighborhood, that neighborhood cell well be treated as having the same elevation as the focal cell.

    The expression for slope is:

    val slope = atan(sqrt(pow(`dz / dy`, 2) * pow(`dz / dx`, 2)))
  18. object SpiralZagTraversalStrategy extends TraversalStrategy with Product with Serializable

    Permalink
  19. object StandardDeviation

    Permalink

    Computes the standard deviation of a neighborhood for a given raster.

    Computes the standard deviation of a neighborhood for a given raster. Returns a raster of DoubleConstantNoDataCellType.

    Note

    StandardDeviation does not currently support Double raster data inputs. If you use a Tile with a Double CellType (FloatConstantNoDataCellType, DoubleConstantNoDataCellType) the data values will be rounded to integers.

  20. object Sum

    Permalink
  21. object TargetCell extends Serializable

    Permalink
  22. object TileMoransICalculation

    Permalink

    Calculates spatial autocorrelation of cells based on the similarity to neighboring values.

    Calculates spatial autocorrelation of cells based on the similarity to neighboring values.

    The statistic for each focus in the resulting raster is such that the more positive the number, the greater the similarity between the focus value and it's neighboring values, and the more negative the number, the more dissimilar the focus value is with it's neighboring values.

    Note

    Since mean and standard deviation are based off of an Int based Histogram, those values will come from rounded values of a double typed Tile (FloatConstantNoDataCellType, DoubleConstantNoDataCellType).

    ,

    This operation requires that the whole raster be passed in; it does not work over tiles.

  23. object TileWithNeighbors

    Permalink
  24. object TraversalStrategy

    Permalink
  25. object ZigZagTraversalStrategy extends TraversalStrategy with Product with Serializable

    Permalink
  26. package hillshade

    Permalink

Ungrouped