Principles and Practice of Spectroscopic Calibration