get_rasters {geohabnet} | R Documentation |
Get rasters object from parameters
Description
Takes named list of hosts as an input. See host object in get_parameters()
or load_parameters()
.
This is also a wrapper of crops_rast()
.
Function creates 2 raster object - one is a sum of all the crops specified under sources
and other using the provided raster file. See tiff_torast()
Usage
get_rasters(hosts)
Arguments
hosts |
List of hosts and values. It is synonym to Hosts object in parameters |
Value
List of SpatRaster.
See Also
load_parameters()
, get_parameters()
, tiff_torast()
, cropharvest_rast()
Examples
# Get default rasters
## Not run:
get_rasters(list(mapspam2010 = c("wheat"), monfreda = c("avocado"), file = "some_raster.tif"))
## End(Not run)
[Package geohabnet version 2.1.3 Index]