depth {terra} | R Documentation |
depth of SpatRaster layers
Description
Get or set the depth of the layers of a SpatRaster. Experimental.
Usage
## S4 method for signature 'SpatRaster'
depth(x)
## S4 replacement method for signature 'SpatRaster'
depth(x)<-value
## S4 method for signature 'SpatRaster'
depthName(x)
## S4 replacement method for signature 'SpatRaster'
depthName(x)<-value
## S4 method for signature 'SpatRaster'
depthUnit(x)
## S4 replacement method for signature 'SpatRaster'
depthUnit(x)<-value
Arguments
x |
SpatRaster |
value |
numeric vector ( |
Value
numeric or SpatRaster
See Also
Examples
s <- rast(nlyr=3)
depth(s) <- c(0, pi/2, pi)
depth(s)
depthName(s) <- "angle"
depthUnit(s) <- "radians"
s
[Package terra version 1.8-60 Index]