compute_ck_opacity_perspecies#

exo_skryer.opacity_ck.compute_ck_opacity_perspecies(state: Dict[str, Array], opac: Dict[str, Array], params: Dict[str, Array]) tuple[Array, Array][source]#

Compute per-species correlated-k opacities WITHOUT mixing.

This function is used with the transmission multiplication random overlap method (ck_mix: trans), where species mixing happens during the RT calculation rather than at the opacity computation stage.

Parameters:
statedict[str, ndarray]

Atmospheric state dictionary containing:

  • p_layndarray, shape (nlay,)

    Layer pressures in dyne cm⁻².

  • T_layndarray, shape (nlay,)

    Layer temperatures in Kelvin.

  • mu_layndarray, shape (nlay,)

    Mean molecular weight per layer in amu.

  • vmr_laydict[str, ndarray]

    Volume mixing ratios for each species.

  • wlndarray, shape (nwl,)

    Wavelength grid in microns.

paramsdict[str, ndarray]

Parameter dictionary (unused; kept for API compatibility).

Returns:
sigma_perspeciesndarray, shape (n_species, nlay, nwl, ng)

Per-species mass opacities in cm² g⁻¹. Note: these are NOT yet weighted by VMR - that happens in the RT calculation.

vmr_perspeciesndarray, shape (n_species, nlay)

Volume mixing ratios for each species at each layer.