Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

prepcipitate

Prepare the raster brick containing the precipitation data


Description

This functions turns the WorldClim data downloaded using the function getprecip into a RasterBrick of same resolution and extent as the structural raster. This function is designed to be used with isomultiscape.

Usage

prepcipitate(path = NULL, raster, verbose = interactive())

Arguments

path

A string indicating the path where the WorldClim data have been downloaded. If the path is null (the default) the function will assume that the folder containing the precipitation data is in the current directory

raster

A raster containing the structural raster

verbose

A logical indicating whether information about the progress of the procedure should be displayed or not while the function is running. By default verbose is TRUE if users use an interactive R session, and FALSE otherwise.

See Also

getprecip to download the relevant precipitation data

PrecipBrickDE for the stored precipitation data for Germany

prepelev to prepare an elevation raster

Examples

## The following example takes some time and download a large amount of data (~ 1 Gb).
## It will therefore not be run unless you uncomment it

### We fit the models for Germany:
#GNIPDataDEagg <- prepsources(data = GNIPDataDE)
#
#GermanFit <- isofit(data = GNIPDataDEagg,
#                    mean_model_fix = list(elev = TRUE, lat.abs = TRUE))
#
#StrRaster <- prepraster(raster = ElevRasterDE,
#                        isofit = GermanFit,
#                        aggregation_factor = 0)
#
#getprecip(path = "~/Desktop/")
#
#PrecipitationBrick <- prepcipitate(path = "~/Desktop/",
#                                   raster = StrRaster
#                                   )
#levelplot(PrecipitationBrick)

IsoriX

Isoscape Computation and Inference of Spatial Origins using Mixed Models

v0.8.2
GPL (>= 2)
Authors
Alexandre Courtiol [aut, cre] (<https://orcid.org/0000-0003-0637-2959>), François Rousset [aut] (<https://orcid.org/0000-0003-4670-0371>), Marie-Sophie Rohwaeder [aut], Stephanie Kramer-Schadt [aut] (<https://orcid.org/0000-0002-9269-4446>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.