Isochrones#
- class asteca.Isochrones(model: str, isochs_path: str, magnitude: 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_interp: int = 2000, parsec_rm_stage_9: bool = True, 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
magnitude (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
colorparameter, defaults toNonemagnitude_effl (float | None) – Effective lambda (in Angstrom) for the magnitude filter, defaults to
Nonecolor_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 defined, defaults toNonez_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()method, defaults toNoneN_interp (int) – Number of interpolation points used to ensure that all isochrones are the same shape, defaults to
2000parsec_rm_stage_9 (bool) – If the isochrones are PARSEC, this argument set to
Truewill remove the post_AGB stage (label=9) which are still “in preparation”, defaults toTruecolumn_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 files, defaults toNoneverbose (int) – Verbose level. A value of
0hides all output, defaults to1
- Raises:
ValueError – If any of the attributes is not recognized as a valid option, or there are missing required attributes