kappa

kappa

frei.kappa(opacities, temperature, pressure, lam, m_bar=<Quantity 4.01429262e-27 kg>)[source]

Return the opacity at a given temperature and pressure.

Parameters
  • opacities (dict) – Opacity dictionary of xarray.DataArray’s

  • temperature (Quantity) – Temperature value

  • pressure (Quantity) – Pressure value

  • lam (Quantity) – Wavelength bin centers

  • m_bar (Quantity) – Mean molecular weight

Returns

  • k (~astropy.units.Quantity) – Sum of opacities over all species

  • sigma_scattering (~astropy.units.Quantity) – Scattering cross section