Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

spliceCorrection

Splice correction of a spectral matrix acquired with an ASD spectrometer


Description

Corrects steps in an input spectral matrix by linear interpolation of the values of the edges of the middle sensor

Usage

spliceCorrection(X, wav, splice = c(1000, 1830), interpol.bands = 10)

Arguments

X

a numeric matrix or vector to transform (optionally a data frame that can be coerced to a numerical matrix).

wav

a numeric vector with band positions.

splice

a numeric vector of the two positions of the splices, default: c(1000, 1830). corresponding to the splices of the ASD FieldSpec Pro spectrometer.

interpol.bands

the number of interpolation bands.

Details

Spectra acquired with an ASD FieldSpec Pro spectroradiometer usually exhibit steps at the splice of the three built-in sensors, positioned at 1000 nm (end of VNIR detector) and 1830 nm (end of SWIR1 detector).

Value

a matrix with the splice corrected data.

Author(s)

Antoine Stevens


prospectr

Miscellaneous Functions for Processing and Sample Selection of Spectroscopic Data

v0.2.1
MIT + file LICENSE
Authors
Antoine Stevens [aut, cre] (<https://orcid.org/0000-0002-1588-7519>), Leonardo Ramirez-Lopez [aut, cre] (<https://orcid.org/0000-0002-5369-5120>), Guillaume Hans [ctb] (<https://orcid.org/0000-0002-6503-5760>)
Initial release
2020-10-23

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.