Get fix points

Share:

Description

Get fix points of continuum line within spectral range.

Usage

1
getcp(x, ispec, subset = NULL) 

Arguments

x

Object of class Clman.

ispec

ID or index of spectrum to be analysed.

subset

Vector of length = 2 giving the lower and upper limit of spectral range.

Value

Object of class list containing two elements:

  • ptscon: Data frame with wavelength and reflectance of fix points

  • ispec: Index of analysed spectrum within passed Clman-object.

Author(s)

Lukas Lehnert and Hanna Meyer

See Also

transformSpeclib, deletecp, addcp, Clman

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Model spectra using PROSAIL
parameter <- data.frame(N = rep.int(c(1, 1.5),2), LAI = c(1,1,3,3))
spec <- PROSAIL(parameterList=parameter)

## Transform spectra
spec_clman <- transformSpeclib(spec, method = "sh", out = "raw")

## Fix points
spec_cp <- getcp(spec_clman, 1, c(400, 800))
spec_cp

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.