Closed aphalo closed 6 months ago
Editted autoplot() methods so that object.label gets set to the correct value for collections of spectra and correctly passed to autotitle().
Updated autotitle() to support the attributes that can be easily supported. Other attributes are tougher to handle. when.measured could be converted to a range. where.measured could be supported if the same geocode is attached to all spectra. how.measured could be supported if unique accross all spectra. For the time being I will put this additional nicieties on hold.
Updated now to support all the attributes, at least when possible, i.e., after calling unique()
or range()
.
Brief description of the problem
autotitle()
andautoplot()
cannot handle the attribute values returned byspct
objects containing multiple spectra in long form, as they are lists of the usual values, with one member per spectrum. There is no easy way to solve this, as pasting them would make titles too long. Currentlyautotitle()
returnsNULL
with a warning which is o.k., but not ideal.