Learn R Programming

hsdar (version 0.5.1)

Clman: * Clman class

Description

Class to store and handle manual continuum lines

Usage

Clman(wavelength, cp, hull, spectra, outdatedhull = NULL, mask = NULL)
"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.
wavelength
Vector with corresponding wavelength for each band.
cp
Data frame or matrix containing fix points. Fix points have numbers greater than 0, all other bands are 0.
hull
Data frame or matrix containing linear hull.
spectra
Data frame, matrix of raster object of class 'SpatialGridDataFrame' with spectral data.
outdatedhull
Data frame or matrix containing hull of step before for undo porposes.
mask
Data frame with masked parts in the spectra. See mask.
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.
...
Further arguments passed to plot.default.

Value

Object of class Clman.

See Also

transformSpeclib, plot

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")

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

Run the code above in your browser using DataLab