TL;DR: HITRAN offers a Python API called Hapi which gives the possibility to fetch spectral data from the database directly, and convert it into absorbance spectra within tens of line of code. It is useful and quite user-friendly.
Disclaimer: I am no expert in infrared spectroscopy or molecular energetic transition. The following answer is mainly an attempt at explaining what I understood from online reads and discussions with other scientists. I tried to justify my allegations with appropriate citations but do not hesitate to correct me in the comment if I misinterpreted / misreported something.
Line Broadening Phenomenon
The absorption of electromagnetic radiations is caused by the presence of resonance modes in the structures of chemical species (atoms or molecules)[1]. In theory, if we take a single atom or molecule at very low pressure and temperature, these resonance modes appears at very specific frequencies (or wavelengths) causing very sharp lines in their absorption spectra.
However, when the molecules or atoms are in the presence of other species, collisions can occur between an excited molecule and its surrounding, interfering with the absorption process and broadening the shape of the lines[2]. Conceptually, it is as if the original spectral linesโwhich can be seen as Dirac impulsionsโwere convolved by a line-broadening profile, as depicted below.
Convolution of two spectral lines by a broadening function of profile f(x). Image source.
This broadening profile can be modelled using three different functions, depending on the broadening effects taken into account[3, 4]:
- Lorentz profile, used to characterize pressure broadening i.e. the interactions with other molecules. The higher the total pressure, the more Lorentzian broadening.
- Doppler, or Gaussian profile, defined in the absence of collision effects. It accounts merely for the effect of temperature (the molecules are moving towards and away from the observer, hence the Doppler shift.
- Voigt profile, which combines the two above.
Link With the HITRAN Values
For a given spectral line in the HITRAN database, which is characterised by:
- its amplitude $S$, given in $cm^{-1}/(molecule\cdot cm^{-2})$
- its wavenumber $\nu$, given in $cm^{-1}$
The contribution to the overall absorbance of the gas of a single spectral line, itself corresponding to a resonance mode $t$ (of resonnance wavenumber $\nu_t$), observed at a given wavenumber $\nu$, can be computed as $\tau$ (dimensionless optical depth of the sample)[5]:
$\tau = u \cdot S \cdot f$
with:
- $u = \mathcal{N} \cdot l$ with $\mathcal{N}$ in $molecule/m^3$, $l$ in $m$, the density of absorbing molecules per unit path length ($molecule/m^2$)
- $S$ the line intensity as given by the HITRAN database
- $f = f(\nu,\nu_t,T,p)$, the normalized line shape function
$f$ can be computed as:
\begin{equation}
f(\nu,\nu_t,T,p) = \frac{1}{\pi}\cdot \frac{\gamma(p,T)}{\gamma(p,T)^2 + [\nu - (\nu_t + \delta(p_{ref})\cdot p]^2}
\end{equation}
Wherein:
- $p$ is the pressure (atm)
- $T$ the temperature (K)
- $\gamma$ the pressure broadened line half-width ($cm^{-1}$)
- $\delta$ the pressure shift ($cm^{-1}.atm^{-1}$)
With appropriate calculation formulae for $\gamma$ and $\delta$ also given in [5] (equations A12-A16). Here we can see that to obtain the full absorption spectra of a given gas, we must add the contribution of the absorbance of all the spectral lines broadened by the above presented function, modelled by f. In other words, the optical depth at a given wavelength can be expressed as:
\begin{equation}
\tau(\nu) = u \cdot \sum_{t} S_t \cdot f(\nu,\nu_t,T,p)
\end{equation}
Although such computations could be done by hand, HITRAN luckily developed a Python package called Hapi, which makes such calculations automatically (see below for an example with $CO_2$).
$CO_2$ absorption spectrum using the Hapi interface. In blue are the raw transition lines, while in red is the broadened absorption spectum using Lorentzian coefficients computed for a dilution in air.
WARNING: be sure tu use the Hapi functions appropriately. In particular, the broadening of the spectral lines changes with temperature, total pressure, but also with the nature of the dilution medium at hand. In other words, 5% $CO_2$ in air will not have the same absorption spectra as 5% $CO_2$ in argon or hydrogen, for instance.
References
- Donald A. Burns, Emil W. Ciurczak, Handbook of Near-Infrared Analysis, 2007. ISBN: 9780849373930.
- Wikipedia, Spectral Line: Line Broadening and Shift, Archive 20/09/2021
- Irina N. Sokolik, Basics of gaseous absorption/emission and line shapes, EAS 8803, Study notes for Environmental Science, Link
- Wikipedia, Spectral Line Shape, Archive 20/09/2021
- Rothman et al., THE HITRAN MOLECULAR SPECTROSCOPIC DATABASE AND HAWKS (HITRAN ATMOSPHERIC WORKSTATION): 1996 EDITION, p.46, 1998, DOI: S0022-4073(98)00078-8