Trim a SpatRaster
trim.Rd
Trim (shrink) a SpatRaster by removing outer rows and columns that are NA
or another value.
Arguments
- x
SpatRaster
- padding
integer. Number of outer rows/columns to keep
- value
numeric. The value of outer rows or columns that are to be removed
- filename
character. Output filename
- ...
additional arguments for writing files as in
writeRaster