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

clmanR Documentation

Methods to create, manipulate and query objects of class 'Clman'.

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

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

## 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 March 18, 2022, 6:35 p.m.