Skip to contents

Get rasters object from parameters See host object in get_parameters() or load_parameters().

Usage

get_rasters(host)

Arguments

host

SpatRaster. It is synonym to Hosts object in parameters. This is a wrapper to terra::rast() and generates a raster object if provided with a TIF file.

Value

List of SpatRaster.

Examples

# Get default raster
get_rasters(terra::rast())
#> class       : SpatRaster 
#> dimensions  : 180, 360, 1  (nrow, ncol, nlyr)
#> resolution  : 1, 1  (x, y)
#> extent      : -180, 180, -90, 90  (xmin, xmax, ymin, ymax)
#> coord. ref. : lon/lat WGS 84 (CRS84) (OGC:CRS84)