write_to_brick: write_to_brick

View source: R/climateExtract.R

write_to_brickR Documentation

write_to_brick

Description

Write the output in a multilayer raster

Usage

write_to_brick(x, out = out, outformat = outformat, ...)

Arguments

x

object obtained from the extrat_nc_value function corresponding to the specific period of interest

out

character string defining the filename to save; default extension is "climateExtract_raster.tiff".

outformat

character string with the format for the output raster, using GDAL shortname. You can use gdal(drivers=TRUE) to see what drivers are available in your installation; default is set to GEOTiff.

...

additional arguments for for writing files, see writeRaster

Details

By default, this function overwrites file with the same name if existing. Layers' names are Date starting with X (e.g. "X2010.01.27")

Author(s)

Reto Schmucki


RetoSchmucki/climateExtract documentation built on July 3, 2025, 11:39 p.m.