lookup_param

beast.tools.compare_spec_type.lookup_param(input_function, spec_type, spec_subtype, lumin_class)[source]

For given spectral classification, evaluate a function to find the physical parameter (e.g., T_eff, log(g))

Note: the item() at the end is because it would otherwise return, e.g., array(99.9) instead of 99.9.

Parameters:
input_functionRegularGridInterpolator object

function to interpolate across a table

spec_typestring

spectral type for the star (O/B/A/F/G/K/M)

spec_subtypefloat

spectral subtype for the star (e.g., 7 for a B7 star, or 3.5 for a G3.5 star)

lumin_classstring

luminosity class for the star (I/II/III/IV/V)

Returns:
function_valuefloat

the physical parameter for the star