skyscapes.physical_model.exojax.components.absorption#
Absorption opacity components.
Absorption iterates over the atmosphere’s MolecularSpecies
tuple and sums per-molecule line-list / cross-section contributions.
Each species owns its own opa engine and altitude-resolved mmr profile;
this component is a thin orchestrator with no per-molecule state of
its own.
Classes#
Sum of per-species line-list / cross-section absorption. |
|
Absorption with per-species |
Module Contents#
- class skyscapes.physical_model.exojax.components.absorption.Absorption[source]#
Bases:
skyscapes.physical_model.exojax.components.base.AbstractAbsorptionSum of per-species line-list / cross-section absorption.
Iterates over the species tuple, skipping any with
opa is None(e.g. a species included purely for its Rayleigh contribution).- compute(species, Tarr, pressure, gravity, rt_engine)[source]#
Sum per-species absorption optical depth.
- Parameters:
species (tuple[skyscapes.physical_model.exojax.components.species.MolecularSpecies, Ellipsis])
Tarr (jaxtyping.Array)
pressure (jaxtyping.Array)
gravity (jaxtyping.Array)
- Return type:
skyscapes.physical_model.exojax.components.base.Contribution
- class skyscapes.physical_model.exojax.components.absorption.PrecomputedAbsorption[source]#
Bases:
skyscapes.physical_model.exojax.components.base.AbstractAbsorptionAbsorption with per-species
xsmatrixprecomputed at a fixed TP.Drop-in for
Absorptionfor retrievals: holds each absorbing species’ cross-section matrix (computed once viaopa.xsmatrixat the fixed temperature-pressure structure) and applies only the live mmr scaling. The spectrum is therefore differentiable in abundance but INERT IN TEMPERATURE – the storedxsmatrixbakesTarr, sotp_profileleaves no longer change the output. To fit temperature, use the full recompute path (from_default_setup) instead. Build viaExoJaxPhysicalModel.for_retrieval.xsmatrix_per_speciescorresponds, in order, to the species withopa is not None(the same onesAbsorptionwould sum over).- compute(species, Tarr, pressure, gravity, rt_engine)[source]#
Sum per-species absorption from the stored cross-sections.
- Parameters:
species (tuple[skyscapes.physical_model.exojax.components.species.MolecularSpecies, Ellipsis])
Tarr (jaxtyping.Array)
pressure (jaxtyping.Array)
gravity (jaxtyping.Array)
- Return type:
skyscapes.physical_model.exojax.components.base.Contribution