Calculation of the absorption spectrum from an ATR infrared experiment