calc_opacity_from_lookup

pyarts.plots.arts_lookup.calc_opacity_from_lookup(lookup, z=None, g=9.80665, r=287.0570048852906, tpert=0)[source]

Calculate the opacity from an ARTS lookup table.

Parameters:
  • lookup (pyarts.arts.GasAbsLookup) – ARTS lookup table.

  • z (ndarray, optional) – Altitude profile. If not given, the layer thicknesses are calculated based on the hypsometric formula.

  • g (float, optional) – Gravity constant. Default uses Earth’s gravity.

  • r (float, optional) – Gas constant for dry air. Default uses constant for Earth.

  • tpert (int, optional) – Index of temperature perturbation to plot.

Returns:

Opacity per species in lookup table.

Return type:

ndarray