Learn R Programming

hsdar (version 0.4.1)

transformSpeclib: Transform spectra

Description

Transform spectra by using convex hull or segmented upper hull

Usage

transformSpeclib(data, ..., method = "ch", out = "bd")

Arguments

data
Speclib to be transformed
method
Method to be used. See details section.
out
Kind of value to be returned. See details section.
...
Further arguments passed to generic functions. Currently ignored.

Value

  • If method != "raw" an object of class Speclib containing transformed spectra is returned. Otherwise the return object will be of class Clman.

Details

Function performs a continuum removal transformation by firstly establishing a continuum line/hull which connects the local maxima of the reflectance spectrum. Two kinds of this hull are well established in scientific community: the convex hull (e.g. Mutanga et al. 2004) and the segmented hull (e.g. Clark et al. 1987). Both hulls are established by connecting the local maxima, however, the precondition of the convex hull is that the resulting continuum line must be convex whereas considering the segmented hull it might be concave or convex but the algebraic sign of the slope is not allowed to change from the global maximum of the spectrum downwards to the sides. In contrast to a convex hull, the segmented hull is able to identify small absorption features.

Specify method = "ch" for the convex hull and method = "sh" for the segmented hull. The output might be "raw", "bd" or "ratio":

  • "raw":
{ the continuum line is returned} "bd":{ the spectra are transformed to band depth by $$BD_\lambda = 1-\frac{R_\lambda}{CV_\lambda},$$ where $BD$ is the band depth, $R$ is the reflectance and $CV$ is the continuum value at the wavelength $\lambda$.} "ratio":{ the spectra are transformed by $$BD_\lambda = \frac{R_\lambda}{CV_\lambda}.$$ }

References

Clark, R. N., King, T. V. V. and Gorelick, N. S. (1987): Automatic continuum analysis of reflectance spectra. Proceedings of the Third Airborne Imaging Spectrometer Data Analysis Workshop, 30. 138-142.

Mutanga, O. and Skidmore, A. K. (2004): Hyperspectral band depth analysis for a better estimation of grass biomass (Cenchrus ciliaris) measured under controlled laboratory conditions International Journal of applied Earth Observation and Geoinformation, 5, 87-96.

See Also

Clman, addcp, deletecp, checkhull

Examples

Run this code
data(spectral_data)

transformed_spectra <- transformSpeclib(spectral_data)

par(mfrow=c(1,2))
plot(spectral_data)
plot(transformed_spectra)

Run the code above in your browser using DataLab