Create a GVector
of contour lines from a GRaster
.
Arguments
- x
A
GRaster
.- nlevels
Numeric: A positive integer or missing (default). Number of levels at which to calculate contours. Levels will be calculated in equal-sized steps from the smallest to the largest value of
x
. Eithernlevels
orlevels
must be specified.- levels
Numeric vector: A numeric vector of values at which to calculate contour lines. Either
nlevels
orlevels
must be specified.
See also
terra::as.contour()
, GRASS manual page for module r.contour
(see grassHelp("r.contour")
)