# NOT RUN {
head(CalibDataAlien)
str(CalibDataAlien)
## The examples below will only be run if sufficient time is allowed
## You can change that by typing e.g. IsoriX.options(example_maxtime = XX)
## if you want to allow for examples taking up to ca. XX seconds to run
## (so don't write XX but put a number instead!)
if(IsoriX.getOption("example_maxtime") > 30) {
## We prepare the precipitation data
GNIPDataDEagg <- queryGNIP(data = GNIPDataDE)
## We fit the models for Germany
GermanFit <- isofit(iso.data = GNIPDataDEagg)
## We build the isoscape
isoscape <- isoscape(elevation.raster = ElevRasterDE, isofit = GermanFit)
## We create a simulated dataset with 50 site and 10 observations per site
set.seed(2L)
CalibDataAlien <- create_aliens(calib_fn = list(intercept = 3, slope = 0.5, resid_var = 5),
isoscape = isoscape,
elevation_raster = ElevRasterDE,
n_sites = 50,
min_n_samples = 10,
max_n_samples = 10)
CalibDataAlien$env.value <- NULL
## Uncomment the following to store the file as we did
#save(CalibDataAlien, file = "CalibDataAlien.rda", compress = "xz")
}
# }
Run the code above in your browser using DataLab