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.
1 2 3 4 5
a generic_spct object
a character vector with the names of the fields to keep, or if first member is '"-"', the names of fields to delete; "*" as first member of the vector makes the function a no-op, leaving the spectrum object unaltered.
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.
Other measurement metadata functions:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.