CCD calibration for very accurate variations