Skip to content

Documentation / @interstellar-tools/constants / STARS

Variable: STARS ​

ts
const STARS: StarsType;

Defined in: bodies/stars.ts:68

Represents a dataset of well-known stars within the Milky Way.

INFO

  • Each star names its parent (a galaxy, a system barycenter, or Sagittarius A* for the S-stars) and its orbit around it.

  • Units: radius (km). Orbits around the galaxy: a and x,y,z in ly, period in Myr. Orbits within a system or around Sagittarius A*: a in au, period in d, yr or kyr. angle in radians. mass in M☉.

  • Orbits within a system or around Sagittarius A* that have an i are on the sky, frame: { plane: 'sky' }: i to the plane of the sky, om the position angle of the node from north through east.

  • color is for visualization only.

  • period is always positive; retrograde orbits have retrograde: true.

  • rotation.period is the rotation, from interferometry, spectroscopy or starspots, where one is published: none for Deneb, Sirius, Rigel and Canopus. The Sun's is the IAU's Carrington period, with its faster equator and slower poles in equatorialPeriod and polarPeriod. A star's spin direction is unknown.

  • The Sun's rotation.iau is the IAU's rotation model (Archinal et al. 2018), turning with the Carrington period.

  • What is measured about the stars isn't carried here, so an app loads only what it shows. It is exported apart, keyed by star id: STAR_PARAMETERS, STAR_ASTROMETRY and HELIOSPHERE, with HELIOSPHERE_DISPLAY to draw the heliosphere. withObservations and withDisplay put them on the stars, as the observations and display.astrosphere described below.

  • observations.spectralClassification is each star's type split into its parts.

  • observations.identifiers, astrometry and apparentMagnitudes are given for every star but the Sun and the S-stars, as SIMBAD has them: the ICRS position at J2000, and the parallax and proper motion from the Hipparcos new reduction (van Leeuwen 2007), or from Gaia DR3 for Sirius B, Proxima Centauri, Barnard's Star and TRAPPIST-1. α Centauri's parallax is Pourbaix et al.'s (1997), and the radial velocities and V magnitudes credit the paper each is from. SIMBAD lists Spica as one star, so Spica A carries the pair's values.

  • observations.effectiveTemperature, luminosity (L☉), logSurfaceGravity and metallicity ([Fe/H]) are from the papers each credits, chosen to agree with the star's mass and radius: with radius, the temperature and luminosity meet L = (R/R☉)² (T/T☉)⁴ within 12 % for every star but the S-stars, whose radii aren't Habibi et al.'s. A luminosity given as log L/L☉ is converted, error bars and all. Vega and Altair spin fast enough to be hotter at their poles, so their temperatures are in gravityDarkening, and their gravities are the pole's. Their radii are equatorial, and no one temperature fits them: their luminosities fall between those from the equator's and the pole's. The Sun's are the IAU's nominal values (Prša et al. 2016). A metallicity is left out where no bulk [Fe/H] is measured, as for Altair, Spica and Sirius A; Deneb's and Rigel's are [M/H]. Deneb's radius is Schiller & Przybilla's 203 R☉, like its mass.

  • The Sun's observations.astrosphere is the heliosphere. Its heliopause is IBEX's map (Reisenfeld et al. 2021): nearest just south of the nose, flaring towards the flanks, and at least 350 au down the tail. Its nose faces upwind, where the interstellar wind comes from, opposite the inflow direction McComas et al. 2015 give. crossings are the Voyagers' termination shock and heliopause crossings, from the papers each credits, with the direction each was in from JPL Horizons; Horizons puts them within 0.03 au of the papers' distances. Whether the heliosphere has a bow shock is disputed, so it has none here. The Sun's display.astrosphere keeps it hidden until a renderer offers to show it.

  • Sources: compiled from public references, mainly NASA, NASA JPL, ESA and Wikipedia. See data sources.

Full list of stars in the dataset ​

This list is not an exhaustive list, and addition/changes will be added over time.

idnametypecategoryparentorbit.aorbit.eorbit.periodorbit.retrogradeorbit.anglerotation.periodrotation.iaumassradiusmu (m³/s²)display.colorxyz
sunSunG2Vstarsolar-system25.379995 dnorth (286.13°, 63.87°)1 M_sun696340 km1.3271244004127942e+20#fff5f1
vegaVegaA0Vstarmilky-way27230.011753394454 ly0.005480 Myr1.5698672051717070.71 d2.135 M_sun1896478 kmblue25.3 ly27230.011753394454 ly0 ly
altairAltairA7Vstarmilky-way27050.005155082687 ly0.004410 Myr1.57017895175993787.766667 h1.791 M_sun1396966 kmwhite16.7 ly27050.005155082687 ly0 ly
denebDenebA2Iastarmilky-way27375.280016832705 ly0.009720 Myr1.47552495859614919 M_sun1412271 km#cad7ff2616 ly27375.280016832705 ly0 ly
spica-aSpica AB1III-IVstarspica0.050727 au0.1334.0145 d2.38992.007 d11.43 M_sun5196879 kmblue
spica-bSpica BB2Vstarspica0.080417 au0.1334.0145 d2.38992.676 d7.21 M_sun2601918 km#cad7ff
alpha-centauri-aAlpha Centauri AG2Vstaralpha-centauri-ab10.66 au0.5194779.762 yr3.27524360143702528.8 d1.0788 M_sun847015 km#fff4ea
alpha-centauri-bAlpha Centauri BK1Vstaralpha-centauri-ab12.64 au0.5194779.762 yr3.27524360143702536.2 d0.9092 M_sun597676 km#ffd2a1
proxima-centauriProxima CentauriM5.5Vestaralpha-centauri8197 au0.5547 kyr3.09956648542878883 d0.1221 M_sun107277 km#ffcc6f
sirius-aSirius AA1Vstarsirius6.5365 au0.5914250.1284 yr1.9068382.063 M_sun1192708 km#b5c7ff
sirius-bSirius BDA2starsirius13.2463 au0.5914250.1284 yr1.9068381.018 M_sun5634 km#a8bdff
betelgeuseBetelgeuseM1-M2Ia-Iabstarmilky-way27005.560612584955 ly0.07230 Myr1.550502816759655731 yr18 M_sun5315148 km#ffca8a548 ly27230.011753394454 ly0 ly
polarisPolarisF7Ibstarmilky-way27003.691641144178 ly0.07230 Myr1.554260796991538119 d5.13 M_sun3219003 km#fffcf7446.5 ly27003.691641144178 ly0 ly
arcturusArcturusK1.5IIIstarmilky-way27000.024969588456 ly0.07230 Myr1.5694363276333812 yr1.08 M_sun1767078 km#ffdfb536.72 ly27000.024969588456 ly0 ly
rigelRigelB8Iastarmilky-way27013.782109138294 ly0.07230 Myr1.53885164179852223 M_sun5489073 km#b6ceff862.8 ly27013.782109138294 ly0 ly
canopusCanopusA9IIstarmilky-way27001.77039825352 ly0.07230 Myr1.55934497552101989.81 M_sun5099481 km#cbd9ff309.2 ly27001.77039825352 ly0 ly
barnards-starBarnard's StarM4Vstarmilky-way27000.00065846979 ly0.07230 Myr1.5705754749466354142 d0.162 M_sun128705 km#ffc97f5.963 ly27000.00065846979 ly0 ly
trappist-1aTRAPPIST-1M8Vstartrappist-13.295 d0.0898 M_sun82927 km1.19176e+19#ffa24c
s1S1B0-B3Vstarsagittarius-a-star4924.2 au0.556166 yr5.99869312.4 M_sun3610683 km#cad7ff
s2S2B0Vstarsagittarius-a-star1034.7 au0.8844416.046 yr3.53794613.6 M_sun3847221 km#cad7ff
s4S4B0-B3Vstarsagittarius-a-star2954.5 au0.390577 yr3.30175812.2 M_sun3638511 km#cad7ff
s6S6B0-B3Vstarsagittarius-a-star5440.6 au0.84192 yr3.0749469.2 M_sun3137607 km#cad7ff
s8S8B0-B3Vstarsagittarius-a-star3349.3 au0.803192.9 yr2.6646813.2 M_sun3555027 km#cad7ff
s9S9B0-B3Vstarsagittarius-a-star2254.4 au0.64451.3 yr3.0594438.2 M_sun2706273 km#cad7ff
s12S12B0-B3Vstarsagittarius-a-star2472 au0.888358.9 yr2.5423697.6 M_sun2831499 km#cad7ff

Example item in dataset:

ts
{
  id: 'vega',
  name: 'Vega',
  type: 'A0V', // White-Blue Main Sequence
  category: 'star',
  /** A single star orbits the galaxy directly */
  parent: 'milky-way',
  orbit: {
    /** Semi-major axis in light-years */
    a: { value: 27230.011753394454, unit: 'ly' },
    /** Orbital eccentricity */
    e: 0.005,
    /** Orbital period in million years (Myr) */
    period: { value: 480, unit: 'Myr' },
    /** Initial angle in orbit */
    angle: 1.569867205171707 as Radians
  },
  /** Equatorial rotation in days: Monnier et al. 2012, from interferometry. Seen nearly pole-on */
  rotation: { period: { value: 0.71, unit: 'd' } },
  mass: { value: 2.135, unit: 'M_sun' }, // Yoon et al. 2010
  radius: { value: 1896478, unit: 'km' }, // 2.726 R☉ at the equator, Monnier et al. 2012
  display: {
    /** Visual representation color */
    color: 'blue'
  },
  /** Galactic position in light-years (relative to Milky Way center) */
  x: { value: 25.3, unit: 'ly' },
  y: { value: 27230.011753394454, unit: 'ly' },
  z: { value: 0, unit: 'ly' }
},

See ​

StarsType.

Example ​

ts
console.log(STARS[0].name); // "Sun"