Learn R Programming

satellite (version 0.1.0)

satellite: Create a Satellite object

Description

Method to create a Satellite object.

Usage

## S3 method for class 'character':
satellite(x, meta, log)

## S3 method for class 'RasterStack': satellite(x, meta, log)

## S3 method for class 'list': satellite(x, meta, log)

Arguments

x
A vector of filenames (see raster::raster) or a raster::RasterStack.
meta
Optional metadata object (e.g. returned from compMetaLandsat). If x is a satellite dataset and recognised as "Landsat", then the metadata is automatically extracted from the respective meta informat
log
Optionally supply a log entry.

Value

  • Satellite object

Details

A satellite object consists of three data sections: (i) a raster data section which holds the actual data values of the respective sensor bands, (ii) a metadata grid which holds meta information for each sensor band (e.g. calibration coefficients, type of sensor band etc.) and (iii) a list of log information which records the processing history of the entire dataset.

See Also

compMetaLandsat to get more information about the structure of the metadata component.

Examples

Run this code
## 'character' input (i.e. filenames)
path <- system.file("extdata", package = "satellite")
files <- list.files(path, pattern = glob2rx("LC8*.tif"), full.names = TRUE)

satellite(files)

## raster::RasterStack input
satellite(l8)

Run the code above in your browser using DataLab