The function automatically reads the raster input files (presences.map
and mask.map
, if present). Usually, 0 for absence and 1 for presence in every square cell over a given resolution. Supported file types are those that can be read via rgdal (see gdal. Note that the projection for the raster layer should be one of those supporting metric units (i.e., linear scale is equal in all directions around any point such as Transverse Mercator; see https://spatialreference.org/).
Then, it computes and fits single sigmoidal functions for every direction on the expansion movements (building four sub-models, one to each main cardinal direction), as previously computed by range_expansion
. Four different raster maps are generated (the sub-models), each estimating the probability of expansion for north, south, east and west directions. The four maps are finally summarized into a single range expansion map, which is returned to the user as an object of class RasterLayer
and saved in the working directory. These four maps do not directly express the probabilities in the output of range_expansion
. Rather, the outputs are weighted by directionality, so that e.g. the north model favours the dispersal towards the north while penalizing dispersal in every other direction. As such, the resulting dispersal model is not a direct spatial transcription of the four data frames provided by range_expansion
but an interpretation weighted by the spatial context given by directionality.
Additionally, a raster file is computed, showing the time steps at which each distance is reached. This output depicts the adjustment of a linear model to the output of the four sub-models together, considering the four equally. This output should not be used as guideline to mask the model if running to several time periods. For example if projections to 2050 and 2080 are to be made than the dispersal model should be run twice, adjusting the time steps to the desired date.
This function internally uses a connection to GRASS GIS software through the package rgrass7-package
, in order to increase the performance for geographical calculations.
Finally, the user might have to manually adjust the starting values of the function fit.sigmoid
, (defined internally in this function) if it has difficulty adjusting to the output of range_expansion
.