rizer.io.minplascalc.nist_parsers#

Downloads the couple (J, Level[eV]) from the [NIST_ASD] lebels data.

J is the total angular momentum number. Level is the energy level in electron volts.

Inspired from exoclime/HELIOS-K

Attributes#

Z

Functions#

get_nist_energy_levels(→ list[tuple[float, float]])

Get the angular momentum and energy levels for a given atom and ionization state.

get_nist_spectral_lines(→ list[tuple[float, float, float]])

Get the spectral lines for a given atom and ionization state.

Module Contents#

rizer.io.minplascalc.nist_parsers.get_nist_energy_levels(atom_symbol: str, ionization_state: str) list[tuple[float, float]]#

Get the angular momentum and energy levels for a given atom and ionization state.

Parameters:
  • atom_symbol (str) – Atomic symbol, e.g. ‘O’ for oxygen.

  • ionization_state (str) – Ionization state, as a roman string, e.g. ‘I’ for neutral, ‘II’ for singly ionized, etc.

Returns:

A list of tuples, each containing the angular momentum number J and the energy level, in \(\text{J}\).

Return type:

list of tuple of float

Raises:

ValueError – If the request to the NIST Atomic Spectra Database fails, or if the input is incorrect.

rizer.io.minplascalc.nist_parsers.get_nist_spectral_lines(atom_symbol: str, ionization_state: str) list[tuple[float, float, float]]#

Get the spectral lines for a given atom and ionization state.

Lines included are the observed one, as well as those of Ritz.

Parameters:
  • atom_symbol (str) – Atomic symbol, e.g. ‘O’ for oxygen.

  • ionization_state (str) – Ionization state, as a roman string, e.g. ‘I’ for neutral, ‘II’ for singly ionized, etc.

Returns:

A list of tuples, each containing:

  • the wavelength \(\lambda\), in \(\text{m}\),

  • the transition strength \(g_k A_{ki}\), in \(\text{Hz}\), and

  • the line energy \(E_k\), in \(J\).

Return type:

list of tuple of float

Raises:

ValueError – If the request to the NIST Atomic Spectra Database fails, or if the input is incorrect.

Notes

See https://physics.nist.gov/PhysRefData/ASD/Html/lineshelp.html#LINES_INCLUDE_RITZ

rizer.io.minplascalc.nist_parsers.Z = 'O'#