breidablik.interpolate.rew

Attributes

_base_path

Classes

Rew

Interpolation class for REW. Used to interpolate between the stellar parameters. Can find the abundance given the REW and stellar parameters.

Module Contents

breidablik.interpolate.rew._base_path
class breidablik.interpolate.rew.Rew(dim=3, model_path=None, scalar_path=None, model_path_610=None, scalar_path_610=None, model_path_810=None, scalar_path_810=None)

Interpolation class for REW. Used to interpolate between the stellar parameters. Can find the abundance given the REW and stellar parameters.

dim
model_path_610
scalar_path_610
model_path_810
scalar_path_810
scalar
scalar_610
scalar_810
models
scalars
find_abund(eff_t, surf_g, met, rew, center=670.9659)

Find the abundance based on the stellar parameters and measured reduced equivalent width.

Parameters:
  • rew (Real) – The reduced equivalent width for the lithium line at 670.9 nm.

  • eff_t (Real) – The effective temperature of the star.

  • surf_g (Real) – The log surface gravity of the star.

  • met (Real) – The metallicity of the star.

  • center (Real, optional) – The center of the lithium line that the input rew corresponds to, in angstroms. The 3 lithium lines are centered at 610.5298, 670.9659, and 812.8606 nm in the Balder results. The input center value will snap to the closest value out of those 3.

Returns:

predcited_li – The predicted lithium abundance.

Return type:

float

_find_abund(eff_t, surf_g, met, rew, ind=1)

Same as find_abund_rew, hidden version without grid checks so extra warnings aren’t thrown. This version can be used to quickly process many rew values.