Learn R Programming

hsdar (version 0.5.1)

getcp: Get fix points

Description

Get fix points of continuum line within spectral range.

Usage

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.

See Also

transformSpeclib, deletecp, addcp, Clman

Examples

Run this code
## 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

Run the code above in your browser using DataLab