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:
nundarray, shape (N,)

Wavenumber grid (strictly increasing), e.g. cm⁻¹.

k_nundarray, shape (N,)

Extinction coefficient on the wavenumber grid (clipped to be non-negative).

nu_refndarray

Reference wavenumber used to anchor the subtraction term.

n_refndarray

Real refractive index at nu_ref.

cacheKKGridCache, optional

Precomputed grid quantities for this nu grid. If None, the cache is obtained via registry_cloud.get_or_create_kk_cache(nu).

Returns:
n_nundarray, shape (N,)

Real refractive index on the wavenumber grid.