object Aspect

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 = 360 / (2 * Pi) * atan2(`dz / dy`, `dz / dx`) - 90
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Aspect
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def apply(tile: Tile, n: Neighborhood, bounds: Option[GridBounds[Int]], cs: CellSize, target: TargetCell = TargetCell.All): Tile