This tool creates a new raster in which each grid cell is calculated as the base e logarithm of the value of the corresponding grid cell in the input raster, i.e. the natural logarithm. e is a constant approximately equal to 2.718282. Negative values in the input raster will be assigned the NoData value in the output raster. NoData values in the input image will be assigned the NoData value in the output image.
The following is an example of a Python script that uses this tool:
wd = pluginHost.getWorkingDirectory()
inputFile = wd + "input.dep"
outputFile = wd + "output.dep"
args = [inputFile, outputFile]
pluginHost.runPlugin("Ln", args, False)
This is a Groovy script also using this tool:
def wd = pluginHost.getWorkingDirectory()
def inputFile = wd + "input.dep"
def outputFile = wd + "output.dep"
String[] args = [inputFile, outputFile]
pluginHost.runPlugin("Ln", args, false)