stam.run.get_param
- stam.run.get_param(bp_rp, bp_rp_error, mg, mg_error, tracks, param='mass', suffix=None, is_save=True, log=None, output_type='csv', output_path='.', csv_format='%.8f', n_realizations=10, interp_fun='rbf', binary_polygon=None, **kwargs)[source]
- get_param(bp_rp, bp_rp_error, mg, mg_error, tracks, param=”mass”, suffix=None, is_save=True, log=None,
output_type=”csv”, output_path=”.”, csv_format=”%.8f”, n_realizations=10, interp_fun=”rbf”, binary_polygon=None, **kwargs)
Write config file.
- Parameters:
bp_rp (array_like) – Gaia Gbp-Grp color.
bp_rp_error (array_like) – Gaia Gbp-Grp color uncertainty (same size as bp_rp).
mg (array_like) – Gaia G-band absolute magnitude (same size as bp_rp).
mg_error (array_like) – Gaia G-band absolute magnitude uncertainty (same size as bp_rp).
tracks (Table) – Stellar-track grid, as retrieved by stam.gentracks.get_isomasses or stam.gentracks.get_combined_isomasses.
param (str, optional) – The parameter to evaluate (options: “mass”, “age”, “mh”; default: “mass”).
suffix (str, optional) – Output file name suffix (default: None).
is_save (bool, optional) – Save results to file? (default: True).
log (Logger, optional) – Logger object (default: None).
output_type (str, optional) – Output type (npy, csv; default: “csv”).
output_path (str, optional) – Result file destination path (default: “”).
csv_format (str, optional) – CSV format (default: “%.8f”).
n_realizations (float, optional) – Number of parameter assignment realizations (default: 10).
interp_fun (str, optional) – Interpolation method (rbf, griddata, nurbs; default: “rbf”).
binary_polygon (Path object, optional) – The polygon defining the equal-mass binary region on the HR-diagram (default: None).
**kwargs – Additional arguments to pass to `stam.assign.assign_param
- Returns:
param_mean (array_like) – Estimated parameter mean for each of stars.
param_error (array_like) – Estimated parameter standard deviation for each of stars.