Measurement and analysis of line shape of molecular samples using near infra red diode laser spectrometer