Calibration of length gauges