crop_caim | R Documentation |
Function that complements read_caim()
and read_caim_raw()
crop_caim(r, upper_left = NULL, width = NULL, height = NULL)
r |
SpatRaster |
upper_left |
An integer vector of length two. The pixels coordinates of the upper left corner of a region of interest (ROI). These coordinates should be in the raster coordinates system. This system works like a spreadsheet, i.e, when going down through the vertical axis, the row number increases (IMPORTANT: column and row must be provided instead of row and column, as is the norm for objects from the class data.frame and others alike) |
width, height |
An integer vector of length one. The size of the boxy ROI
whose upper left corner is the |
SpatRaster
caim <- read_caim()
ncell(caim)
caim <- crop_caim(caim, c(231,334), 15, 10)
ncell(caim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.