Function to trim the "instr.desc" attribute of an existing generic_spct object, discarding all fields except for `spectrometer.name`, `spectrometer.sn`, `bench.grating`, `bench.slit`, and calibration name.
Usage
trimInstrDesc(
x,
fields = c("time", "spectrometer.name", "spectrometer.sn", "bench.grating",
"bench.slit", "entrance.optics")
)
Note
This function alters x itself by reference and in addition returns x invisibly. If x is not a generic_spct object, x is not modified.
See also
Other measurement metadata functions:
add_attr2tb()
,
getFilterProperties()
,
getHowMeasured()
,
getInstrDesc()
,
getInstrSettings()
,
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()
,
trimInstrSettings()