Skip to contents

Convert an sftime object to a SpatRaster object. Returns a SpatRatser with one layer for each time step in x.

Usage

sftime_as_spatraster(x, varname)

Arguments

x

an sftime object

varname

variable to rasterize

Value

a SpatRaster object

Note

Running sftime_as_spatraster can take a long time if x is not spatially structured.

See also

Author

Eva Marques