get_rasters: Get rasters object from parameters

View source: R/get_rasters.R

get_rastersR 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)

geohabnet documentation built on June 27, 2024, 5:11 p.m.