Description Usage Arguments Value Examples
View source: R/Creation_v0.6.R
This function uses other functions to create a land cover with the focal habitat haveing a number of patches.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | GenerateLandcover(
NumberSeeds,
LCVPath,
PatchPath,
runno = NULL,
MatrixHabs = 10,
GenExtent = 250,
FullExtent = 1000,
BufferFullExtent = 0,
cover = 0.1,
DistributionPatches = "Random",
DistributionSeeds = "Uniform",
NumberEachMatrixHabs = 1:200,
MatrixHabsEqualSize = FALSE,
MatrixPatchDistribution = "Random",
MarixSeedDistribution = "Uniform"
)
|
NumberSeeds |
integer - |
LCVPath |
character - string of the output path of the land cover ascii |
PatchPath |
character - string of the output path of the patch ascii |
runno |
integer - defaults to NULL |
MatrixHabs |
integer -number of habitats in the matrix |
GenExtent |
integer - default 250, this is the extent that the land cover is generated at. Can be slow with large values. |
FullExtent |
integer final extent of the landcover |
BufferFullExtent |
integer - buffer around the edge of the land cover |
cover |
floating point between 0 and 1. |
DistributionPatches |
character - how seed points are distributed to grow the patches. Options are "Random" or "Poisson", "Clustered" or "Thomas", or "Regular", "Strauss" or"Dispersed" and defaults to random. |
DistributionSeeds |
character - a distribution from which to pick the size of patches from. Opetions are "Gaussian" or"Normal", "Pareto", or the default "Uniform". Uniform gives patches of almost any size and the maximum variation. |
NumberEachMatrixHabs |
list of numbers - default is 1:200 |
MatrixHabsEqualSize |
boolean - true or false |
MatrixPatchDistribution |
character - how seed points are distributed to grow the patches. Options are "Random" or "Poisson", "Clustered" or "Thomas", or "Regular", "Strauss" or"Dispersed" and defaults to random. |
MarixSeedDistribution |
character - a distribution from which to pick the size of patches from. Opetions are "Gaussian" or"Normal", "Pareto", or the default "Uniform". Uniform gives patches of almost any size and the maximum variation. |
list of arrays - the list contains two arrays, the "Patches" and "InterestLCV" (land cover).
1 2 3 4 5 6 7 8 9 10 11 | library(raster)
library(LcvGen)
NewLandcover <- GenerateLandcover(5, "Lcv5.asc", "Patches5.asc")
plot(raster(NewLandcover$LCV))
plot(raster(NewLandcover$Patches))
NewLandcover <- GenerateLandcover(4, "Lcv5.asc", "Patches5.asc",
DistributionPatches = "Dispersed",
NumberEachMatrixHabs = 4,
MatrixPatchDistribution = "Dispersed")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.