kk_n_from_k_wavelength_um#
- exo_skryer.kk_schemes.kk_n_from_k_wavelength_um(wl_um: Array, k_wl: Array, wl_ref_um: Array, n_ref: Array, cache: KKGridCache | None = None) Array[source]#
Compute
n(λ)fromk(λ)via KK, using wavelength inputs in microns.This convenience wrapper converts wavelength to wavenumber via
ν[cm⁻¹] = 10⁴ / λ[μm], runskk_n_from_k_wavenumber_fast()in wavenumber space, and returnsnon the original wavelength ordering.- Parameters:
- wl_um
ndarray, shape (N,) Wavelength grid in microns.
- k_wl
ndarray, shape (N,) Extinction coefficient on the wavelength grid (clipped to be non-negative).
- wl_ref_um
ndarray Reference wavelength in microns used to define
nu_ref.- n_ref
ndarray Real refractive index at
wl_ref_um.- cache
KKGridCache, optional Precomputed grid quantities for the wavenumber grid. If
None, the cache is obtained viaregistry_cloud.get_or_create_kk_cache(nu).
- wl_um
- Returns:
- n_wl
ndarray, shape (N,) Real refractive index on the wavelength grid.
- n_wl