satres {satres}R Documentation

satres S3 class

Description

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.

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.

Value

A satres object.

See Also

sat_untarzip

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)


[Package satres version 1.1.1 Index]