Learn R Programming

photobiology (version 0.9.6)

source_spct: Spectral-object constructor

Description

These fucntions can be used to create spectral objects derived from generic_spct. They take as arguments numeric vectors for the data character scalars for attributes, and a logical flag.

Usage

source_spct(w.length = NULL, s.e.irrad = NULL, s.q.irrad = NULL,
  time.unit = c("second", "day", "exposure"), bswf.used = c("none",
  "unknown"), comment = NULL, strict.range = FALSE, ...)

raw_spct(w.length = NULL, counts = NA_real_, comment = NULL,
  instr.desc = NA, instr.settings = NA, ...)

cps_spct(w.length = NULL, cps = NA_real_, comment = NULL,
  instr.desc = NA, instr.settings = NA, ...)

generic_spct(w.length = NULL, comment = NULL, ...)

response_spct(w.length = NULL, s.e.response = NULL, s.q.response = NULL,
  time.unit = c("second", "day", "exposure"), comment = NULL, ...)

filter_spct(w.length = NULL, Tfr = NULL, Tpc = NULL, A = NULL,
  Tfr.type = c("total", "internal"), comment = NULL, strict.range = FALSE,
  ...)

reflector_spct(w.length = NULL, Rfr = NULL, Rpc = NULL,
  Rfr.type = c("total", "specular"), comment = NULL, strict.range = FALSE,
  ...)

object_spct(w.length = NULL, Rfr = NULL, Tfr = NULL,
  Tfr.type = c("total", "internal"), Rfr.type = c("total", "specular"),
  comment = NULL, strict.range = FALSE, ...)

chroma_spct(w.length = NULL, x, y, z, comment = NULL,
  strict.range = FALSE, ...)

Arguments

w.length
numeric vector with wavelengths in nanometres
s.e.irrad
numeric vector with spectral energy irradiance in [W m-2 nm-1] or [J d-1 m-2 nm-1]
s.q.irrad
numeric A vector with spectral photon irradiance in [mol s-1 m-2 nm-1] or [mol d-1 m-2 nm-1].
time.unit
character string indicating the time unit used for spectral irradiance or exposure ("second" , "day" or "exposure") or an object of class duration as defined in package lubridate.
bswf.used
character A string indicating the BSWF used, if any, for spectral effective irradiance or exposure ("none" or the name of the BSWF).
comment
character A string to be added as a comment attribute to the object created.
strict.range
logical Flag indicating whether off-range values result in an error instead of a warning.
...
other arguments passed to data_frame()
counts
numeric vector with raw counts expressed per scan
instr.desc
a list
instr.settings
a list
cps
numeric vector with linearized raw counts expressed per second
s.e.response
numeric vector with spectral energy irradiance in W m-2 nm-1 or J d-1 m-2 nm-1
s.q.response
numeric vector with spectral photon irradiance in mol s-1 m-2 nm-1 or mol d-1 m-2 nm-1
Tfr
numeric vector with spectral transmittance as fraction of one
Tpc
numeric vector with spectral transmittance as percent values
A
numeric vector of absorbance values (log10 based)
Tfr.type
character string indicating whether transmittance values are "total" or "internal" values
Rfr
numeric vector with spectral refletance as fraction of one
Rpc
numeric vector with spectral reflectance as percent values
Rfr.type
character A string, either "total" or "specular".
x, y, z
numeric colour coordinates

Value

  • A object of class generic_spct or a class derived from it, depending on the function used. In other words an object of a class with the same name as the constructor function.

See Also

Other creation of spectral objects functions: as.generic_mspct, as.generic_spct