as_SpatRaster {satres}R Documentation

As terra SpatRaster class

Description

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


[Package satres version 1.1.1 Index]