Skip to contents

Creates a satres object from a set of raster files.

Usage

satres(dir, out_dir = NULL, only_spectral_bands = TRUE)

Arguments

dir

A string or string vector, folder names.

out_dir

A string, output folder.

only_spectral_bands

A boolean, include only spectral bands.

Value

A satres object.

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

Examples


esa <- system.file("extdata", "esa", package = "satres")

sr <- satres(dir = esa)

sr <- satres(dir = esa,
             out_dir = tempdir(),
             only_spectral_bands = FALSE)