HyperSpecRaster: Handle hyperspectral cubes using raster package (deprecated)

HyperSpecRasterR Documentation

Handle hyperspectral cubes using raster package (deprecated)

Description

The HyperSpecRaster-Class is deprecated. Use Speclib instead.

Usage

## S4 method for signature 'character,numeric'
HyperSpecRaster(x, wavelength, fwhm = NULL, SI = NULL, ...)

## S4 method for signature 'RasterLayer,numeric'
HyperSpecRaster(x, wavelength, fwhm = NULL, SI = NULL)

## S4 method for signature 'RasterBrick,numeric'
HyperSpecRaster(x, wavelength, fwhm = NULL, SI = NULL)

## S4 method for signature 'HyperSpecRaster'
HyperSpecRaster(x, wavelength)

## S4 method for signature 'Speclib'
HyperSpecRaster(x, nrow, ncol, xmn, xmx, ymn, ymx, crs)

## S4 method for signature 'HyperSpecRaster,character'
writeStart(x, filename, ...)

## S4 method for signature 'HyperSpecRaster'
getValuesBlock(x, ...) 

## S4 method for signature 'RasterLayer,Speclib'
writeValues(x, v, start) 

## S4 method for signature 'RasterBrick,Speclib'
writeValues(x, v, start)

## S4 method for signature 'HyperSpecRaster,Speclib'
writeValues(x, v, start) 

Arguments

x

Raster* object

wavelength

Vector containing wavelength for each band

fwhm

Optional vector containing full-width-half-max values. If length == 1 the same value is assumed for each band. Note that function does not check the integrity of the values

SI

Optional data.frame containing SI data

nrow

Optional. Number of rows in HyperspecRaster. If omitted, function will try to get the information from the SI in Speclib (attr(x, "rastermeta"))

ncol

Optional. Number of colums in HyperspecRaster. See nrow above.

xmn

Optional. Minimum coordiante in x-dimension. See nrow above.

xmx

Optional. Maximum coordiante in x-dimension. See nrow above.

ymn

Optional. Minimum coordiante in y-dimension. See nrow above.

ymx

Optional. Maximum coordiante in y-dimension. See nrow above.

crs

Optional. Object of class 'CRS' giving the coordinate system for HyperspecRaster. See nrow above.

...

Additional arguments as for brick

filename

Name of file to create

v

Speclib or matrix of values

start

Integer. Row number (counting starts at 1) from where to start writing v

Value

HyperSpecRaster or RasterBrick

Author(s)

Lukas Lehnert


hsdar documentation built on March 18, 2022, 6:35 p.m.