Learn R Programming

geohabnet (version 2.1.3)

get_rasters: 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)

Value

List of SpatRaster.

Arguments

hosts

List of hosts and values. It is synonym to Hosts object in parameters

See Also

load_parameters(), get_parameters(), tiff_torast(), cropharvest_rast()

Examples

Run this code
# Get default rasters
if (FALSE) {
get_rasters(list(mapspam2010 = c("wheat"), monfreda = c("avocado"), file = "some_raster.tif"))
}

Run the code above in your browser using DataLab