Creates a satres
object from a set of raster files.
Details
Given a folder name or a vector of folder names, containing satellite band raster files, creates an object containing all rasters grouped according to their spatial resolution.
If there are several rasters of the same area (tiles), it previously merges them to form a single raster of the total area.
A working folder where the virtual rasters are created can be indicated as a parameter. Additionally, we indicate whether we wish to process only the spectral band files (B1 to B12) or all available files.
See also
Other satellite definition:
get_band_names()
,
get_spatial_resolution()
,
get_spectral_band_names()
Examples
esa <- system.file("extdata", "esa", package = "satres")
sr <- satres(dir = esa)
sr <- satres(dir = esa,
out_dir = tempdir(),
only_spectral_bands = FALSE)