crop | R Documentation |
RasterArray
'-class objectThe method is inherited from the 'SpatRaster
' class.
## S4 method for signature 'RasterArray'
crop(x, y, ...)
x |
a |
y |
an |
... |
arguments passed to the |
A cropped RasterArray
-class object.
ex <- rastex()
# crop to a specific area
if(requireNamespace("terra", quietly=TRUE)){
ext <- terra::ext(c(
xmin = 106.58,
xmax = 157.82,
ymin = -45.23,
ymax = 1.14
))
# cropping all
au<- crop(ex, ext)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.