Description Usage Arguments Details Value Author(s) References
Perform topographic correction using the Minnaert method. This code is
modified from the code in the landsat
package written by Sarah
Goslee. This version of the code has been altered from the landsat
version to allow the option of using a sample of pixels for calculation of k
in the Minnaert correction (useful when dealing with large images).
1 2 3 |
x |
image as a |
slope |
the slope in radians as a |
aspect |
the aspect in radians as a |
sunelev |
sun elevation in degrees |
sunazimuth |
sun azimuth in degrees |
IL.epsilon |
a small amount to add to calculated illumination values that are equal to zero to avoid division by zero resulting in Inf values |
slopeclass |
the slope classes to calculate k for (in radians), or
NULL, in which case an algorithm will be used to choose reasonable defaults
for the given image. If provided, |
coverclass |
used to calculate k for specific cover class (optional)
as |
sampleindices |
(optional) row-major indices of sample pixels to use in
the calculation of k values for the Minnaert correction. See
|
DN_min |
minimum allowable pixel value after correction (values less
than |
DN_max |
maximum allowable pixel value after correction (values less
than |
See the help page for minnaert
in the landsat
package for
additional details on the parameters.
RasterLayer
with topographically corrected data
Sarah Goslee and Alex Zvoleff
Sarah Goslee. Analyzing Remote Sensing Data in R: The landsat Package. Journal of Statistical Software, 2011, 43:4, pg 1–25. http://www.jstatsoft.org/v43/i04/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.