This is the correction method available in the ViewSpec Pro software from ASD, which aims at correcting steps in the data (see details).
# S4 method for Spectra splice(x, locations = list(c(750, 1000), c(1830, 1950)))
a Spectra object
Spectra
the wavelengths to cut out and interpolate
an object of same class as x
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 & Eamon, 2010)
This is based on a description of the splice correction algorithm available on the ASD website at http://support.asdi.com/Document/Documents.aspx.
# NOT RUN { data(australia) spectra(australia) <- sr_no ~ ... ~ 350:2500 oz_spliced <- splice(australia) plot(oz_spliced) # }
Run the code above in your browser using DataLab