save_by_resolution {satres} | R Documentation |
Save multi-band rasters according to their spatial resolution
Description
Saves multi-band raster files of the object according to its spatial resolution. The file names correspond to the resolution of each one.
Usage
save_by_resolution(sr, out_dir, only_show_files)
## S3 method for class 'satres'
save_by_resolution(sr, out_dir = NULL, only_show_files = FALSE)
Arguments
sr |
A |
out_dir |
A string, output folder. |
only_show_files |
A boolean, only show the files that would be created, not create them. |
Details
They are stored in the folder that is indicated or, if none is indicated, in the folder that was used to create the object.
Value
A vector of strings, name of the saved files.
See Also
Other satellite exportation:
as_SpatRaster()
Examples
esa <- system.file("extdata", "esa", package = "satres")
sr <- satres(dir = esa)
f <- sr |>
save_by_resolution(only_show_files = TRUE)
[Package satres version 1.1.1 Index]