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:
object
Define an
Isochrones
object.This object contains the loaded theoretical isochrones used by the
Synthetic
class 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
G
magnitude:"Gmag"
color (tuple) – Tuple containing the filter names that generate the first color defined. The correct format is:
("filter1", "filter2")
, wherefilter1
andfilter2
are 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
color
parameter, defaults toNone
magnitude_effl (float | None) – Effective lambda (in Angstrom) for the magnitude filter, defaults to
None
color_effl (tuple | None) – Effective lambdas for the filters that make up the
color
defined in theIsochrones
object. E.g.:(1111.11, 2222.22)
where1111.11
and2222.22
are the effective lambdas (in Angstrom) for each filter, in the same order ascolor
, defaults toNone
color2_effl (tuple | None) – Same as
color_effl
but for a second (optional) color defined, defaults toNone
z_to_FeH (float | None) – If
None
, the defaultz
values 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 toNone
N_interp (int) – Number of interpolation points used to ensure that all isochrones are the same shape, defaults to
2000
parsec_rm_stage_9 (bool) – If the isochrones are PARSEC, this argument set to
True
will remove the post_AGB stage (label=9) which are still “in preparation”, defaults toTrue
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 files, defaults toNone
verbose (int) – Verbose level. A value of
0
hides all output, defaults to1
- Raises:
ValueError – If any of the attributes is not recognized as a valid option, or there are missing required attributes