@interstellar-tools/constants 0.61.1 → 0.61.3
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.
- package/LICENSE +21 -0
- package/dist/bodies/comets.d.ts +2 -0
- package/dist/bodies/comets.d.ts.map +1 -1
- package/dist/bodies/comets.js +7 -5
- package/dist/bodies/comets.js.map +1 -1
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Alexander Vassbotn Røyne-Helgesen
|
|
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/dist/bodies/comets.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ import { CometsType } from '@interstellar-tools/types';
|
|
|
5
5
|
* ::: info
|
|
6
6
|
*
|
|
7
7
|
* - Units: `a` (au), `period` (days), `radius` (km); angles `i`, `w`, `om` in degrees.
|
|
8
|
+
* - `orbit.angle` is the true anomaly at J2000, from the mean anomaly in JPL Horizons' osculating
|
|
9
|
+
* elements at J2000, converted with this dataset's `e`.
|
|
8
10
|
* - Some entries may encode integration direction via a negative `period`; the table reflects the raw value.
|
|
9
11
|
*
|
|
10
12
|
* - Sources: compiled from public references, mainly NASA, NASA JPL, ESA and Wikipedia. See [data sources](https://github.com/phun-ky/interstellar-tools/blob/main/NOTICE.md#data).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comets.d.ts","sourceRoot":"","sources":["../../src/bodies/comets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAW,MAAM,2BAA2B,CAAC;AAEhE
|
|
1
|
+
{"version":3,"file":"comets.d.ts","sourceRoot":"","sources":["../../src/bodies/comets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAW,MAAM,2BAA2B,CAAC;AAEhE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,MAAM,EAAE,UA+FU,CAAC"}
|
package/dist/bodies/comets.js
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
* ::: info
|
|
5
5
|
*
|
|
6
6
|
* - Units: `a` (au), `period` (days), `radius` (km); angles `i`, `w`, `om` in degrees.
|
|
7
|
+
* - `orbit.angle` is the true anomaly at J2000, from the mean anomaly in JPL Horizons' osculating
|
|
8
|
+
* elements at J2000, converted with this dataset's `e`.
|
|
7
9
|
* - Some entries may encode integration direction via a negative `period`; the table reflects the raw value.
|
|
8
10
|
*
|
|
9
11
|
* - Sources: compiled from public references, mainly NASA, NASA JPL, ESA and Wikipedia. See [data sources](https://github.com/phun-ky/interstellar-tools/blob/main/NOTICE.md#data).
|
|
@@ -42,8 +44,8 @@ export const COMETS = [
|
|
|
42
44
|
w: 111.33,
|
|
43
45
|
/** Longitude of the ascending node in degrees */
|
|
44
46
|
om: 58.42,
|
|
45
|
-
/**
|
|
46
|
-
angle:
|
|
47
|
+
/** True anomaly at J2000 */
|
|
48
|
+
angle: 2.97966,
|
|
47
49
|
/** Orbital period in days */
|
|
48
50
|
period: { value: 27576, unit: 'd' }, // ~76 years
|
|
49
51
|
/** Perihelion distance in AU */
|
|
@@ -68,7 +70,7 @@ export const COMETS = [
|
|
|
68
70
|
i: 89.4,
|
|
69
71
|
w: 130.6,
|
|
70
72
|
om: 282.5,
|
|
71
|
-
angle:
|
|
73
|
+
angle: 2.550719,
|
|
72
74
|
period: { value: -926530, unit: 'd' }, // ~2,537 years (Kepler's third law with a = 186 au),
|
|
73
75
|
q: 0.914
|
|
74
76
|
},
|
|
@@ -88,7 +90,7 @@ export const COMETS = [
|
|
|
88
90
|
i: 7.04, // Inclination in degrees
|
|
89
91
|
w: 12.78, // Argument of perihelion in degrees
|
|
90
92
|
om: 50.14, // Longitude of ascending node in degrees
|
|
91
|
-
angle:
|
|
93
|
+
angle: 3.32542,
|
|
92
94
|
period: { value: -2355, unit: 'd' }, // ~6.45 years
|
|
93
95
|
q: 1.243 // Perihelion distance in AU
|
|
94
96
|
},
|
|
@@ -109,7 +111,7 @@ export const COMETS = [
|
|
|
109
111
|
i: 11.8,
|
|
110
112
|
w: 186.5,
|
|
111
113
|
om: 334.6,
|
|
112
|
-
angle:
|
|
114
|
+
angle: 3.479299,
|
|
113
115
|
period: { value: -1204, unit: 'd' }, // ~3.3 years
|
|
114
116
|
q: 0.34
|
|
115
117
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comets.js","sourceRoot":"","sources":["../../src/bodies/comets.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"comets.js","sourceRoot":"","sources":["../../src/bodies/comets.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH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