Function to set by reference the "sensor.properties" attribute of an existing response_spct object.
Usage
setSensorProperties(x, sensor.properties = NULL, verbose = FALSE)
sensor_properties(x) <- valueDetails
Storing sensor properties in an attribute with a well defined
format and minimum of information is intended to help with reproducibility.
Unlike the filter.properties metadata, the sensor.properties
metadata are currently not used in any computations. The attribute is
intended to be used with photoelectric sensors, broadband and image, i.e.,
not for biological photoreceptors or photobiological responses.
- model
character, identification code or name used by the supplier, required- type
character,"broadband","spectral","image"required- supplier
character, required- entrance.optics
character,"cosine","dome","sphere","narrow"required- channels
data.frame, description of the channels, one channel per row, optional- signal.interface
character,"analog","digital", and possibly others.- module.model
character, optional- module.supplier
character, optional- module.interface
character, optional- note
character, optional
Note
This function alters x itself by reference and in addition
returns x invisibly. If x is not a source_spct object,
x is not modified.
See also
Other measurement metadata functions:
add_attr2tb(),
getFilterProperties(),
getHowMeasured(),
getInstrDesc(),
getInstrSettings(),
getSensorProperties(),
getSoluteProperties(),
getWhatMeasured(),
getWhenMeasured(),
getWhereMeasured(),
get_attributes(),
isValidInstrDesc(),
isValidInstrSettings(),
select_spct_attributes(),
setFilterProperties(),
setHowMeasured(),
setInstrDesc(),
setInstrSettings(),
setSoluteProperties(),
setWhatMeasured(),
setWhenMeasured(),
setWhereMeasured(),
spct_attr2tb(),
spct_metadata(),
subset_attributes(),
trimInstrDesc(),
trimInstrSettings()
Examples
my.spct <- ccd.spct
sensor_properties(my.spct)
#> Sensor: S10420-1 from Hamamatsu.
sensor_properties(my.spct) <- NULL
sensor_properties(my.spct)
sensor_properties(my.spct) <- list(model = "ccd",
type = "ABC",
supplier = "unknown")
sensor_properties(my.spct)
#> Sensor: ccd from unknown.
