Signal::TimeValuePair stvp(md->data[idx].time, md->data[idx].value);
values.push_back(stvp);
}
- _s = std::shared_ptr<Signal>(new Signal(eqp, res, samplingRate, yu, md->dad_wavelength_msr, md->dad_wavelength_ref, values));
+ _s = std::shared_ptr<Signal>(new Signal(eqp, res, samplingRate, yu, md->dad_wavelength_msr.wavelength, md->dad_wavelength_msr.interval, md->dad_wavelength_ref.wavelength,
+ md->dad_wavelength_ref.interval, values));
if (!date.isValid()) {
llog->log(Logger::WARNING, ME_SENDER_STR, QString("Date ") + date.toString() + QString("is invalid."));
const QString Signal::MILLIVOLTS_SI("mV");
const QString Signal::WATTS_SI("W");
-Signal::Signal(const Equipment equipment, const Resource resource, const double samplingRate, const YUnit yunit, uint16_t wavelengthAbs, uint16_t wavelengthRef,
- const std::vector<TimeValuePair>& values, QObject* parent) :
+Signal::Signal(const Equipment equipment, const Resource resource, const double samplingRate, const YUnit yunit, uint16_t wavelengthAbs, uint16_t intervalAbs,
+ uint16_t wavelengthRef, uint16_t intervalRef, const std::vector<TimeValuePair>& values, QObject* parent) :
QObject(parent),
m_equipment(equipment),
m_resource(resource),
m_samplingRate(samplingRate),
+ m_spectralIntervalAbs(intervalAbs),
+ m_spectralIntervalRef(intervalRef),
m_values(values),
m_wavelengthAbs(wavelengthAbs),
m_wavelengthRef(wavelengthRef),
};
explicit Signal(const Equipment equipment, const Resource resource, const double samplingRate, const YUnit yunit, const uint16_t wavelengthAbs,
- const uint16_t wavelengthRef, const std::vector<TimeValuePair>& values, QObject* parent = nullptr);
+ const uint16_t intervalAbs, const uint16_t wavelengthRef, const uint16_t intervalRef, const std::vector<TimeValuePair>& values,
+ QObject* parent = nullptr);
uint count() const { return m_values.size(); }
QString descriptiveName() const;
Equipment equipment() const { return m_equipment; }
double m_min;
const Resource m_resource;
const double m_samplingRate;
+ const uint16_t m_spectralIntervalAbs;
+ const uint16_t m_spectralIntervalRef;
const std::vector<TimeValuePair> m_values;
const uint16_t m_wavelengthAbs;
const uint16_t m_wavelengthRef;