spectralAnalysis (version 3.12.0)

localBaselineCorrect: local baseline correct, substract a baseline either trough 1 or 2 points

Description

local baseline correct, substract a baseline either trough 1 or 2 points

Usage

localBaselineCorrect(object, baseWavelengths = NULL)

Arguments

baseWavelengths

numeric vector of 1 or 2 wavelength use to draw a baseline trough, defaults to NULL when no baseline correction is performed

Value

SpectraInTime-class with baseline subset

Examples

Run this code
# NOT RUN {
spectra              <-  getSpectraInTimeExample()
spectraConstCorrect  <-  localBaselineCorrect( spectra , baseWavelengths = 240  )
spectraLinCorrect    <-  localBaselineCorrect( spectra , c( 250 , 330 )  ) 
# }
# NOT RUN {
plot( spectra )
plot( spectraConstCorrect )
plot( spectraLinCorrect ) 
# }

Run the code above in your browser using DataLab