kinextract.read_galaxy_index_flux_err
- kinextract.read_galaxy_index_flux_err(path: str) tuple[ndarray, ndarray, ndarray][source]
Read a raw 3-column galaxy spectrum file.
- Parameters:
path (str) – Path to a whitespace-delimited text file with at least 3 columns: pixel index or wavelength, flux, and flux error (or variance).
- Returns:
col0 (ndarray) – First column: pixel index or wavelength, depending on file convention (converted to a wavelength grid downstream via build_wavelength_from_index when it is a pixel index).
flux (ndarray) – Second column: observed flux.
flux_err (ndarray) – Third column: flux error or variance, depending on file convention.