lfkit.corrections.kcorrect_grids#
kcorrect k(z) grid generation and interpolation utilities.
This module builds tables of k(z) values for one or more anchors on a specified redshift grid and provides helpers to interpolate those tables.
An anchor is simply a label associated with a vector of kcorrect template coefficients. Each coefficient vector represents a particular template mixture and therefore defines a specific spectral energy distribution. Evaluating kcorrect with those coefficients produces the corresponding k(z) curve for a given set of filter responses.
The main purpose of this module is to turn a small set of anchors into reusable k(z) grids that can be cached and quickly interpolated during analysis. The resulting tables store k(z) as a function of redshift for each anchor and response band, allowing fast lookup without repeatedly calling the kcorrect solver.
Anchors intentionally carry no semantic meaning here. They are not interpreted as galaxy types or populations; they are simply convenient labels for different template mixtures used to generate k(z) curves.
Functions
|
Build a packaged k(z) grid for a set of anchors. |
|
Compute k(z) values on a redshift grid for each anchor. |
|
Create interpolation functions for k(z). |