The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
The goal of cdlsim is to simulate USDA CDL data to quantify the sensitivity of metrics calculated on it. The R package landscapemetrics is used to implement popular FRAGSTATS style metrics in R.
The stable release of cdlsim will be available from CRAN soon:
install.packages("cdlsim")Until then, you can install the development version of cdlsim from GitHub with:
# install.packages("devtools")
devtools::install_github("burgerhaley97/cdlsim")This is a basic example which shows how a simple landscape would behave in our simulation:
library(cdlsim)
r <- rast(nrows = 20, ncols = 20) values(r) <- rep(1:3, length.out = ncell(r))
trans_mat <- matrix(1/3, nrow = 3, ncol = 3) rownames(trans_mat) <- colnames(trans_mat) <- c(“1”, “2”, “3”)
simulate_raster_patch(r, trans_mat, iterations = 1)

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.