breidablik.interpolate.rew ========================== .. py:module:: breidablik.interpolate.rew Attributes ---------- .. autoapisummary:: breidablik.interpolate.rew._base_path Classes ------- .. autoapisummary:: breidablik.interpolate.rew.Rew Module Contents --------------- .. py:data:: _base_path .. py:class:: 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. .. py:attribute:: dim .. py:attribute:: model_path_610 .. py:attribute:: scalar_path_610 .. py:attribute:: model_path_810 .. py:attribute:: scalar_path_810 .. py:attribute:: scalar .. py:attribute:: scalar_610 .. py:attribute:: scalar_810 .. py:attribute:: models .. py:attribute:: scalars .. py:method:: find_abund(eff_t, surf_g, met, rew, center=670.9659) Find the abundance based on the stellar parameters and measured reduced equivalent width. :param rew: The reduced equivalent width for the lithium line at 670.9 nm. :type rew: Real :param eff_t: The effective temperature of the star. :type eff_t: Real :param surf_g: The log surface gravity of the star. :type surf_g: Real :param met: The metallicity of the star. :type met: Real :param center: 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. :type center: Real, optional :returns: **predcited_li** -- The predicted lithium abundance. :rtype: float .. py:method:: _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.