Skip to contents

Returns the multi-band raster of the indicated spatial resolution as an object of class SpatRaster from package terra

Usage

as_SpatRaster(sr, res)

# S3 method for class 'satres'
as_SpatRaster(sr, res = NULL)

Arguments

sr

A satres object.

res

A string, spatial resolution.

Value

A vector of strings.

See also

sat_untarzip

Other satellite exportation: save_by_resolution()

Examples


esa <- system.file("extdata", "esa", package = "satres")
sr <- satres(dir = esa)

r <- sr |>
     as_SpatRaster("r1000m")