Create plane

This tool can be used to create a new raster with values that are determined by the equation of a simple plane. The user must specify the name of a base image from which the output image coordinate and dimensional information will be taken. In addition the user must specify the values of the planar slope gradient (S) in degrees, the planar slope direction or aspect (A; 0 to 360 degrees), and an optional constant value (k). The Equation of the plane is as follows:

Z = tan(S) × sin(A - 180) × X + tan(S) × cos(A - 180) × Y + k

where X and Y are the X and Y coordinates of each grid cell in the grid. Notice that A is the direction, or azimuth, that the plane is facing.

See Also:

Scripting:

The following is an example of a Python script that uses this tool:

wd = pluginHost.getWorkingDirectory()
baseFile = wd + "base.dep"
outputFile = wd + "output.dep"
gradient = "30.0"
aspect = "215.0"
constant = "0.0"
args = [baseFile, outputFile, gradient, aspect, constant]
pluginHost.runPlugin("CreatePlane", args, False)

This is a Groovy script also using this tool:

def wd = pluginHost.getWorkingDirectory()
def baseFile = wd + "base.dep"
def outputFile = wd + "output.dep"
def gradient = "30.0"
def aspect = "215.0"
def constant = "0.0"
String[] args = [baseFile, outputFile, gradient, aspect, constant]
pluginHost.runPlugin("CreatePlane", args, false)

Credits: