src/core/stellar.js
text
Stellar mass and radius from spectroscopic parameters.
Torres, Andersen & Gimenez (2010, A&ARv 18, 67), eqs. (3)-(4): polynomial
calibration on detached eclipsing binaries,
log M = a1 + a2 X + a3 X^2 + a4 X^3 + a5 (log g)^2 + a6 (log g)^3 + a7 [Fe/H]
log R = b1 + b2 X + ... X = log Teff - 4.1
Scatter 0.027 dex in log M (6.4%) and 0.014 dex in log R (3.2%). Calibrated on
stars above 0.6 Msun; for M dwarfs it is an extrapolation and is flagged as such.Import: import { … } from './src/core/stellar.js' — no DOM, runs in Node and the browser.
TORRES_SCATTER
js
const TORRES_SCATTERNo description in the source.
torres
js
function torres(teff, logg, feh = 0)No description in the source.
estimateMassRadius
js
function estimateMassRadius({ teff, teffErr = 0, logg, loggErr = 0, feh = 0, fehErr = 0 })Estimate with uncertainties: the input errors are propagated numerically and the calibration's own scatter is added in quadrature.