Save a terra::rast() object to disk, along with a text file containing the names of each layer in the object.

writeNamedRaster(x, filename, ...)

Arguments

x

terra::rast() object.

filename

character file path.

...

arguments passed to raster::writeRaster().

Value

None.

Details

This file saves a raster object to disk along with a text file containing the layer names of the raster.