The function converts an array of PHA values into a common PI scale, by accounting for gain of the current CCD readout node. The second extension of the ADUconv file contains offset and gain coefficient values that allow the PI channels to be calculated in terms of approximate eV, according to
PI = a + b*PHA + c*PHA*PHA