phaseCalibrator function

Generates an SPD for each phase in a dataset