mosaic_input {pliman} | R Documentation |
Create and Export mosaics
Description
Create and Export mosaics
Usage
mosaic_input(mosaic, ...)
mosaic_export(mosaic, filename, overwrite = FALSE, ...)
Arguments
mosaic |
|
... |
Additional arguments passed to |
filename |
character. The Output filename. |
overwrite |
logical. If |
Details
-
mosaic_input()
is a simply wrapper aroundterra::rast()
. It creates aSpatRaster
object from scratch, from a filename, or from another object. -
mosaic_export()
is a simply wrapper aroundterra::writeRaster()
. It write aSpatRaster
object to a file.
Value
-
mosaic_input()
returns anSpatRaster
object. -
mosaic_export()
do not return an object.
Examples
library(pliman)
# create an SpatRaster object based on a matrix
x <- matrix(1:20, nrow = 4, ncol = 5)
rast <- mosaic_input(x)
mosaic_view(rast, viewer = "base", axes = TRUE)
# create a temporary filename for the example
f <- file.path(tempdir(), "test.tif")
mosaic_export(rast, f, overwrite=TRUE)
list.files(tempdir())
[Package pliman version 2.1.0 Index]