These functions 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.
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 = getOption("photobiology.strict.range", default = FALSE),
multiple.wl = 1L,
idfactor = NULL,
...
)calibration_spct(
w.length = NULL,
irrad.mult = NA_real_,
comment = NULL,
instr.desc = NA,
multiple.wl = 1L,
idfactor = NULL,
...
)
raw_spct(
w.length = NULL,
counts = NA_real_,
comment = NULL,
instr.desc = NA,
instr.settings = NA,
multiple.wl = 1L,
idfactor = NULL,
...
)
cps_spct(
w.length = NULL,
cps = NA_real_,
comment = NULL,
instr.desc = NA,
instr.settings = NA,
multiple.wl = 1L,
idfactor = NULL,
...
)
generic_spct(
w.length = NULL,
comment = NULL,
multiple.wl = 1L,
idfactor = NULL,
...
)
response_spct(
w.length = NULL,
s.e.response = NULL,
s.q.response = NULL,
time.unit = c("second", "day", "exposure"),
response.type = c("response", "action"),
comment = NULL,
multiple.wl = 1L,
idfactor = NULL,
...
)
filter_spct(
w.length = NULL,
Tfr = NULL,
Tpc = NULL,
Afr = NULL,
A = NULL,
Tfr.type = c("total", "internal"),
comment = NULL,
strict.range = getOption("photobiology.strict.range", default = FALSE),
multiple.wl = 1L,
idfactor = NULL,
...
)
reflector_spct(
w.length = NULL,
Rfr = NULL,
Rpc = NULL,
Rfr.type = c("total", "specular"),
comment = NULL,
strict.range = getOption("photobiology.strict.range", default = FALSE),
multiple.wl = 1L,
idfactor = NULL,
...
)
object_spct(
w.length = NULL,
Rfr = NULL,
Tfr = NULL,
Afr = NULL,
Tfr.type = c("total", "internal"),
Rfr.type = c("total", "specular"),
comment = NULL,
strict.range = getOption("photobiology.strict.range", default = FALSE),
multiple.wl = 1L,
idfactor = NULL,
...
)
chroma_spct(
w.length = NULL,
x,
y,
z,
comment = NULL,
strict.range = getOption("photobiology.strict.range", default = FALSE),
multiple.wl = 1L,
idfactor = NULL,
...
)
numeric vector with wavelengths in nanometres
numeric vector with spectral energy irradiance in [W m-2 nm-1] or [J d-1 m-2 nm-1]
numeric A vector with spectral photon irradiance in [mol s-1 m-2 nm-1] or [mol d-1 m-2 nm-1].
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.
character A string indicating the BSWF used, if any, for spectral effective irradiance or exposure ("none" or the name of the BSWF).
character A string to be added as a comment attribute to the object created.
logical Flag indicating whether off-range values result in an error instead of a warning.
numeric Maximum number of repeated w.length entries with same value.
character Name of factor distinguishing multiple spectra when stored logitudinally (required if mulitple.wl > 1).
other arguments passed to tibble()
numeric vector with multipliers for each detector pixel.
a list
numeric vector with raw counts expressed per scan
a list
numeric vector with linearized raw counts expressed per second
numeric vector with spectral energy irradiance in W m-2 nm-1 or J d-1 m-2 nm-1
numeric vector with spectral photon irradiance in mol s-1 m-2 nm-1 or mol d-1 m-2 nm-1
a character string, either "response" or "action".
numeric vector with spectral transmittance as fraction of one
numeric vector with spectral transmittance as percent values
numeric vector of absorptance as fraction of one
numeric vector of absorbance values (log10 based a.u.)
character string indicating whether transmittance and absorptance values are "total" or "internal" values
numeric vector with spectral reflectance as fraction of one
numeric vector with spectral reflectance as percent values
character A string, either "total" or "specular".
numeric colour coordinates
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.
Other constructors of spectral objects:
as.calibration_spct()
,
as.chroma_spct()
,
as.cps_spct()
,
as.filter_spct()
,
as.generic_spct()
,
as.object_spct()
,
as.raw_spct()
,
as.reflector_spct()
,
as.response_spct()
,
as.source_spct()