Description Usage Arguments Details Value References Examples
Performs relative normalization on two rasters using model II regression.
Based on the approach in the relnorm
function in the landsat
package.
1 | normalize(x, y, msk, method = "MA", size = ncell(x))
|
x |
a |
y |
a |
msk |
a |
method |
the regression method to use (must be a method recognized by
|
size |
the number of pixels to use in developing the model |
This function will run in parallel if a parallel backend is registered with
foreach
.
a Raster*
of y
normalized to x
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/
1 2 3 4 5 6 7 | L5TSR_2001_normed_1 <- normalize(L5TSR_1986, L5TSR_2001)
plotRGB(L5TSR_2001_normed_1, stretch='lin')
# Use only half as many pixels to calculate the models
L5TSR_2001_normed_2 <- normalize(L5TSR_1986, L5TSR_2001,
size=ncell(L5TSR_1986)/2)
plotRGB(L5TSR_2001_normed_2, stretch='lin')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.