Skip to contents

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 satres object.

out_dir

A string, output folder.

only_show_files

A boolean, only show the files that would be created, not create them.

Value

A vector of strings, name of the saved files.

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

sat_untarzip

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)