powered by
Saves multi-band raster files of the object according to its spatial resolution. The file names correspond to the resolution of each one.
save_by_resolution(sr, out_dir, only_show_files)# S3 method for satres save_by_resolution(sr, out_dir = NULL, only_show_files = FALSE)
# S3 method for satres save_by_resolution(sr, out_dir = NULL, only_show_files = FALSE)
A vector of strings, name of the saved files.
A satres object.
satres
A string, output folder.
A boolean, only show the files that would be created, not create them.
They are stored in the folder that is indicated or, if none is indicated, in the folder that was used to create the object.
sat_untarzip
Other satellite exportation: as_SpatRaster()
as_SpatRaster()
esa <- system.file("extdata", "esa", package = "satres") sr <- satres(dir = esa) f <- sr |> save_by_resolution(only_show_files = TRUE)
Run the code above in your browser using DataLab