This function sets the coordinate reference system (CRS) for a SpatRaster
object using the specified EPSG code. This is a wrapper function for
terra::crs(R) <- CRS
but allowing to set the CRS in the pipe.
Usage
setRastCRS(R, CRS = "epsg:3035")
Arguments
- R
A SpatRaster object whose CRS needs to be set.
- CRS
A string specifying the CRS to be set, default is "epsg:3035".
Value
The SpatRaster object with the updated CRS.