Clman-methods: Methods to create, manipulate and query objects of class...

Description Usage Arguments Value Note Author(s) See Also Examples

Description

Methods to create, manipulate and query objects of class 'Clman'. The class 'Clman' is used to store manually defined continuum lines and the associated spectra.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Creation of objects
## S4 method for signature 'Clman'
initialize(.Object, ...)  
  
## S4 method for signature 'Clman'
spectra(object, ...)

## S4 replacement method for signature 'Clman,data.frame'
spectra(object) <- value

## S4 replacement method for signature 'Clman,matrix'
spectra(object) <- value

## S4 replacement method for signature 'Clman,numeric'
spectra(object) <- value

## S4 method for signature 'Clman'
plot(x, ispec, subset = NULL, numeratepoints = TRUE, 
    hull.style = NULL, points.style = list(), ...)

Arguments

.Object,object

Matrix, numeric or array in cases of creation of 'Clman' objects otherwise object of class 'Clman'.

value

Object of class numeric, matrix or array which is used for replacement of the values in x.

...

Arguments passed to createspeclib or plot.default.

x

Object of class clman.

ispec

Name or index of spectrum to be plotted.

subset

Lower and upper spectral limits used for plot.

numeratepoints

Flag if points should be numerated in plot.

hull.style

List of arguments passed to lines to construct the continuum line.

points.style

List of arguments passed to points to construct the continuum points. May be NULL to suppress plotting of fix points.

Value

For spectra<-, the updated object. Otherwise a matrix returning the spectra in the Clman object.

Note

The functions to create objects of class Clman are mainly internally needed by transformSpeclib.

Author(s)

Lukas Lehnert

See Also

dist.speclib, Clman, transformSpeclib, plot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## 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")

## Return first spectrum
spectra(spec_clman)[1,]

## Plot clman
plot(spec_clman, ispec = 1, subset = c(400, 1000))

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