interpolation: Helper function to interpolate and prepare layer names

View source: R/interpolation.R

interpolationR Documentation

Helper function to interpolate and prepare layer names

Description

Helper function to interpolate and prepare layer names

Usage

interpolation(ellipsoid_model, suitability_threshold = 5,
              interpolation_values, barriers = NULL,
              current_variables, projection_variables,
              current_suitability, lgm_suitability,
              out_format = "GTiff", output_directory)

Arguments

ellipsoid_model

object produced with the function ellipsoid_suitability.

suitability_threshold

(numeric) percentage of omission error to define what is not suitable. Default = 5.

interpolation_values

list of results from using the function interpolation_values.

barriers

SpatRaster representing dispersal barriers for the species. This layer must have the same extent and projection than current_variables. The only values allowed in this layer are 0 and 1; 0 = barrier, 1 = all other areas. Default = NULL.

current_variables

SpatRaster of environmental variables representing "current" conditions (interglacial).

projection_variables

SpatRaster of environmental variables representing the "Last Glacial Maximum" scenario. Variable names, projection and extent of these layers must be the same than those in current_variables.

current_suitability

(character) name of the file representing values of suitability for the interglacial (current) scenario.

lgm_suitability

(character) name of the file representing values of suitability for the glacial (LGM) scenario.

out_format

(character) format of layers to be written in output_directory. Options are "ascii" and "GTiff". Default = "GTiff".

output_directory

(character) name of the folder where results will be written. This directory must exist.

Value

A vector with names of files corresponding to each interpolation scenario.

All layers resulting from interpolation will be written in output_directory.


fmachados/grinnell documentation built on Jan. 29, 2024, 6:48 p.m.