Skip to contents

This function writes any number of SpatRaster objects to a specified a directory.

Usage

write_rasters_to_adir(raster_objects, a_dir)

Arguments

raster_objects

Named list of SpatRaster objects to write.

a_dir

directory for saving the SpatRaster objects.

Examples

if (FALSE) {
library(terra)
# assuming rasters is a named list of SpatRaster objects
a_dir<- tempdir()
write_rasters_to_tempdir(rasters, a_dir)
}