spc.interp.spectral: Interpolate spectral values

Description Usage Arguments Examples

Description

Estimate spectral data at a new set of wavelengths through interpolation using approx().

Usage

1
2
3
4
spc.interp.spectral(source1,target_lbd,show.plot, ...)

## S4 method for signature 'Spectra'
spc.interp.spectral(source1, target_lbd, show.plot = FALSE)

Arguments

source1

A Spectra object

target_lbd

numeric vector giving desired wavelengths

show.plot

logical TRUE if a graphical representation is required

...

further arguments to pass on to approx().

Examples

1
2
3
4
5
6
7
sp=spc.example_spectra()
lbd = as.numeric(c(412,440,490,555,670))
sp2 = spc.interp.spectral(sp[,lbd],c(430,450,500))
spc.plot.overlay(SpcList(list(sp,sp2)))

#Quick Plot only the first row
spc.interp.spectral(sp[,lbd],c(430,450,500),show.plot=TRUE)

PranaGeo/Spectral documentation built on Feb. 21, 2020, 12:36 p.m.