getcp: Get fix points

Description Usage Arguments Value Author(s) See Also Examples

View source: R/continuum_clman.R

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:

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

hsdar documentation built on Nov. 17, 2017, 4:35 a.m.