calibration for on the fly spectrum