From grimoire
Derives luminosity, temperature, radius, mass, and age from stellar observations using distance modulus, extinction correction, Stefan-Boltzmann law, color-temperature relations, and HR diagram.
How this skill is triggered — by the user, by Claude, or both
Slash command
/grimoire:calculate-stellar-propertiesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Derive fundamental stellar properties — luminosity, temperature, radius, mass, and evolutionary stage — from photometric and spectroscopic observations using the distance modulus, Stefan-Boltzmann law, color-temperature relations, and stellar evolution isochrones.
Derive fundamental stellar properties — luminosity, temperature, radius, mass, and evolutionary stage — from photometric and spectroscopic observations using the distance modulus, Stefan-Boltzmann law, color-temperature relations, and stellar evolution isochrones.
Adopted by: Gaia space mission provides parallax-based distances (and thus luminosities) for 1.7 billion stars to µas precision. SDSS, 2MASS, and Gaia photometric systems are the standard photometric frameworks used in all modern stellar surveys. ESA's Gaia archive and MAST (Mikulski Archive for Space Telescopes) provide access to standardized stellar parameters for published catalogs. Impact: Carroll & Ostlie (2007) demonstrate that deriving stellar properties from observations requires a systematic chain: parallax → distance → absolute magnitude → luminosity → temperature (from color/spectrum) → radius (from L and T) → mass (from mass-luminosity relation or binary orbit). Breaking this chain at any step — e.g., assuming distance without parallax, or using uncorrected apparent magnitudes — produces luminosity errors that scale as d² and radius errors that scale as d. Gaia parallaxes have reduced stellar distance uncertainties by 1-2 orders of magnitude for nearby stars compared to pre-Gaia estimates.
From parallax (most accurate for d < 3 kpc):
d (parsecs) = 1 / π (arcseconds)
Where π is the trigonometric parallax in arcseconds.
Gaia DR3 parallaxes: query VizieR or Gaia Archive; apply zero-point correction (−0.017 mas for Gaia EDR3).
Distance modulus:
m − M = 5 log₁₀(d/10 pc) = 5 log₁₀(d) − 5
Where m = apparent magnitude, M = absolute magnitude, d = distance in parsecs.
Example: Vega has parallax 130.23 mas → d = 7.68 pc → m−M = −1.78 mag (Vega is closer than 10 pc, so M > m).
Interstellar dust reddens and dims starlight:
M = m − (m−M) − A_v
Where A_v = visual extinction in magnitudes.
Extinction estimates:
Extinction affects colors: (B−V)₀ = (B−V)_observed − E(B−V); use intrinsic colors to derive E(B−V) if spectral type is known.
Solar luminosity as reference (M_⊙,V = 4.83 in V band; L_⊙ = 3.828 × 10²⁶ W):
L/L_⊙ = 10^((M_⊙,bol − M_bol)/2.5)
M_bol = M_v + BC (bolometric correction BC depends on spectral type)
BC values (Pecaut & Mamajek 2013, standard reference):
For luminosity in watts: L = L_⊙ × (L/L_⊙), L_⊙ = 3.828 × 10²⁶ W.
From spectral type / color index: Use Pecaut & Mamajek (2013) table (available at www.pas.rochester.edu/~emamajek/EEM_dwarf_UBVIJHK_colors_Teff.txt):
From spectroscopic classification: Teff from equivalent width analysis of temperature-sensitive lines (H lines, ionization ratios); reported directly in spectroscopic catalogs (LAMOST, APOGEE, GALAH).
From SED fitting: Fit a Planck function or model atmosphere SED to broadband photometry (UV to IR); output Teff, log g, [Fe/H].
L = 4π R² σ T_eff⁴
R/R_⊙ = √(L/L_⊙) × (T_⊙/T_eff)²
T_⊙ = 5778 K; R_⊙ = 6.957 × 10⁸ m
Example: star with L = 100 L_⊙ and T_eff = 8000 K:
R/R_⊙ = √100 × (5778/8000)² = 10 × 0.522 = 5.22 R_⊙
Mass from mass-luminosity relation (main sequence only):
L/L_⊙ ≈ (M/M_⊙)^4 (for 0.1 < M/M_⊙ < 10)
M/M_⊙ ≈ (L/L_⊙)^(1/4)
Mass and age from isochrone fitting: Plot the star on an HR diagram (log L vs log T_eff or color-magnitude diagram); compare to PARSEC, MIST, or Dartmouth stellar evolution isochrones (available via CMD web interface at stev.oapd.inaf.it):
Report age uncertainty: typically ±1-2 Gyr for field solar-type stars from isochrone fitting.
npx claudepluginhub jeffreytse/grimoire --plugin grimoireProvides astropy for astronomical data analysis: coordinate transformations, unit conversions, FITS file I/O, cosmological calculations, time systems, and WCS.
Processes astronomy and astrophysics data with the Astropy Python library — celestial coordinates, physical units, FITS files, cosmological calculations, time systems, tables, and WCS.
Performs astronomical calculations and data analysis with Astropy: coordinate transforms, FITS file I/O, units/quantities, cosmology, time handling, and table operations.