pyrad.lbl.hitran.spectral_lines module¶
-
class
pyrad.lbl.hitran.spectral_lines.SpectralLines(database, total_partition_function)[source]¶ Bases:
objectHitran spectral line parameters for a molecule.
-
delta¶ Numpy array of air-broadended pressure shifts [cm-1 atm-1] (lines).
-
en¶ Numpy array of transition lower state energies [cm-1] (lines).
-
gamma_air¶ Numpy array of air-broadened halfwidths [cm-1 atm-1] (lines).
-
gamma_self¶ Numpy array of self-broadened halfwidths [cm-1 atm-1] (lines).
-
id¶ HITRAN molecule id.
-
iso¶ Numpy array of HITRAN isotopologue ids (lines).
-
mass¶ Numpy array of isotopologue masses [g] (lines).
-
n¶ Numpy array of air-broadened temperature dependence powers (lines).
-
s¶ Numpy array of line strengths [cm] (lines).
-
q¶ TotalPartitionFunction object.
-
v¶ Numpy array of transition wavenumbers [cm-1] (lines).
-
absorption_coefficient(temperature, pressure, partial_pressure, wavenumber, cut_off=25.0)[source]¶ Calculates the absorption coefficient.
- Parameters
temperature – Temperature [K].
pressure – Pressure [atm].
partial_pressure – Partial pressure [atm].
wavenumber – Numpy array of wavenumbers [cm-1] (wavenumber).
cut_off – Distance [cm-1] from the transition frequency where the line is cut off.
- Returns
Numpy array of absorption coefficients [cm2] (wavenumber).
-
correct_line_strengths(temperature)[source]¶ Temperature-corrects the line strengths.
- Parameters
temperature – Temperature [K].
- Returns
Numpy array of corrected line strengths [cm] (lines).
-
pressure_shift_transition_wavenumbers(pressure)[source]¶ Pressure-shifts transition wavenumbers.
- Parameters
pressure – Pressure [atm].
- Returns
Numpy array of pressure-shifted transition wavenumbers [cm-1] (lines).
-
static
temperature_correct_line_strength(q, t, iso, en, v)[source]¶ Temperature-corrects a line strength. :param q: TotalPartitionFunction object. :param t: Temperature [K]. :param iso: HITRAN isotopologue id. :param en: Transition lower state energy [cm-1]. :param v: Transition wavenumber [cm-1].
- Returns
Temperature correction factor.
-