Function to extract the "instr.settings" attribute from
generic_spct object or from a summary_generic_spct.
Details
If x is derived from generic_spct or from
summary_generic_spct, the value of attribute "instr.settings"
is returned (NULL, if missing). Otherwise list() is returned.
See also
Other measurement metadata functions:
add_attr2tb(),
getFilterProperties(),
getHowMeasured(),
getInstrDesc(),
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
settings <- getInstrSettings(white_led.cps_spct)
class(settings)
#> [1] "instr_settings" "list"
print(settings)
#> integ. time (s): 0.233, 1.43, 5
#> total time (s): 10, 10, 10
#> counts @ peak (% of max): 94.2
print(str(settings))
#> List of 14
#> $ pix.selector : logi TRUE
#> $ HDR.mult : num [1:3] 1 7 50
#> $ target.margin : num 0.1
#> $ max.integ.time : num 7200000
#> $ min.integ.time : num 7200
#> $ tot.time.range : num [1:2] 1e+07 1e+07
#> $ integ.time : num [1:3] 232558 1428571 5000000
#> $ num.scans : num [1:3] 43 7 2
#> $ corr.elect.dark: int 0
#> $ corr.sensor.nl : int 0
#> $ boxcar.width : int 0
#> $ linearized : logi TRUE
#> $ tot.time : num [1:3] 1e+07 1e+07 1e+07
#> $ rel.signal : num 0.942
#> - attr(*, "class")= chr [1:2] "instr_settings" "list"
#> NULL
