Isochrones#
- class asteca.Isochrones(model: str, isochs_path: str, mag: str, color: tuple, color2: tuple | None = None, magnitude_effl: float | None = None, color_effl: tuple | None = None, color2_effl: tuple | None = None, z_to_FeH: float | None = None, N_points: int = 2000, parsec_rm_stages: float = 9.0, column_names: dict | None = None, verbose: int = 1)#
Bases:
objectDefine an
Isochronesobject.This object contains the loaded theoretical isochrones used by the
Syntheticclass to generate synthetic clusters. See Isochrones module for more details.- Parameters:
model (str) – The model must be one of the supported isochrone services: PARSEC, MIST, or BASTI.
isochs_path (str) – Path to the file or folder that contains the files for the theoretical isochrones
mag (str) – Magnitude’s filter name as defined in the theoretical isochrones. Example for Gaia’s
Gmagnitude:"Gmag"color (tuple) – Tuple containing the filter names that generate the first color defined. The correct format is:
("filter1", "filter2"), wherefilter1andfilter2are the names of the filters that are combined to generate the color. The order is important because the color will be generated as:filter1-filter2. Example for Gaia’s ‘BP-RP’ color:("G_BPmag", "G_RPmag")color2 (tuple | None) – Second color to use in the analysis. Same format as that used by the
colorparametermagnitude_effl (float | None) – Effective lambda (in Angstrom) for the magnitude filter
color_effl (tuple | None) – Effective lambdas for the filters that make up the
colordefined in theIsochronesobject. E.g.:(1111.11, 2222.22)where1111.11and2222.22are the effective lambdas (in Angstrom) for each filter, in the same order ascolor, defaults toNonecolor2_effl (tuple | None) – Same as
color_efflbut for a second (optional) color definedz_to_FeH (float | None) – If
None, the defaultzvalues in the isochrones will be used to generate the synthetic clusters. Iffloat, it must represent the solar metallicity for these isochrones. The metallicity values will then be converted to[FeH]values, to be used by theSynthetic.generate()methodN_points (int) – Number of interpolation points used to ensure that all isochrones are the same shape
parsec_rm_stages (float) – If the isochrones are PARSEC, this value indicates which stages should be removed (all equal or larger than this value). The value is set to
9.0by default which corresponds to the post_AGB stage still “in preparation”column_names (dict | None) – Column names for the initial mass, metallicity, and age for the photometric system’s isochrones files. Example:
{"mass_col": "Mini", "met_col": "Zini", "age_col": "logAge"}. This dictionary is defined internally in ASteCA and should only be given by the user if the isochrone service changes its format and the isochrones class fails to load the filesverbose (int) – Verbose level. A value of
0hides all output
- Raises:
ValueError – If any of the attributes is not recognized as a valid option, or there are missing required attributes