@jap I think it is the first time addSpectrumData is called that is the issue: the PCF read/write also spits out an empty first SpectrumData object