read.DeponsRaster {DEPONS2R} | R Documentation |
Reading DEPONS raster files
Description
Function for reading raster files that have been used in DEPONS simulations. DEPONS rasters define amount of food available for simulated animals, spatial distribution of food patches, bathymetry, and distance to coast (dtc). The 'blocks' raster enables the user to count animals in specific parts of the landscape during simulations. See Nabe-Nielsen et al. (2018) for details regarding these files. In DEPONS 2.0 the salinity raster file was introduced; see TRACE document for details: https://github.com/jacobnabe/DEPONS
Usage
read.DeponsRaster(fname, type = "NA", landscape = "NA", crs = "NA")
Arguments
fname |
Filename (character), including the path to the DEPONS raster file. |
type |
The kind of data stored in the raster; c('food', 'patches', 'bathymetry', 'dtc', 'salinity', 'blocks'). |
landscape |
Identifier for the landscape used in the DEPONS simulations; typically set to 'North Sea'. |
crs |
CRS-object providing the map projection (see CRS). |
Value
Returns a DeponsRaster object. The object inherits slots from the "RasterLayer" class, including "title", which is used for storing the file name.
References
Nabe-Nielsen, J., van Beest, F. M., Grimm, V., Sibly, R. M., Teilmann, J., & Thompson, P. M. (2018). Predicting the impacts of anthropogenic disturbances on marine populations. Conservation Letters, 11(5), e12563. doi:10.1111/conl.12563