Examples for 'terra::rotate'


Rotate a SpatRaster along longitude

Aliases: rotate rotate,SpatRaster-method

Keywords: spatial

### ** Examples

x <- rast(nrows=9, ncols=18, nl=3, xmin=0, xmax=360)
v <- rep(as.vector(t(matrix(1:ncell(x), nrow=9, ncol=18))), 3)
values(x) <- v
z <- rotate(x)

[Package terra version 1.5-34 Index]