Description Usage Arguments Value Author(s) Examples
Simulating forest cover maps with defined covariance structure using random fields
1 2 |
ras_dim |
A vector of two values where the first specifies the number of columns and the second the number of rows of the output raster. |
pxl_size |
Pixel size of the output map. |
p |
Forest cover of the out put map, 0 < p <= 1. |
cov_model |
A covariance model used for the random fields simulation.
Type |
alpha |
See |
beta |
See |
scale |
See |
... |
Other parameters used by |
A binary raster
map of simulated forest cover.
Paul Magdon, Sebastian Schnell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # Raster size
ras_dim <- c(1000, 1000);
# Pixel size
pxl_size <- 30;
# Forest cover
p <- 0.7;
# Cauchy covariance model
# 0 < alpha <= 2 - low alpha -> high fragmentation
# beta > 0 - smaller beta -> longer long-range dependence
cov_model <- RMgencauchy(alpha = 1.95,
beta = 0.3,
scale = 1/3*sqrt((sum(ras_dim*pxl_size)^2)));
forest_ras <- sim_forest_cover(ras_dim, pxl_size, cov_model, p);
plot(forest_ras);
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.