lfkit.corrections.filters#

Filter / response mapping utilities.

LFKit uses a survey-oriented way to specify photometric bands:

(filterset, band)

Examples

(“sdss”, “r”) (“hsc”, “i”) (“decam”, “r”) (“bessell”, “V”)

Internally, kcorrect does not work with survey names. Instead it expects response curve identifiers, which correspond to filter throughput files distributed with the package.

This module provides a lightweight mapping between the LFKit public notation

(filterset, band)

and the corresponding kcorrect response names. The mapping can also be extended or overridden to support custom filter curves.

Functions

list_supported([response_map])

Return the set of supported bands grouped by filterset.

make_response_map(*[, base, extra])

Create a response mapping dictionary.

normalize_band(band)

Normalize a band label.

normalize_filterset(filterset)

Return the canonical LFKit representation of a filterset name.

resolve_response_name(*, filterset, band[, ...])

Resolve a survey band to a kcorrect response identifier.

validate_coverage(*, filterset, bands[, ...])

Check that a set of bands exists in the response mapping.