mosaic_project | R Documentation |
This function projects a given mosaic to a specified CRS.
mosaic_project(mosaic, y, ...)
mosaic |
A raster object representing the mosaic to be projected. |
y |
The target CRS to which the mosaic should be projected. This can be
specified in various formats accepted by the |
... |
Additional arguments passed to the |
A raster object representing the projected mosaic.
## Not run:
library(terra)
library(pliman)
# Create a sample mosaic
mosaic <- rast(nrow=10, ncol=10, xmin=-120, xmax=-60, ymin=30, ymax=60)
mosaic
# Define target CRS (EPSG code for WGS 84 / UTM zone 33N)
target_crs <- "EPSG:32633"
# Project the mosaic
projected_mosaic <- mosaic_project(mosaic, "EPSG:32633")
projected_mosaic
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.