Function specsyn::findAfeValues
Defined in File SpecsynUtils.hpp
Function Documentation
-
auto specsyn::findAfeValues(const std::string &spectraName, double cfe = defaultCFe, double microTurb = defaultMicroTurb, double r = defaultR, const std::string ®istryName = defaultRegistry) -> std::vector<double>
Return all [alpha/Fe] values present in a spectral library.
Used by SpecsynLibNoWind when the requested afe value has no exact match: calling this first reveals what afe values are available, from which the two bracketing values can be identified for interpolation.
- Parameters:
spectraName – Name of the spectral model
cfe – Value of [C/Fe] (used to filter groups, matching findMatchingSpectra)
microTurb – Microturbulent velocity in km/s (same filtering)
r – Spectral resolution (same filtering)
registryName – Name of the spectral library registry file
- Returns:
Distinct afe values found on groups that match cfe, microTurb, and r (with a missing attribute treated as a wildcard, exactly as in findMatchingSpectra), sorted ascending. Returns an empty vector if no group in the file carries an afe attribute at all (e.g. TLUSTY).