astraeus-data-mars 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE +6 -0
  3. package/README.md +13 -2
  4. package/data/mars-moons/deimos/2010.bin +0 -0
  5. package/data/mars-moons/deimos/2011.bin +0 -0
  6. package/data/mars-moons/deimos/2012.bin +0 -0
  7. package/data/mars-moons/deimos/2013.bin +0 -0
  8. package/data/mars-moons/deimos/2014.bin +0 -0
  9. package/data/mars-moons/deimos/2015.bin +0 -0
  10. package/data/mars-moons/deimos/2016.bin +0 -0
  11. package/data/mars-moons/deimos/2017.bin +0 -0
  12. package/data/mars-moons/deimos/2018.bin +0 -0
  13. package/data/mars-moons/deimos/2019.bin +0 -0
  14. package/data/mars-moons/deimos/2020.bin +0 -0
  15. package/data/mars-moons/deimos/2021.bin +0 -0
  16. package/data/mars-moons/deimos/2022.bin +0 -0
  17. package/data/mars-moons/deimos/2023.bin +0 -0
  18. package/data/mars-moons/deimos/2024.bin +0 -0
  19. package/data/mars-moons/deimos/2025.bin +0 -0
  20. package/data/mars-moons/deimos/2026.bin +0 -0
  21. package/data/mars-moons/deimos/2027.bin +0 -0
  22. package/data/mars-moons/deimos/2028.bin +0 -0
  23. package/data/mars-moons/deimos/2029.bin +0 -0
  24. package/data/mars-moons/index.json +67 -0
  25. package/data/mars-moons/mars/2010.bin +0 -0
  26. package/data/mars-moons/mars/2011.bin +0 -0
  27. package/data/mars-moons/mars/2012.bin +0 -0
  28. package/data/mars-moons/mars/2013.bin +0 -0
  29. package/data/mars-moons/mars/2014.bin +0 -0
  30. package/data/mars-moons/mars/2015.bin +0 -0
  31. package/data/mars-moons/mars/2016.bin +0 -0
  32. package/data/mars-moons/mars/2017.bin +0 -0
  33. package/data/mars-moons/mars/2018.bin +0 -0
  34. package/data/mars-moons/mars/2019.bin +0 -0
  35. package/data/mars-moons/mars/2020.bin +0 -0
  36. package/data/mars-moons/mars/2021.bin +0 -0
  37. package/data/mars-moons/mars/2022.bin +0 -0
  38. package/data/mars-moons/mars/2023.bin +0 -0
  39. package/data/mars-moons/mars/2024.bin +0 -0
  40. package/data/mars-moons/mars/2025.bin +0 -0
  41. package/data/mars-moons/mars/2026.bin +0 -0
  42. package/data/mars-moons/mars/2027.bin +0 -0
  43. package/data/mars-moons/mars/2028.bin +0 -0
  44. package/data/mars-moons/mars/2029.bin +0 -0
  45. package/data/mars-moons/phobos/2010.bin +0 -0
  46. package/data/mars-moons/phobos/2011.bin +0 -0
  47. package/data/mars-moons/phobos/2012.bin +0 -0
  48. package/data/mars-moons/phobos/2013.bin +0 -0
  49. package/data/mars-moons/phobos/2014.bin +0 -0
  50. package/data/mars-moons/phobos/2015.bin +0 -0
  51. package/data/mars-moons/phobos/2016.bin +0 -0
  52. package/data/mars-moons/phobos/2017.bin +0 -0
  53. package/data/mars-moons/phobos/2018.bin +0 -0
  54. package/data/mars-moons/phobos/2019.bin +0 -0
  55. package/data/mars-moons/phobos/2020.bin +0 -0
  56. package/data/mars-moons/phobos/2021.bin +0 -0
  57. package/data/mars-moons/phobos/2022.bin +0 -0
  58. package/data/mars-moons/phobos/2023.bin +0 -0
  59. package/data/mars-moons/phobos/2024.bin +0 -0
  60. package/data/mars-moons/phobos/2025.bin +0 -0
  61. package/data/mars-moons/phobos/2026.bin +0 -0
  62. package/data/mars-moons/phobos/2027.bin +0 -0
  63. package/data/mars-moons/phobos/2028.bin +0 -0
  64. package/data/mars-moons/phobos/2029.bin +0 -0
  65. package/package.json +37 -4
  66. package/src/chunks.d.ts +3 -0
  67. package/src/chunks.js +63 -0
  68. package/src/index.d.ts +7 -0
  69. package/src/index.js +13 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ani Patke
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/NOTICE ADDED
@@ -0,0 +1,6 @@
1
+ astraeus-data-mars: moon positions
2
+
3
+ Positions are piecewise Chebyshev fits of state vectors from the JPL Horizons On-Line Ephemeris System API (https://ssd.jpl.nasa.gov/api/horizons.api),
4
+ NASA/JPL-Caltech Solar System Dynamics, a US Government work used with credit. The fit error is measured against Horizons;
5
+ Horizons' own uncertainty is separate and is stated in each body's provenance in index.json.
6
+ The package code is MIT (see LICENSE).
package/README.md CHANGED
@@ -1,3 +1,14 @@
1
- # Temporary Holding Version
1
+ # astraeus-data-mars
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Mars's moon positions for the [Astraeus](https://github.com/anipatke/Astraeus) engine: every moon JPL Horizons lists for Mars, and Mars itself, as piecewise Chebyshev fits about the system barycentre (geometric, ICRF, TDB), one file per body per calendar year, 2010 to 2030. The measured fit errors are in `index.json`.
4
+
5
+ ```ts
6
+ import { mount, Scene, phobos, mars } from "astraeus";
7
+ import { dataSource } from "astraeus-data-mars";
8
+
9
+ mount(element, new Scene().addBody(mars).addBody(phobos), { data: [dataSource] });
10
+ ```
11
+
12
+ The engine loads only the year files the scene's time window needs. Moons are offered only when this package is passed to `mount`.
13
+
14
+ Source: JPL Horizons On-Line Ephemeris System API (NASA/JPL-Caltech Solar System Dynamics), US Government work, used with credit. See `NOTICE`.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,67 @@
1
+ {
2
+ "format": "astraeus.chebyshev-ephemeris/1",
3
+ "id": "mars-moons",
4
+ "label": "Mars's moons (JPL Horizons, piecewise Chebyshev fits)",
5
+ "frame": "EQJ",
6
+ "units": {
7
+ "position": "km",
8
+ "velocity": "km/s",
9
+ "time": "TDB seconds from J2000 (2000-01-01 12:00 TDB)"
10
+ },
11
+ "origin": {
12
+ "naifId": 4,
13
+ "label": "Mars system barycentre",
14
+ "note": "Every series is relative to the barycentre; centre-relative states subtract the centre series."
15
+ },
16
+ "centre": "mars",
17
+ "span": {
18
+ "fromUtc": "2010-01-01",
19
+ "toUtc": "2030-01-01",
20
+ "chunk": "one file per body per calendar year (TDB), <body>/<year>.bin"
21
+ },
22
+ "source": {
23
+ "title": "JPL Horizons On-Line Ephemeris System, API",
24
+ "url": "https://ssd.jpl.nasa.gov/api/horizons.api",
25
+ "apiVersion": "1.2",
26
+ "bodyList": "Horizons major-body list (COMMAND=MB), fetched 2026-10-20T11:05:47.672Z: 2 moons of Mars (NAIF 401-4xx and provisional 45xxx)",
27
+ "moonCount": 2,
28
+ "licence": "JPL Horizons output is produced by NASA/JPL (a US Government-funded facility); used as US Government work with credit to NASA/JPL-Caltech Solar System Dynamics.",
29
+ "importer": "tools/import/horizons-moons.mjs"
30
+ },
31
+ "timeScale": {
32
+ "pieces": [
33
+ {
34
+ "fromUtcMs": 1230768000000,
35
+ "ttMinusUtcS": 66.184,
36
+ "driftSPerDay": 0
37
+ },
38
+ {
39
+ "fromUtcMs": 1341100800000,
40
+ "ttMinusUtcS": 67.184,
41
+ "driftSPerDay": 0
42
+ },
43
+ {
44
+ "fromUtcMs": 1435708800000,
45
+ "ttMinusUtcS": 68.184,
46
+ "driftSPerDay": 0
47
+ },
48
+ {
49
+ "fromUtcMs": 1483228800000,
50
+ "ttMinusUtcS": 69.184,
51
+ "driftSPerDay": 0
52
+ }
53
+ ],
54
+ "validToUtcMs": 1893628800000,
55
+ "source": "JPL Horizons API, COMMAND=499 CENTER=500@4 VECTORS with VEC_DELTA_T=YES, TIME_TYPE=UT, monthly 1950-01-01 to 2050-01-01 (Tue Oct 20 04:06:45 2026)",
56
+ "check": {
57
+ "samples": 1201,
58
+ "worstResidualAfter1972S": 0.00000558453197641029,
59
+ "note": "Horizons TDB - UT less the SOFA dtdb series, against 32.184 s plus whole leap seconds, monthly 1972-2050"
60
+ }
61
+ },
62
+ "bodies": [
63
+ { "id": "mars", "label": "Mars", "naifId": 499, "designation": null, "aliases": null, "role": "centre", "horizons": { "command": "499", "center": "500@4", "ephemeris": "mar099", "headerNotes": ["Revised: June 02, 2025 Mars 499 / 4", "PHYSICAL DATA (updated 2025-Jun-02):", "Vol. mean radius (km) = 3389.92+-0.04 Density (g/cm^3) = 3.933(5+-4)", "Mass x10^23 (kg) = 6.4171 Flattening, f = 1/169.779", "Volume (x10^10 km^3) = 16.318 Equatorial radius (km)= 3396.19", "Sidereal rot. period = 24.622962 hr Sid. rot. rate, rad/s = 0.0000708822", "Mean solar day (sol) = 88775.24415 s Polar gravity m/s^2 = 3.758", "Core radius (km) = ~1700 Equ. gravity m/s^2 = 3.71", "Geometric Albedo = 0.150", "GM (km^3/s^2) = 42828.375662 Mass ratio (Sun/Mars) = 3098703.59", "GM 1-sigma (km^3/s^2) = +- 0.00028 Mass of atmosphere, kg= ~ 2.5 x 10^16", "Mean temperature (K) = 210 Atmos. pressure (bar) = 0.0056", "Obliquity to orbit = 25.19 deg Max. angular diam. = 17.9\"", "Mean sidereal orb per = 1.88081578 y Visual mag. V(1,0) = -1.52", "Mean sidereal orb per = 686.98 d Orbital speed, km/s = 24.13", "Hill's sphere rad. Rp = 319.8 Escape speed, km/s = 5.027", "Perihelion Aphelion Mean", "Solar Constant (W/m^2) 717 493 589", "Maximum Planetary IR (W/m^2) 470 315 390", "Minimum Planetary IR (W/m^2) 30 30 30"] }, "fit": { "segmentSeconds": 43200, "calibratedSegmentSeconds": 43200, "degree": 6, "calibratedDegree": 6, "quantumKm": 0.0000010000000000000002, "phaseTdbS": 528573600, "sampleStepMinutes": 90, "sourceRecordGridSeconds": 21600, "periodDays": 0.319 }, "chunks": [{ "path": "mars/2010.bin", "startTdbS": 315554400, "segmentCount": 731, "bytes": 18642 }, { "path": "mars/2011.bin", "startTdbS": 347133600, "segmentCount": 730, "bytes": 18573 }, { "path": "mars/2012.bin", "startTdbS": 378669600, "segmentCount": 732, "bytes": 18691 }, { "path": "mars/2013.bin", "startTdbS": 410292000, "segmentCount": 730, "bytes": 18596 }, { "path": "mars/2014.bin", "startTdbS": 441828000, "segmentCount": 730, "bytes": 18619 }, { "path": "mars/2015.bin", "startTdbS": 473364000, "segmentCount": 730, "bytes": 18595 }, { "path": "mars/2016.bin", "startTdbS": 504900000, "segmentCount": 732, "bytes": 18659 }, { "path": "mars/2017.bin", "startTdbS": 536522400, "segmentCount": 730, "bytes": 18592 }, { "path": "mars/2018.bin", "startTdbS": 568058400, "segmentCount": 730, "bytes": 18607 }, { "path": "mars/2019.bin", "startTdbS": 599594400, "segmentCount": 730, "bytes": 18619 }, { "path": "mars/2020.bin", "startTdbS": 631130400, "segmentCount": 732, "bytes": 18628 }, { "path": "mars/2021.bin", "startTdbS": 662752800, "segmentCount": 730, "bytes": 18624 }, { "path": "mars/2022.bin", "startTdbS": 694288800, "segmentCount": 730, "bytes": 18593 }, { "path": "mars/2023.bin", "startTdbS": 725824800, "segmentCount": 730, "bytes": 18607 }, { "path": "mars/2024.bin", "startTdbS": 757360800, "segmentCount": 732, "bytes": 18643 }, { "path": "mars/2025.bin", "startTdbS": 788983200, "segmentCount": 730, "bytes": 18602 }, { "path": "mars/2026.bin", "startTdbS": 820519200, "segmentCount": 730, "bytes": 18576 }, { "path": "mars/2027.bin", "startTdbS": 852055200, "segmentCount": 730, "bytes": 18606 }, { "path": "mars/2028.bin", "startTdbS": 883591200, "segmentCount": 732, "bytes": 18659 }, { "path": "mars/2029.bin", "startTdbS": 915213600, "segmentCount": 730, "bytes": 18567 }], "accuracy": { "targetM": 0.1, "span": { "worstM": 0.0315, "worstAt": "2012-01-05 06:03:00.000 TDB", "rmsM": 0.0206, "count": 9897 }, "demoWindow": { "worstM": 0.0319, "worstAt": "2017-07-15 18:05:00.000 TDB", "rmsM": 0.0206, "count": 61344 } }, "provenance": { "sourceType": "ephemeris", "sources": ["JPL Horizons API 1.2 (https://ssd.jpl.nasa.gov/api/horizons.api), COMMAND=499 CENTER=500@4, VECTORS geometric ICRF km km/s TDB; ephemeris mar099; fetched Tue Oct 20 04:06:47 2026", "JPL Horizons output is produced by NASA/JPL (a US Government-funded facility); used as US Government work with credit to NASA/JPL-Caltech Solar System Dynamics."], "accuracy": "Piecewise Chebyshev fit of Horizons states: worst 0.0315 m, typical (rms) 0.0206 m at 9897 independent dates 2010-01-01 to 2030-01-01; worst 0.0319 m at 61344 dates in the demo window. Horizons' own ephemeris uncertainty is not part of this figure and is not stated in its output.", "notes": "Horizons header: Revised: June 02, 2025 Mars 499 / 4 / PHYSICAL DATA (updated 2025-Jun-02): / Vol. mean radius (km) = 3389.92+-0.04 Density (g/cm^3) = 3.933(5+-4) / Mass x10^23 (kg) = 6.4171 Flattening, f = 1/169.779 / Volume (x10^10 km^3) = 16.318 Equatorial radius (km)= 3396.19 / Sidereal rot. period = 24.622962 hr Sid. rot. rate, rad/s = 0.0000708822 / Mean solar day (sol) = 88775.24415 s Polar gravity m/s^2 = 3.758 / Core radius (km) = ~1700 Equ. gravity m/s^2 = 3.71 / Geometric Albedo = 0.150 / GM (km^3/s^2) = 42828.375662 Mass ratio (Sun/Mars) = 3098703.59 / GM 1-sigma (km^3/s^2) = +- 0.00028 Mass of atmosphere, kg= ~ 2.5 x 10^16 / Mean temperature (K) = 210 Atmos. pressure (bar) = 0.0056 / Obliquity to orbit = 25.19 deg Max. angular diam. = 17.9\" / Mean sidereal orb per = 1.88081578 y Visual mag. V(1,0) = -1.52 / Mean sidereal orb per = 686.98 d Orbital speed, km/s = 24.13 / Hill's sphere rad. Rp = 319.8 Escape speed, km/s = 5.027 / Perihelion Aphelion Mean / Solar Constant (W/m^2) 717 493 589 / Maximum Planetary IR (W/m^2) 470 315 390 / Minimum Planetary IR (W/m^2) 30 30 30" } },
64
+ { "id": "phobos", "label": "Phobos", "naifId": 401, "designation": null, "aliases": "MI", "role": "moon", "horizons": { "command": "401", "center": "500@4", "ephemeris": "mar099", "headerNotes": ["Revised: Jun 02, 2025 Phobos / (Mars) 401", "SATELLITE PHYSICAL PROPERTIES:", "Radius (km) = 13.1 x11.1 x9.3 Density (g cm^-3) = 1.90 +- 0.08", "Mass (10^20 kg ) = 1.08 (10^-4) Geometric Albedo = 0.06", "(+- 0.1) V(1,0) = +11.8", "SATELLITE ORBITAL DATA:", "Semi-major axis, a (km) = 9.3772(10^3) Orbital period = 0.319 d", "Eccentricity, e = 0.0151 Rotational period = Synchronous", "Inclination, i (deg) = 1.082"] }, "fit": { "segmentSeconds": 21600, "calibratedSegmentSeconds": 21600, "degree": 15, "calibratedDegree": 15, "quantumKm": 0.00001, "phaseTdbS": 528573600, "sampleStepMinutes": 20, "sourceRecordGridSeconds": 21600, "periodDays": 0.319 }, "chunks": [{ "path": "phobos/2010.bin", "startTdbS": 315576000, "segmentCount": 1460, "bytes": 216904 }, { "path": "phobos/2011.bin", "startTdbS": 347112000, "segmentCount": 1460, "bytes": 216827 }, { "path": "phobos/2012.bin", "startTdbS": 378648000, "segmentCount": 1464, "bytes": 217665 }, { "path": "phobos/2013.bin", "startTdbS": 410270400, "segmentCount": 1460, "bytes": 216982 }, { "path": "phobos/2014.bin", "startTdbS": 441806400, "segmentCount": 1460, "bytes": 216975 }, { "path": "phobos/2015.bin", "startTdbS": 473342400, "segmentCount": 1460, "bytes": 216907 }, { "path": "phobos/2016.bin", "startTdbS": 504878400, "segmentCount": 1464, "bytes": 217528 }, { "path": "phobos/2017.bin", "startTdbS": 536500800, "segmentCount": 1460, "bytes": 216938 }, { "path": "phobos/2018.bin", "startTdbS": 568036800, "segmentCount": 1460, "bytes": 216928 }, { "path": "phobos/2019.bin", "startTdbS": 599572800, "segmentCount": 1460, "bytes": 216984 }, { "path": "phobos/2020.bin", "startTdbS": 631108800, "segmentCount": 1464, "bytes": 217556 }, { "path": "phobos/2021.bin", "startTdbS": 662731200, "segmentCount": 1460, "bytes": 216999 }, { "path": "phobos/2022.bin", "startTdbS": 694267200, "segmentCount": 1460, "bytes": 216856 }, { "path": "phobos/2023.bin", "startTdbS": 725803200, "segmentCount": 1460, "bytes": 216992 }, { "path": "phobos/2024.bin", "startTdbS": 757339200, "segmentCount": 1464, "bytes": 217534 }, { "path": "phobos/2025.bin", "startTdbS": 788961600, "segmentCount": 1460, "bytes": 216903 }, { "path": "phobos/2026.bin", "startTdbS": 820497600, "segmentCount": 1460, "bytes": 216929 }, { "path": "phobos/2027.bin", "startTdbS": 852033600, "segmentCount": 1460, "bytes": 216970 }, { "path": "phobos/2028.bin", "startTdbS": 883569600, "segmentCount": 1464, "bytes": 217675 }, { "path": "phobos/2029.bin", "startTdbS": 915192000, "segmentCount": 1460, "bytes": 216921 }], "accuracy": { "targetM": 1, "span": { "worstM": 0.0351, "worstAt": "2025-03-07 18:24:00.000 TDB", "rmsM": 0.0143, "count": 9509 }, "demoWindow": { "worstM": 0.0395, "worstAt": "2016-12-12 19:25:00.000 TDB", "rmsM": 0.0144, "count": 61344 }, "marsCentredUtc": { "worstM": 0.0593, "rmsM": 0.026, "count": 1001 } }, "provenance": { "sourceType": "ephemeris", "sources": ["JPL Horizons API 1.2 (https://ssd.jpl.nasa.gov/api/horizons.api), COMMAND=401 CENTER=500@4, VECTORS geometric ICRF km km/s TDB; ephemeris mar099; fetched Tue Oct 20 04:07:10 2026", "JPL Horizons output is produced by NASA/JPL (a US Government-funded facility); used as US Government work with credit to NASA/JPL-Caltech Solar System Dynamics."], "accuracy": "Piecewise Chebyshev fit of Horizons states: worst 0.0351 m, typical (rms) 0.0143 m at 9509 independent dates 2010-01-01 to 2030-01-01; worst 0.0395 m at 61344 dates in the demo window. Horizons' own ephemeris uncertainty is not part of this figure and is not stated in its output.", "notes": "Horizons header: Revised: Jun 02, 2025 Phobos / (Mars) 401 / SATELLITE PHYSICAL PROPERTIES: / Radius (km) = 13.1 x11.1 x9.3 Density (g cm^-3) = 1.90 +- 0.08 / Mass (10^20 kg ) = 1.08 (10^-4) Geometric Albedo = 0.06 / (+- 0.1) V(1,0) = +11.8 / SATELLITE ORBITAL DATA: / Semi-major axis, a (km) = 9.3772(10^3) Orbital period = 0.319 d / Eccentricity, e = 0.0151 Rotational period = Synchronous / Inclination, i (deg) = 1.082" } },
65
+ { "id": "deimos", "label": "Deimos", "naifId": 402, "designation": null, "aliases": "MII", "role": "moon", "horizons": { "command": "402", "center": "500@4", "ephemeris": "mar099", "headerNotes": ["Revised: Jun 02, 2025 Deimos / (Mars) 402", "SATELLITE PHYSICAL PROPERTIES:", "Radius (km) = 7.8 x 6.0 x 5.1 Density (g cm^-3) = 1.76 +- 0.30", "Mass (10^20 kg ) = 1.80 (10^-5) Geometric Albedo = 0.06", "(+- 0.15) V(1,0) = +12.89", "SATELLITE ORBITAL DATA:", "Semi-major axis, a (km) = 23.4632(10^3) Orbital period = 1.263 d", "Eccentricity, e = 0.00033 Rotational period = Synchronous", "Inclination, i (deg) = 1.791"] }, "fit": { "segmentSeconds": 172800, "calibratedSegmentSeconds": 172800, "degree": 19, "calibratedDegree": 19, "quantumKm": 0.00001, "phaseTdbS": 528595200, "sampleStepMinutes": 30, "sourceRecordGridSeconds": 43200, "periodDays": 1.263 }, "chunks": [{ "path": "deimos/2010.bin", "startTdbS": 315532800, "segmentCount": 183, "bytes": 38208 }, { "path": "deimos/2011.bin", "startTdbS": 347155200, "segmentCount": 183, "bytes": 38265 }, { "path": "deimos/2012.bin", "startTdbS": 378777600, "segmentCount": 183, "bytes": 38230 }, { "path": "deimos/2013.bin", "startTdbS": 410400000, "segmentCount": 182, "bytes": 38033 }, { "path": "deimos/2014.bin", "startTdbS": 441849600, "segmentCount": 183, "bytes": 38192 }, { "path": "deimos/2015.bin", "startTdbS": 473472000, "segmentCount": 182, "bytes": 38004 }, { "path": "deimos/2016.bin", "startTdbS": 504921600, "segmentCount": 183, "bytes": 38212 }, { "path": "deimos/2017.bin", "startTdbS": 536544000, "segmentCount": 183, "bytes": 38179 }, { "path": "deimos/2018.bin", "startTdbS": 568166400, "segmentCount": 182, "bytes": 37972 }, { "path": "deimos/2019.bin", "startTdbS": 599616000, "segmentCount": 183, "bytes": 38161 }, { "path": "deimos/2020.bin", "startTdbS": 631238400, "segmentCount": 183, "bytes": 38175 }, { "path": "deimos/2021.bin", "startTdbS": 662860800, "segmentCount": 182, "bytes": 37922 }, { "path": "deimos/2022.bin", "startTdbS": 694310400, "segmentCount": 183, "bytes": 38204 }, { "path": "deimos/2023.bin", "startTdbS": 725932800, "segmentCount": 182, "bytes": 37962 }, { "path": "deimos/2024.bin", "startTdbS": 757382400, "segmentCount": 183, "bytes": 38250 }, { "path": "deimos/2025.bin", "startTdbS": 789004800, "segmentCount": 183, "bytes": 38247 }, { "path": "deimos/2026.bin", "startTdbS": 820627200, "segmentCount": 182, "bytes": 38084 }, { "path": "deimos/2027.bin", "startTdbS": 852076800, "segmentCount": 183, "bytes": 38297 }, { "path": "deimos/2028.bin", "startTdbS": 883699200, "segmentCount": 183, "bytes": 38277 }, { "path": "deimos/2029.bin", "startTdbS": 915321600, "segmentCount": 182, "bytes": 38096 }], "accuracy": { "targetM": 1, "span": { "worstM": 0.5533, "worstAt": "2029-09-30 11:59:00.000 TDB", "rmsM": 0.2127, "count": 9675 }, "demoWindow": { "worstM": 0.4757, "worstAt": "2016-10-12 15:45:00.000 TDB", "rmsM": 0.2049, "count": 20448 }, "marsCentredUtc": { "worstM": 0.5101, "rmsM": 0.2138, "count": 1001 } }, "provenance": { "sourceType": "ephemeris", "sources": ["JPL Horizons API 1.2 (https://ssd.jpl.nasa.gov/api/horizons.api), COMMAND=402 CENTER=500@4, VECTORS geometric ICRF km km/s TDB; ephemeris mar099; fetched Tue Oct 20 04:08:07 2026", "JPL Horizons output is produced by NASA/JPL (a US Government-funded facility); used as US Government work with credit to NASA/JPL-Caltech Solar System Dynamics."], "accuracy": "Piecewise Chebyshev fit of Horizons states: worst 0.5533 m, typical (rms) 0.2127 m at 9675 independent dates 2010-01-01 to 2030-01-01; worst 0.4757 m at 20448 dates in the demo window. Horizons' own ephemeris uncertainty is not part of this figure and is not stated in its output.", "notes": "Horizons header: Revised: Jun 02, 2025 Deimos / (Mars) 402 / SATELLITE PHYSICAL PROPERTIES: / Radius (km) = 7.8 x 6.0 x 5.1 Density (g cm^-3) = 1.76 +- 0.30 / Mass (10^20 kg ) = 1.80 (10^-5) Geometric Albedo = 0.06 / (+- 0.15) V(1,0) = +12.89 / SATELLITE ORBITAL DATA: / Semi-major axis, a (km) = 23.4632(10^3) Orbital period = 1.263 d / Eccentricity, e = 0.00033 Rotational period = Synchronous / Inclination, i (deg) = 1.791" } }
66
+ ]
67
+ }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,39 @@
1
1
  {
2
2
  "name": "astraeus-data-mars",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Mars's moon positions for the Astraeus engine: piecewise Chebyshev fits of JPL Horizons state vectors, 2010 to 2030.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "sideEffects": false,
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/anipatke/Astraeus.git"
11
+ },
12
+ "keywords": [
13
+ "astraeus",
14
+ "astronomy",
15
+ "ephemeris",
16
+ "moons",
17
+ "mars"
18
+ ],
19
+ "peerDependencies": {
20
+ "astraeus": ">=0.1.0 <1.0.0"
21
+ },
22
+ "exports": {
23
+ ".": {
24
+ "types": "./src/index.d.ts",
25
+ "import": "./src/index.js"
26
+ },
27
+ "./index.json": "./data/mars-moons/index.json",
28
+ "./package.json": "./package.json"
29
+ },
30
+ "types": "./src/index.d.ts",
31
+ "files": [
32
+ "src",
33
+ "data",
34
+ "README.md",
35
+ "NOTICE",
36
+ "LICENSE",
37
+ "licenses"
38
+ ]
39
+ }
@@ -0,0 +1,3 @@
1
+ // Written by tools/build-packages.mjs at build time: one literal `new URL("../data/<moon>/<year>.bin", import.meta.url).href` per chunk file,
2
+ // so a bundler copies exactly the chunk files of the systems a page imports and no others.
3
+ export const chunkUrls: Readonly<Record<string, string>>;
package/src/chunks.js ADDED
@@ -0,0 +1,63 @@
1
+ // Generated by tools/build-packages.mjs: 60 chunk files.
2
+ export const chunkUrls = Object.freeze({
3
+ "deimos/2010.bin": new URL("../data/mars-moons/deimos/2010.bin?no-inline", import.meta.url).href,
4
+ "deimos/2011.bin": new URL("../data/mars-moons/deimos/2011.bin?no-inline", import.meta.url).href,
5
+ "deimos/2012.bin": new URL("../data/mars-moons/deimos/2012.bin?no-inline", import.meta.url).href,
6
+ "deimos/2013.bin": new URL("../data/mars-moons/deimos/2013.bin?no-inline", import.meta.url).href,
7
+ "deimos/2014.bin": new URL("../data/mars-moons/deimos/2014.bin?no-inline", import.meta.url).href,
8
+ "deimos/2015.bin": new URL("../data/mars-moons/deimos/2015.bin?no-inline", import.meta.url).href,
9
+ "deimos/2016.bin": new URL("../data/mars-moons/deimos/2016.bin?no-inline", import.meta.url).href,
10
+ "deimos/2017.bin": new URL("../data/mars-moons/deimos/2017.bin?no-inline", import.meta.url).href,
11
+ "deimos/2018.bin": new URL("../data/mars-moons/deimos/2018.bin?no-inline", import.meta.url).href,
12
+ "deimos/2019.bin": new URL("../data/mars-moons/deimos/2019.bin?no-inline", import.meta.url).href,
13
+ "deimos/2020.bin": new URL("../data/mars-moons/deimos/2020.bin?no-inline", import.meta.url).href,
14
+ "deimos/2021.bin": new URL("../data/mars-moons/deimos/2021.bin?no-inline", import.meta.url).href,
15
+ "deimos/2022.bin": new URL("../data/mars-moons/deimos/2022.bin?no-inline", import.meta.url).href,
16
+ "deimos/2023.bin": new URL("../data/mars-moons/deimos/2023.bin?no-inline", import.meta.url).href,
17
+ "deimos/2024.bin": new URL("../data/mars-moons/deimos/2024.bin?no-inline", import.meta.url).href,
18
+ "deimos/2025.bin": new URL("../data/mars-moons/deimos/2025.bin?no-inline", import.meta.url).href,
19
+ "deimos/2026.bin": new URL("../data/mars-moons/deimos/2026.bin?no-inline", import.meta.url).href,
20
+ "deimos/2027.bin": new URL("../data/mars-moons/deimos/2027.bin?no-inline", import.meta.url).href,
21
+ "deimos/2028.bin": new URL("../data/mars-moons/deimos/2028.bin?no-inline", import.meta.url).href,
22
+ "deimos/2029.bin": new URL("../data/mars-moons/deimos/2029.bin?no-inline", import.meta.url).href,
23
+ "mars/2010.bin": new URL("../data/mars-moons/mars/2010.bin?no-inline", import.meta.url).href,
24
+ "mars/2011.bin": new URL("../data/mars-moons/mars/2011.bin?no-inline", import.meta.url).href,
25
+ "mars/2012.bin": new URL("../data/mars-moons/mars/2012.bin?no-inline", import.meta.url).href,
26
+ "mars/2013.bin": new URL("../data/mars-moons/mars/2013.bin?no-inline", import.meta.url).href,
27
+ "mars/2014.bin": new URL("../data/mars-moons/mars/2014.bin?no-inline", import.meta.url).href,
28
+ "mars/2015.bin": new URL("../data/mars-moons/mars/2015.bin?no-inline", import.meta.url).href,
29
+ "mars/2016.bin": new URL("../data/mars-moons/mars/2016.bin?no-inline", import.meta.url).href,
30
+ "mars/2017.bin": new URL("../data/mars-moons/mars/2017.bin?no-inline", import.meta.url).href,
31
+ "mars/2018.bin": new URL("../data/mars-moons/mars/2018.bin?no-inline", import.meta.url).href,
32
+ "mars/2019.bin": new URL("../data/mars-moons/mars/2019.bin?no-inline", import.meta.url).href,
33
+ "mars/2020.bin": new URL("../data/mars-moons/mars/2020.bin?no-inline", import.meta.url).href,
34
+ "mars/2021.bin": new URL("../data/mars-moons/mars/2021.bin?no-inline", import.meta.url).href,
35
+ "mars/2022.bin": new URL("../data/mars-moons/mars/2022.bin?no-inline", import.meta.url).href,
36
+ "mars/2023.bin": new URL("../data/mars-moons/mars/2023.bin?no-inline", import.meta.url).href,
37
+ "mars/2024.bin": new URL("../data/mars-moons/mars/2024.bin?no-inline", import.meta.url).href,
38
+ "mars/2025.bin": new URL("../data/mars-moons/mars/2025.bin?no-inline", import.meta.url).href,
39
+ "mars/2026.bin": new URL("../data/mars-moons/mars/2026.bin?no-inline", import.meta.url).href,
40
+ "mars/2027.bin": new URL("../data/mars-moons/mars/2027.bin?no-inline", import.meta.url).href,
41
+ "mars/2028.bin": new URL("../data/mars-moons/mars/2028.bin?no-inline", import.meta.url).href,
42
+ "mars/2029.bin": new URL("../data/mars-moons/mars/2029.bin?no-inline", import.meta.url).href,
43
+ "phobos/2010.bin": new URL("../data/mars-moons/phobos/2010.bin?no-inline", import.meta.url).href,
44
+ "phobos/2011.bin": new URL("../data/mars-moons/phobos/2011.bin?no-inline", import.meta.url).href,
45
+ "phobos/2012.bin": new URL("../data/mars-moons/phobos/2012.bin?no-inline", import.meta.url).href,
46
+ "phobos/2013.bin": new URL("../data/mars-moons/phobos/2013.bin?no-inline", import.meta.url).href,
47
+ "phobos/2014.bin": new URL("../data/mars-moons/phobos/2014.bin?no-inline", import.meta.url).href,
48
+ "phobos/2015.bin": new URL("../data/mars-moons/phobos/2015.bin?no-inline", import.meta.url).href,
49
+ "phobos/2016.bin": new URL("../data/mars-moons/phobos/2016.bin?no-inline", import.meta.url).href,
50
+ "phobos/2017.bin": new URL("../data/mars-moons/phobos/2017.bin?no-inline", import.meta.url).href,
51
+ "phobos/2018.bin": new URL("../data/mars-moons/phobos/2018.bin?no-inline", import.meta.url).href,
52
+ "phobos/2019.bin": new URL("../data/mars-moons/phobos/2019.bin?no-inline", import.meta.url).href,
53
+ "phobos/2020.bin": new URL("../data/mars-moons/phobos/2020.bin?no-inline", import.meta.url).href,
54
+ "phobos/2021.bin": new URL("../data/mars-moons/phobos/2021.bin?no-inline", import.meta.url).href,
55
+ "phobos/2022.bin": new URL("../data/mars-moons/phobos/2022.bin?no-inline", import.meta.url).href,
56
+ "phobos/2023.bin": new URL("../data/mars-moons/phobos/2023.bin?no-inline", import.meta.url).href,
57
+ "phobos/2024.bin": new URL("../data/mars-moons/phobos/2024.bin?no-inline", import.meta.url).href,
58
+ "phobos/2025.bin": new URL("../data/mars-moons/phobos/2025.bin?no-inline", import.meta.url).href,
59
+ "phobos/2026.bin": new URL("../data/mars-moons/phobos/2026.bin?no-inline", import.meta.url).href,
60
+ "phobos/2027.bin": new URL("../data/mars-moons/phobos/2027.bin?no-inline", import.meta.url).href,
61
+ "phobos/2028.bin": new URL("../data/mars-moons/phobos/2028.bin?no-inline", import.meta.url).href,
62
+ "phobos/2029.bin": new URL("../data/mars-moons/phobos/2029.bin?no-inline", import.meta.url).href,
63
+ });
package/src/index.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ import type { DataSource } from "astraeus";
2
+ import { chunkUrls } from "./chunks.js";
3
+ /** Reads Mars's index (the moons, their fits and the measured errors). A dynamic import, so a bundler keeps it as its own file. */
4
+ export declare const loadIndex: () => Promise<unknown>;
5
+ export { chunkUrls };
6
+ /** Hand this to `mount(element, scene, { data: [dataSource] })` to give Mars's moons their positions. */
7
+ export declare const dataSource: DataSource;
package/src/index.js ADDED
@@ -0,0 +1,13 @@
1
+ import { chunkUrls } from "./chunks.js";
2
+ /** Reads Mars's index (the moons, their fits and the measured errors). A dynamic import, so a bundler keeps it as its own file. */
3
+ export const loadIndex = async () => {
4
+ const loaded = (await import("../data/mars-moons/index.json", { with: { type: "json" } }));
5
+ return loaded.default ?? loaded; // Parcel hands back the JSON itself, Vite and webpack a module with a default
6
+ };
7
+ export { chunkUrls };
8
+ /** Hand this to `mount(element, scene, { data: [dataSource] })` to give Mars's moons their positions. */
9
+ export const dataSource = Object.freeze({
10
+ name: "astraeus-data-mars",
11
+ provides: ["phobos", "deimos"],
12
+ moonPositions: Object.freeze({ centre: "mars", loadIndex, chunkUrls }),
13
+ });