Learn R Programming

photobiology (version 0.10.14)

waveband: Waveband constructor method

Description

Constructor for "waveband" objects that can be used as input when calculating irradiances.

Usage

waveband(
  x = NULL,
  weight = NULL,
  SWF.e.fun = NULL,
  SWF.q.fun = NULL,
  norm = NULL,
  SWF.norm = NULL,
  hinges = NULL,
  wb.name = NULL,
  wb.label = wb.name
)

new_waveband( w.low, w.high, weight = NULL, SWF.e.fun = NULL, SWF.q.fun = NULL, norm = NULL, SWF.norm = NULL, hinges = NULL, wb.name = NULL, wb.label = wb.name )

Value

a waveband object

Arguments

x

any R object on which applying the method range() yields an vector of two numeric values, describing a range of wavelengths [\(nm\)].

weight

a character string "SWF" or "BSWF", use NULL (the default) to indicate no weighting used when calculating irradiance.

SWF.e.fun, SWF.q.fun

a functions giving multipliers for a spectral weighting function (energy and quantum, respectively) as a function of wavelength [\(nm\)].

norm

a single numeric value indicating the wavelength [\(nm\)] at which the SWF should be normalized to 1.0; NULL is interpreted as no normalization.

SWF.norm

a numeric value giving the native normalization wavelength [\(nm\)] used by SWF.e.fun and SWF.q.fun.

hinges

a numeric vector giving the wavelengths at which values in s.irrad should be inserted by interpolation before integration is attempted. No interpolation is indicated by an empty vector (numeric(0)), while interpolation at both boundaries of the band is indicated by NULL.

wb.name

character string giving the name for the waveband defined, default is NULL for an automatically generated name.

wb.label

character string giving the label of the waveband to be used for labelling computed summaries or plots, default is wb.name.

w.low, w.high

numeric value, wavelengths at the short end and long ends of the wavelength band [\(nm\)].

Functions

  • new_waveband(): A less flexible variant

See Also

Other waveband constructors: split_bands()

Examples

Run this code
waveband(c(400,700))

new_waveband(400,700)

Run the code above in your browser using DataLab