Hadoop Online Training by Edureka

transform: Transform spectra

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Transform spectra by using convex hull or segmented upper hull

Usage

1
  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.

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_λ = 1-\frac{R_λ}{CV_λ},

    where BD is the band depth, R is the reflectance and CV is the continuum value at the wavelength λ.

  • "ratio": the spectra are transformed by

    BD_λ = \frac{R_λ}{CV_λ}.

In some cases it might be useful to apply smoothSpeclib before the transformation if too many small local maxima are present in the spectra. Anyway, a manual improvement of the continuum line is possible using addcp and deletecp.

Value

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

Author(s)

Hanna Meyer and Lukas Lehnert

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

1
2
3
4
5
6
7
data(spectral_data)

transformed_spectra <- transformSpeclib(spectral_data)

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


Search within the hsdar package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.