Calculate PCA of a raster from covariance matrix
1 | myRasterPCA(x, covMat, xmeans, nComp = 2, threads = 1, ...)
|
x |
Raster object |
covMat |
Matrix of covariance with rownames and colnames correspondign to raster layer names |
xmeans |
Mean of each layer of x, as a named numeric vector |
threads |
Number of parallel threads |
... |
Additional arguments passed to writeRaster |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.