extract_calibration_info function

Internal function to extract calibration info from data.