Skip to contents

Model and serial number are retrieved from the file header, the remaining unknown parameter values are set to NA. These values are used to set the "inst.desc" atrribute of x.

Usage

set_oo_ssdata_descriptor(
  x,
  file.header = comment(x),
  descriptor = photobiology::getInstrDesc(x),
  action = "merge"
)

Arguments

x

generic_spct, although with defaults only raw_spct.

file.header

character string The header of the file output by SpectraSuite.

descriptor

list An already built instrument descriptor, to be used as basis when action == "merge" or action == "keep". Defaults, to that stored in x.

action

character A flag indicating if an existing instrument descriptor in x should be overwritten, merged or kept as is if present.

Value

A copy of x with updated attributes.