Calibrates data

Assumes json file contains calibration data