Spectrometers commonly output data in the binary SPC format [27]. The SPC format is complex as it can store X-Y measurements in a variety of different ways. For example, if the X-values are equally spaced, the data can be compressed by storing the initial X-value, the increment between X-values and all the Y-values. The precise structure of the data in an SPC format file is defined in a header block: based on the information this contains, the application can interpret the data stored in the rest of the file.