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(λ) from k(λ) via KK, using wavelength inputs in microns.

This convenience wrapper converts wavelength to wavenumber via ν[cm⁻¹] = 10⁴ / λ[μm], runs kk_n_from_k_wavenumber_fast() in wavenumber space, and returns n on the original wavelength ordering.

Parameters:
wl_umndarray, shape (N,)

Wavelength grid in microns.

k_wlndarray, shape (N,)

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

wl_ref_umndarray

Reference wavelength in microns used to define nu_ref.

n_refndarray

Real refractive index at wl_ref_um.

cacheKKGridCache, optional

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

Returns:
n_wlndarray, shape (N,)

Real refractive index on the wavelength grid.