Learn R Programming

spectacles (version 0.5-4)

splice: Splice correction of a spectra collected using ASD hardware

Description

This is the correction method available in the ViewSpec Pro software from ASD, which aims at correcting steps in the data (see details).

Usage

# S4 method for Spectra
splice(x, locations = list(c(750, 1000), c(1830, 1950)))

Value

an object of same class as x

Arguments

x

a Spectra object

locations

the wavelengths to cut out and interpolate

Author

Pierre Roudier pierre.roudier@gmail.com

Details

The SWIR1 part of the spectrum (1000-1800 nm) is taken as a reference for corrections as it is stable to the instrument sensitivity drift (Beal and Eamon, 2010)

This is based on a description of the splice correction algorithm described in:

Beal, D. and Eamon, M., 1996. Dynamic, Parabolic Linear Transformations of 'Stepped' Radiometric Data. Analytical Spectral Devices Inc., Boulder, CO.

Examples

Run this code

data(australia)
spectra(australia) <- sr_no ~ ... ~ 350:2500
oz_spliced <- splice(australia)
plot(oz_spliced)

Run the code above in your browser using DataLab