Calibration, drift elimination, and molecular structure analysis