getcp: Get fix points

View source: R/continuum_clman.R

getcpR Documentation

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.

Author(s)

Lukas Lehnert and Hanna Meyer

See Also

transformSpeclib, deletecp, addcp, Clman

Examples

## 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

hsdar documentation built on March 18, 2022, 6:35 p.m.