Save multi-band rasters according to their spatial resolution
Source:R/export.R
save_by_resolution.Rd
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)
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.
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)