Skip to content

Documentation / @interstellar-tools/constants / PLANETS

Variable: PLANETS ​

ts
const PLANETS: PlanetsType;

Defined in: bodies/planets.ts:73

Represents a dataset of planets and planetoids in the solar system.

INFO

  • Units: a (au), period (days), radius (km); coordinates x,y,z in au.

  • orbit.angle is the true anomaly at J2000 (2000-01-01 12:00 TT). x,y,z are the heliocentric position at J2000 in the J2000 ecliptic frame, x towards the equinox.

  • For the planets, both are computed from the J2000 elements in JPL's "Approximate Positions of the Planets" (Table 1), using this dataset's a and e. For the dwarf planets, the orbit and position are JPL Horizons' osculating heliocentric elements and state at J2000; Pluto's are its system barycenter's, which Charon also circles. Sedna's orbit around the Solar System's barycenter is longer, about 506 au and 11 400 years.

  • i, w and om, in degrees, are against the J2000 ecliptic, frame, from the same sources. Earth's orbit defines the ecliptic, so its i and om are 0, and w is its longitude of perihelion.

  • TRAPPIST-1's seven planets orbit their star, trappist-1a, with i and w on the sky, frame: { plane: 'sky' }, and have no x,y,z, which are heliocentric.

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

  • rotation.period is the sidereal rotation in days: 360° over the IAU's rotation rate (Archinal et al. 2018), and for Earth the IERS's Earth rotation angle. The IAU gives no rate for the other dwarf planets, so theirs is a light curve's. Venus, Uranus and Pluto spin backwards, retrograde: true. TRAPPIST-1's planets' spins aren't measured.

  • rotation.obliquity is the axial tilt in degrees, the angle between the spin axis, by the right-hand rule, and the orbit's pole: from the IAU pole at J2000 and JPL's mean orbit, to 0.01°. Over 90°, as for Venus, Uranus and Pluto, the body spins backwards. Pluto's is 119.61°: the 122.53° often quoted comes from the IAU's pole before 2009.

  • rotation.iau is the IAU's rotation model (Archinal et al. 2018), with every periodic term: without them Mars's pole would be 1.6° off, and its tilt 23.9°. Earth's is the 2009 report's (Archinal et al. 2011), which the 2015 report dropped: its prime meridian can be 150″ or more off, so use the IERS's Earth rotation angle for precise work. The planets' poles are the IAU's 'north', on the north side of the solar system's invariable plane, so Venus's and Uranus's prime meridians turn backwards; Ceres's and Pluto's are 'positive', by the right-hand rule. The IAU has none for the other dwarf planets.

  • The rings aren't carried here, so an app loads them only where it shows them. They're exported apart, keyed by planet id: PLANET_RINGS and RING_DISPLAY. withObservations and withDisplay put them on the planets, as the observations.rings and display.rings described below.

  • observations.rings are Jupiter's, Saturn's, Uranus's and Neptune's rings, and Saturn's named gaps, from the inside out: their edges in km from the planet's centre and their normal optical depth, from the PDS Ring-Moon Systems Node's vital statistics and the papers they cite, and Saturn's rings' thicknesses from NASA NSSDCA. Uranus's and Neptune's edges are half the ring's width either side of its middle, the way the sources give them. A value given as a range, such as the C ring's optical depth of 0.05 to 0.35, is the range's middle, with the range in its note. Saturn's ringlets, Neptune's Adams ring arcs and its Arago ring are left out, and shepherdIds names only the moons in MOONS.

  • display.rings draws them: each is as opaque as its densest ring, 1 − e^−τ, so Jupiter's faint dust all but vanishes. Saturn's colour is measured from Cassini's natural-colour mosaic PIA06175. No true-colour image of the others exists, so theirs are a neutral grey as dark as their particles, which reflect about 1.5 % of the light. display.derivation says which.

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

Full list of planets in the dataset ​

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

idnametypecategoryparentorbit.aorbit.eorbit.periodorbit.retrogradeorbit.angleorbit.iorbit.worbit.omorbit.framerotation.periodrotation.retrograderotation.obliquityrotation.iauradiusmu (m³/s²)display.colorxyz
mercuryMercurysilicate planetplanetsun0.387 au0.205687.969 d3.0803777.0049790229.1270303548.33076593ecliptic58.6461459 d0.034north (281.0103°, 61.4155°)2439.4 km2.2031868551e+13#8B8B8B-0.1301 au-0.4472 au-0.0246 au
venusVenussilicate planetplanetsun0.723 au0.0068224.701 d0.889773.3946760554.9226246376.67984255ecliptic243.018484 dyes177.362north (272.76°, 67.16°)6051.8 km3.24858592e+14#E49B0F-0.718 au-0.0327 au0.041 au
earthEarthsilicate planetplanetsun1 au0.0167365.256 d6.2385490102.937681930ecliptic0.9972696632 d23.439north (0°, 90°)6371.0084 km3.98600435507e+14#1E90FF-0.1772 au0.9672 au0 au
marsMarsdesert planetplanetsun1.524 au0.0934686.98 d0.4080151.84969142286.496831549.55953891ecliptic1.025956756 d25.192north (317.269202°, 54.432516°)3389.5 km4.282837362e+13#D14A281.3909 au-0.0134 au-0.0345 au
ceresCeresice planetplanetoidsun2.7665 au0.078381680.7 d0.12647810.5833604673.9228627480.49435747ecliptic0.3780904165 dpositive (291.418°, 66.764°)469.7 km6.26284e+10#C0C0C0-2.3793 au0.7955 au0.463 au
jupiterJupitergas giantplanetsun5.203 au0.04894332.59 d0.3781851.30439695274.25457074100.47390909ecliptic0.4135383258 d3.119north (268.056595°, 64.495303°)69911 km1.266865319e+17#C088503.9953 au2.9459 au-0.1016 au
saturnSaturngas giantplanetsun9.537 au0.056510759.22 d5.4582472.48599187338.93645383113.66242448ecliptic0.4440092592 d26.73north (40.589°, 83.537°)58232 km3.793120623e+16#D2B48C6.4288 au6.5083 au-0.3691 au
uranusUranusice giantplanetsun19.191 au0.046330687.15 d2.5374590.7726378396.9373512774.01692503ecliptic0.7183333333 dyes97.77north (257.311°, -15.175°)25362 km5.7939513e+15#78D6FF14.4012 au-13.7439 au-0.2377 au
neptuneNeptuneice giantplanetsun30.069 au0.008660190.03 d4.5194751.77004347273.18053653131.78422574ecliptic0.6652625 d28.318north (299.36°, 43.46°)24622 km6.83509997e+15#0053D616.8038 au-24.9923 au0.1274 au
plutoPlutoice planetplanetoidsun39.2643 au0.2446789866.1 d0.44000117.1513644113.76290249110.28692974ecliptic6.387222999 dyes119.608positive (132.993°, -6.163°)1188.3 km8.693e+11#B0A99F-9.8754 au-27.9588 au5.8504 au
erisErisice planetplanetoidsun68.1399 au0.432505205447.3 d3.25151543.74050564150.8448096436.12852074ecliptic15.771 d1163 km1.0935e+12#F2F0EC88.3933 au30.7652 au-26.0944 au
haumeaHaumeaice planetplanetoidsun42.9093 au0.199921102665.6 d3.25568128.20614177240.59077767121.93323859ecliptic0.163139208 d797.6 km2.63798e+11#F4F5F7-45.9898 au-5.1205 au22.3856 au
makemakeMakemakeice planetplanetoidsun45.3721 au0.164523111630.1 d2.62134329.00018554296.2809991979.27490607ecliptic0.9511083333 d714 km#D9B48F-43.5785 au11.4783 au24.9182 au
gonggongGonggongice planetplanetoidsun67.0513 au0.499574200543.7 d2.48794930.71461209206.94098704336.87541406ecliptic1.867083333 d615 km1.168e+11#B5553A70.2665 au-44.2264 au-7.7691 au
quaoarQuaoarice planetplanetoidsun43.133 au0.03951103469.7 d4.4428728.00508947163.78548728189.07999041ecliptic0.7366166667 d545 km8.0626e+10#A86E52-16.7665 au-39.8317 au5.1593 au
sednaSednaice planetplanetoidsun549.8733 au0.860984709690.2 d5.42808811.92524942310.73286356144.31692861ecliptic0.4280416667 d497.5 km#B0472F61.9508 au63.8763 au-18.5892 au
trappist-1bTRAPPIST-1bterrestrial planetplanettrappist-1a0.01154 au0.00311.51088432 d5.95157389.728134.7sky7119 km5.4768e+14#8A7566
trappist-1cTRAPPIST-1cterrestrial planetplanettrappist-1a0.0158 au0.00062.42179346 d0.03979489.7781sky6995 km5.2137e+14#968779
trappist-1dTRAPPIST-1dterrestrial planetplanettrappist-1a0.02227 au0.00564.04978035 d2.31011889.896151.7sky5026 km1.5466e+14#8F9190
trappist-1eTRAPPIST-1eterrestrial planetplanettrappist-1a0.02925 au0.00636.09956479 d4.93753689.793313.2sky5868 km2.7583e+14#7F8F99
trappist-1fTRAPPIST-1fterrestrial planetplanettrappist-1a0.03849 au0.00849.20659399 d1.96192589.74183.5sky6664 km4.1415e+14#8C9BA6
trappist-1gTRAPPIST-1gterrestrial planetplanettrappist-1a0.04683 au0.00412.3535557 d4.79092989.74218.6sky7204 km5.2655e+14#A1AEB8
trappist-1hTRAPPIST-1hterrestrial planetplanettrappist-1a0.06189 au0.003718.7672745 d4.89355489.805180.3sky4817 km1.2994e+14#B8C1C7

Example item in dataset:

ts
{
  id: 'mercury',
  name: 'Mercury',
  type: 'silicate planet',
  category: 'planet',
  parent: 'sun',
  orbit: {
    /** Semi-major axis in AU */
    a: { value: 0.387, unit: 'au' },
    /** Orbital eccentricity */
    e: 0.2056,
    /** Orbital period in days */
    period: { value: 87.969, unit: 'd' },
    /** True anomaly at J2000 */
    angle: 3.080377 as Radians,
    i: 7.00497902 as DegreesType,
    w: 29.12703035 as DegreesType,
    om: 48.33076593 as DegreesType,
    frame: { plane: 'ecliptic' }
  },
  /** Sidereal rotation in days */
  rotation: {
    period: { value: 58.6461459, unit: 'd' },
    obliquity: 0.034 as DegreesType,
    iau: {
      pole: 'north',
      rightAscension: 281.0103 as DegreesType,
      rightAscensionRate: -0.0328,
      declination: 61.4155 as DegreesType,
      declinationRate: -0.0049,
      primeMeridian: 329.5988 as DegreesType,
      primeMeridianRate: 6.1385108,
      primeMeridianTerms: [
        iauTerm(0.01067257, 174.7910857, 149472.535875),
        iauTerm(-0.00112309, 349.5821714, 298945.07175),
        iauTerm(-0.0001104, 164.3732571, 448417.607625),
        iauTerm(-0.00002539, 339.1643429, 597890.1435),
        iauTerm(-0.00000571, 153.9554286, 747362.679375)
      ]
    }
  },
  /** Radius in km */
  radius: { value: 2439.4, unit: 'km' },
  ellipsoid: {
    equatorialRadius: { value: 2439.4, unit: 'km' },
    polarRadius: { value: 2439.4, unit: 'km' }
  },
  mu: 2.2031868551e13,
  display: {
    /** Visual representation color */
    color: '#8B8B8B'
  },
  /** Heliocentric position at J2000 (J2000 ecliptic frame) in au */
  x: { value: -0.1301, unit: 'au' },
  y: { value: -0.4472, unit: 'au' },
  z: { value: -0.0246, unit: 'au' }
},

See ​

PlanetsType.

Example ​

ts
console.log(PLANETS[0].name); // "Mercury"