breidablik.interpolate.nlte

Attributes

_base_path

Classes

Nlte

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.nlte._base_path
class breidablik.interpolate.nlte.Nlte(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.

model_path
scalar_path
model_path_610
scalar_path_610
model_path_810
scalar_path_810
scalar
scalar_610
scalar_810
models
scalars
nlte_correction(eff_t, surf_g, met, abundance, 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.

  • abundance (Real) – The 1D LTE abundance.

  • 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 correction on the lithium abundance.

Return type:

float

_nlte_correction(eff_t, surf_g, met, abunds, center=670.9659)

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