View source: R/read_write_idf.r
write_raster | R Documentation |
Writes a terra::SpatRaster object to a file, using one of the supported formats in the 'terra' package. or an idf file format (ref. https://oss.deltares.nl/web/imod). In that case, use the'.idf' extension in the filename.
write_raster(
x,
filename,
e = NULL,
funstr = NULL,
double_precision = FALSE,
...
)
x |
terra::SpatRaster object. |
filename |
Output filename(s). In case "x" contains multiple layers and idf-output files are needed, specify a character vector of filenames (character). |
e |
Terra extent object |
funstr |
Optional function to modify raster values. Denote the raster with 'x' (or character between square brackets) (character) |
double_precision |
Write double precision idf. Only meaningfull for writing idf-files (logical). |
... |
Additional arguments as in 'terra::writeRaster'. |
This function is used for the side-effect of writing values to a file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.