Ir calibration

Modified the IR calibration routine