Skip to contents

Exports a raster or SpatRaster to .tif or .txt to stick to original file formats of legacy MHM/CMP softwares.

Usage

export_raster(x, filename, ...)

Arguments

x

raster or SpatRaster

filename

where to write the file

...

additional arguments to pass to terra::writeRaster

Value

writes a file

Examples

# we don't run the export here to not mess CRAN/github
# if you do, this will write a file on your machine
if (FALSE) { # \dontrun{
landscape <- import_example("l1.tif")
landscape %>% export_raster("landscape.tif")
} # }