bioniumx.molecules.get_template

bioniumx.molecules.get_template(molecule: str, resolving_power: float = 100)[source]

Get a theoretical transmission/emission template for a molecule.

This function uses the RADIS library to query the Harvard HITRAN database in real-time, computing the Voigt-broadened high-resolution cross section at typical exoplanetary conditions (T=1000K).

Parameters:
  • molecule (str) – The chemical formula (e.g., ‘H2O’, ‘CH4’, ‘CO2’).

  • resolving_power (float, optional) – The spectral resolving power R = λ/Δλ of the requested template. Default 100.

Returns:

  • wavelength (np.ndarray) – Template wavelength grid (microns).

  • depth (np.ndarray) – Template absorbance cross-section.

Raises:

ValueError – If the molecule is not in the catalog.