kk_n_from_k_wavenumber_fast#
- exo_skryer.kk_schemes.kk_n_from_k_wavenumber_fast(nu: Array, k_nu: Array, nu_ref: Array, n_ref: Array, cache: KKGridCache | None = None) Array[source]#
Optimized KK relation using precomputed grid quantities.
- Parameters:
- nu
ndarray, shape (N,) Wavenumber grid (strictly increasing), e.g. cm⁻¹.
- k_nu
ndarray, shape (N,) Extinction coefficient on the wavenumber grid (clipped to be non-negative).
- nu_ref
ndarray Reference wavenumber used to anchor the subtraction term.
- n_ref
ndarray Real refractive index at
nu_ref.- cache
KKGridCache, optional Precomputed grid quantities for this
nugrid. IfNone, the cache is obtained viaregistry_cloud.get_or_create_kk_cache(nu).
- nu
- Returns:
- n_nu
ndarray, shape (N,) Real refractive index on the wavenumber grid.
- n_nu