Finish factorizing code for calibration. Some calibration coeffs missing.

Signed-off-by: Martin Raspaud <martin.raspaud@smhi.se>