@zodiacs/engine 0.1.1-rc.14 → 0.1.1-rc.15
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/CHANGELOG.md +364 -6
- package/LICENSING.md +180 -14
- package/NOTICE +73 -9
- package/README.md +116 -69
- package/dist/api-CoB_kqE3.d.ts +198 -0
- package/dist/chunk-CWI4YUDL.js +355 -0
- package/dist/chunk-KFTJMMG7.js +61 -0
- package/dist/chunk-KHBLFXFG.js +227 -0
- package/dist/{chunk-NAJ735VN.js → chunk-MFF3VKO3.js} +1 -1
- package/dist/chunk-OYGRVGXD.js +25 -0
- package/dist/{chunk-4OSOCZY2.js → chunk-ZHVI3KWJ.js} +21 -6
- package/dist/{chunk-RETEVD4F.js → chunk-ZZPITHQS.js} +115 -110
- package/dist/crossings.d.ts +1 -1
- package/dist/deltat.d.ts +8 -8
- package/dist/geo.d.ts +137 -8
- package/dist/geo.js +414 -109
- package/dist/index.d.ts +7 -201
- package/dist/index.js +28 -305
- package/dist/{internal-math-BE2hcSHd.d.ts → internal-math-BbktkHCc.d.ts} +14 -1
- package/dist/internal-math.d.ts +2 -2
- package/dist/internal-math.js +2 -2
- package/dist/internal.d.ts +2 -1
- package/dist/internal.js +4 -4
- package/dist/receipt.d.ts +56 -36
- package/dist/receipt.js +188 -33
- package/dist/timing.d.ts +414 -0
- package/dist/timing.js +851 -0
- package/dist/{types-CeafogFp.d.ts → types-BsWaqwU_.d.ts} +35 -4
- package/dist/tzdb-2025c-00-6GVG6RYL.js +6 -0
- package/dist/tzdb-2025c-01-CEYMG3LE.js +6 -0
- package/dist/tzdb-2025c-02-NWQJCVUU.js +6 -0
- package/dist/tzdb-2025c-03-PLHP6VH4.js +6 -0
- package/dist/tzdb-2025c-04-MEKUJA6M.js +6 -0
- package/dist/tzdb-2025c-05-3K5YKZBL.js +6 -0
- package/dist/tzdb-2025c-06-L2VV5XJV.js +6 -0
- package/dist/tzdb-2025c-07-H3GLGJGY.js +6 -0
- package/dist/tzdb-2025c-08-DA7QQIGD.js +6 -0
- package/dist/tzdb-2025c-09-MTXIO3QL.js +6 -0
- package/dist/tzdb-2025c-10-ASL4UW5C.js +6 -0
- package/dist/tzdb-2025c-11-EQEOANYB.js +6 -0
- package/dist/tzdb-2025c-12-NKCCXJ5G.js +6 -0
- package/dist/tzdb-2025c-13-DYTF3UC7.js +6 -0
- package/dist/tzdb-2025c-14-C25H45R5.js +6 -0
- package/dist/tzdb-2025c-15-7OYYZWRY.js +6 -0
- package/dist/vedic.d.ts +394 -0
- package/dist/vedic.js +947 -0
- package/package.json +11 -3
- package/dist/chunk-GFT24GFR.js +0 -25
package/NOTICE
CHANGED
|
@@ -30,8 +30,8 @@ dist/deltat.js itself.
|
|
|
30
30
|
Its values from 1941 come from the United States Naval Observatory
|
|
31
31
|
(historic_deltat.data and tai-utc.dat, US Government works) and from the
|
|
32
32
|
International Earth Rotation and Reference Systems Service (IERS EOP 20 C04
|
|
33
|
-
and Bulletin A, finals2000A.all
|
|
34
|
-
|
|
33
|
+
and Bulletin A, finals2000A.all; IERS, https://www.iers.org/). They enter the
|
|
34
|
+
table as 91 values in 0.01 s.
|
|
35
35
|
|
|
36
36
|
GeoNames
|
|
37
37
|
--------
|
|
@@ -46,13 +46,77 @@ licensed under Creative Commons Attribution 4.0 International (CC BY 4.0):
|
|
|
46
46
|
The Zodiacs.org index rounds latitude and longitude to two decimal places,
|
|
47
47
|
interns timezone, administrative-area, and country strings, sorts cities by
|
|
48
48
|
population, and shards records by the first folded ASCII letter. No GeoNames
|
|
49
|
-
records are bundled in this npm package
|
|
49
|
+
records are bundled in this npm package: the country names in its Gregorian
|
|
50
|
+
adoption table come from tzdata (below). If you host, copy, or redistribute a
|
|
50
51
|
compatible GeoNames-derived index, retain this notice and attribution.
|
|
51
52
|
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
Time zone, leap-second and UT1 data
|
|
54
|
+
-----------------------------------
|
|
54
55
|
|
|
55
|
-
@zodiacs/engine/geo
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
the
|
|
56
|
+
@zodiacs/engine/geo ships zone histories before 1970 compiled from the IANA
|
|
57
|
+
Time Zone Database 2025c with its backzone file (tzdata2025c.tar.gz, sha256
|
|
58
|
+
4aa79e4effee53fc4029ffe5f6ebe97937282ebcdf386d5d2da91ce84142f957), which is in
|
|
59
|
+
the public domain: https://www.iana.org/time-zones. From 1970 local time
|
|
60
|
+
comes from the host runtime's Intl/ICU data.
|
|
61
|
+
|
|
62
|
+
The core carries TAI - UTC from the IERS leap-second list, leap-seconds.list,
|
|
63
|
+
updated 2026-07-06 through IERS Bulletin C 72 and expiring 2027-06-28 (sha256
|
|
64
|
+
db5a895f16853b03bfc865e8d68f9fc8710ef1740e3400c701cd46a5bbbc3433), from the
|
|
65
|
+
IERS Earth Orientation Centre at Paris Observatory,
|
|
66
|
+
https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list, whose header
|
|
67
|
+
states: "This file is in the public domain."
|
|
68
|
+
|
|
69
|
+
It carries UT1 - UTC for 1972 derived from the IERS EOP 20 C04 series,
|
|
70
|
+
eopc04.1962-now of 2026-09-28 (sha256
|
|
71
|
+
e16cfbba34574b8bad3cf81e2e56a84c2b4bbfd3c822cf9ebdd860bf97d711dc), from the
|
|
72
|
+
IERS Earth Orientation Centre at Paris Observatory,
|
|
73
|
+
https://hpiers.obspm.fr/iers/eop/eopc04/ (IERS, https://www.iers.org/), and
|
|
74
|
+
UT1 - UTC from 1973-01-02 from IERS finals2000A.all (Bulletin A) of
|
|
75
|
+
2026-09-24, from the IERS Rapid Service/Prediction Centre at the US Naval
|
|
76
|
+
Observatory, https://maia.usno.navy.mil/ (IERS, https://www.iers.org/).
|
|
77
|
+
|
|
78
|
+
The Earth Orientation Centre gives this technical note for the C04 series:
|
|
79
|
+
|
|
80
|
+
Bizouard, C., Lambert, S., Gattano, C., Becker, O. & Richard, J.-Y. 2019,
|
|
81
|
+
The IERS EOP 14C04 solution for Earth orientation parameters consistent
|
|
82
|
+
with ITRF 2014. J. Geod. 93, 621-633. doi:10.1007/s00190-018-1186-3
|
|
83
|
+
|
|
84
|
+
Gregorian adoption dates
|
|
85
|
+
------------------------
|
|
86
|
+
|
|
87
|
+
@zodiacs/engine/geo carries a table of when 18 countries took the Gregorian
|
|
88
|
+
calendar (GREGORIAN_ADOPTION, in dist/geo.js). Its dates come from these
|
|
89
|
+
public-domain sources:
|
|
90
|
+
|
|
91
|
+
IANA Time Zone Database 2025c, file calendars, which quotes H. Grotefend,
|
|
92
|
+
Taschenbuch der Zeitrechnung des deutschen Mittelalters und der Neuzeit,
|
|
93
|
+
ed. O. Grotefend (Hannover: Hahnsche Buchhandlung, 1941), pp. 26-28.
|
|
94
|
+
H. Grotefend, Zeitrechnung des deutschen Mittelalters und der Neuzeit,
|
|
95
|
+
vol. 1 (Hannover: Hahn, 1891), pp. 133-134.
|
|
96
|
+
H. Grotefend, Taschenbuch der Zeitrechnung des deutschen Mittelalters und
|
|
97
|
+
der Neuzeit (Hannover and Leipzig: Hahn, 1898), pp. 23-24.
|
|
98
|
+
|
|
99
|
+
Its country names come from the IANA Time Zone Database 2025c, file
|
|
100
|
+
iso3166.tab, which is in the public domain.
|
|
101
|
+
|
|
102
|
+
Star positions and motions
|
|
103
|
+
--------------------------
|
|
104
|
+
|
|
105
|
+
@zodiacs/engine/vedic carries 22 published values for the objects of four
|
|
106
|
+
star-based ayanamsas, in dist/vedic.js. Twenty of them were obtained through
|
|
107
|
+
the VizieR catalogue access tool (DOI 10.26093/cds/vizier) and the SIMBAD
|
|
108
|
+
database (M. Wenger et al. 2000, A&AS 143, 9) of the CDS, Strasbourg
|
|
109
|
+
Astronomical Observatory, France:
|
|
110
|
+
|
|
111
|
+
F. van Leeuwen 2007, A&A 474, 653 (VizieR I/311, Hipparcos, the New
|
|
112
|
+
Reduction): the positions, proper motions and parallaxes of Spica,
|
|
113
|
+
zeta Psc A and delta Cnc.
|
|
114
|
+
G. A. Gontcharov 2006, Astronomy Letters 32, 759 (VizieR III/252, Pulkovo
|
|
115
|
+
radial velocities): the radial velocity of zeta Psc A.
|
|
116
|
+
B. Famaey et al. 2005, A&A 430, 165 (VizieR J/A+A/430/165,
|
|
117
|
+
DOI 10.26093/cds/vizier.34300165): the radial velocity of delta Cnc.
|
|
118
|
+
SIMBAD: the radial velocity of Spica, and the ICRS position of Sgr A*
|
|
119
|
+
(L. Petrov et al. 2011).
|
|
120
|
+
|
|
121
|
+
The other two, the proper motion of Sgr A*, come from M. J. Reid and
|
|
122
|
+
A. Brunthaler 2004, ApJ 616, 872, table 2. LICENSING.md gives the terms.
|
package/README.md
CHANGED
|
@@ -2,18 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
Pure TypeScript astrology calculations for browsers and Node.js. The package
|
|
4
4
|
computes tropical planetary positions, natal charts, transit snapshots,
|
|
5
|
-
synastry, secondary progressions, Moon phase, and Saturn-return seasons
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
synastry, secondary progressions, Moon phase, and Saturn-return seasons, and,
|
|
6
|
+
in separate entries, Hellenistic timing techniques and sidereal positions and
|
|
7
|
+
Jyotish techniques. Its calculations are synchronous; only loading a zone's
|
|
8
|
+
history before 1970 (`prepareLocalTime`) and the GeoNames client, both in
|
|
9
|
+
`@zodiacs/engine/geo`, are asynchronous. It is ESM-only, has no import-time
|
|
10
|
+
side effects, and performs no network request from its core entry point. Its
|
|
11
|
+
one runtime side effect is the ΔT it installs in astronomy-engine (see Time
|
|
12
|
+
below).
|
|
13
|
+
|
|
14
|
+
**Release candidate: 0.1.1-rc.15.** Public npm lookups for this package returned
|
|
11
15
|
404 on 2026-09-26. The expansion release remains held for review and operator
|
|
12
16
|
publication authority. Install the exact candidate tarball supplied with the
|
|
13
17
|
review, retaining its SHA-256 receipt:
|
|
14
18
|
|
|
15
19
|
```sh
|
|
16
|
-
pnpm add ./zodiacs-engine-0.1.1-rc.
|
|
20
|
+
pnpm add ./zodiacs-engine-0.1.1-rc.15.tgz
|
|
17
21
|
```
|
|
18
22
|
|
|
19
23
|
The package runs in browsers through a bundler, and in Node.js 20.19.0 or a
|
|
@@ -28,7 +32,7 @@ themselves and are not affected.
|
|
|
28
32
|
|
|
29
33
|
From a source checkout, run `npm ci` and `npm run build`, then
|
|
30
34
|
`npm pack --ignore-scripts`. Test the packed file in a clean consumer using
|
|
31
|
-
`npm run consumer:smoke -- /absolute/path/to/zodiacs-engine-0.1.1-rc.
|
|
35
|
+
`npm run consumer:smoke -- /absolute/path/to/zodiacs-engine-0.1.1-rc.15.tgz`.
|
|
32
36
|
The smoke check
|
|
33
37
|
downloads the artifact's public dependencies and TypeScript 5.9.3; its output
|
|
34
38
|
records the artifact hash and runtime, and it removes its temporary consumer
|
|
@@ -57,19 +61,27 @@ dependencies afresh with `npm ci` and takes nothing from the checkout's
|
|
|
57
61
|
needs merge commits: a squash or rebase merge drops the source commits it
|
|
58
62
|
checks against, and the check then fails.
|
|
59
63
|
|
|
60
|
-
This candidate
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
`
|
|
72
|
-
|
|
64
|
+
This candidate reads a chart's instant on a time basis: from 1972 to
|
|
65
|
+
2027-10-02 as UTC, with TT from the leap seconds and UT1 from IERS UT1 − UTC,
|
|
66
|
+
and otherwise as UT1 with the ΔT model, or on UT1 or TT when `timeScale` says
|
|
67
|
+
so (see Time). From 1972 to 2027-10-02 a chart's angles therefore differ from
|
|
68
|
+
rc.14's by UT1 − UTC, and its positions by less: in 1,801 synthetic charts the
|
|
69
|
+
ascendant by up to 45.0″ and the Moon by up to 0.462″, and in a review's wider
|
|
70
|
+
sample by up to 101.03″ and 0.4885″, near 65° S
|
|
71
|
+
(`docs/evidence/rc15-20260929/review-sample.json`). Before and after that span
|
|
72
|
+
its angles and houses are unchanged. `@zodiacs/engine/geo` reads wall times before 1970 on the
|
|
73
|
+
tzdb 2025c history it ships, which `prepareLocalTime` must load first, and can
|
|
74
|
+
read a birthplace's own mean time and a Julian date; unknown options and form
|
|
75
|
+
keys now throw, and `lmt` means that a local-mean-time clock read the time. Two
|
|
76
|
+
entry points are new, `@zodiacs/engine/timing` and `@zodiacs/engine/vedic`, and
|
|
77
|
+
the root imports neither. Placidus no longer falls back to whole signs just
|
|
78
|
+
below the polar limit. Receipts gain a conventions set that records the time
|
|
79
|
+
basis; receipts of the earlier sets, rc.13's and rc.14's included, stay
|
|
80
|
+
readable and replay. The package gate is now a budget for each entry point's
|
|
81
|
+
import graph and a stated cap for the whole package (CHANGELOG.md). The
|
|
82
|
+
ephemeris is still astronomy-engine 2.1.19. See CHANGELOG.md for the release
|
|
83
|
+
history and `docs/evidence/rc15-20260929/` for this candidate's checks. Site
|
|
84
|
+
adoption is reviewed separately.
|
|
73
85
|
|
|
74
86
|
## Natal chart in 10 lines
|
|
75
87
|
|
|
@@ -106,6 +118,9 @@ const birth = resolveBirth({
|
|
|
106
118
|
const chart = natalChart(birth);
|
|
107
119
|
```
|
|
108
120
|
|
|
121
|
+
For a date before 1970, first `await prepareLocalTime(date, timeZone)`, also
|
|
122
|
+
from `@zodiacs/engine/geo`: it loads the zone's history (see Time).
|
|
123
|
+
|
|
109
124
|
## Compatibility
|
|
110
125
|
|
|
111
126
|
```ts
|
|
@@ -156,8 +171,12 @@ for (const aspect of today.aspects) {
|
|
|
156
171
|
body crosses a longitude, and `searchLongitudeCrossings` does the same under
|
|
157
172
|
a sample budget. `@zodiacs/engine/crossings` provides the same solver for a
|
|
158
173
|
longitude function of your own, without the ephemeris.
|
|
159
|
-
- `@zodiacs/engine/geo` provides IANA local-time resolution
|
|
160
|
-
separately hosted, sharded GeoNames index.
|
|
174
|
+
- `@zodiacs/engine/geo` provides IANA local-time resolution, Julian calendar
|
|
175
|
+
dates and a client for a separately hosted, sharded GeoNames index.
|
|
176
|
+
- `@zodiacs/engine/timing` provides profections, firdaria, zodiacal releasing
|
|
177
|
+
and solar arc directions (see `docs/timing-hellenistic.md`).
|
|
178
|
+
- `@zodiacs/engine/vedic` provides the sidereal zodiac: ayanamsas, sidereal
|
|
179
|
+
charts, nakshatras, vargas, KP sub-lords and dashas (see `docs/vedic.md`).
|
|
161
180
|
|
|
162
181
|
Returned longitudes use degrees in `[0, 360)` and positions include sign and degree
|
|
163
182
|
annotations. Charts use the tropical ecliptic of date. Planetary positions are
|
|
@@ -473,11 +492,14 @@ slots, accessor slots, non-array iterables and simultaneous `dst-gap`/`dst-fold`
|
|
|
473
492
|
claims reject with a `RangeError` that does not include supplied flag values.
|
|
474
493
|
|
|
475
494
|
`dst-gap`, `dst-fold` and `lmt` remain caller assertions: a UTC instant alone
|
|
476
|
-
cannot verify a historical local-time resolution.
|
|
495
|
+
cannot verify a historical local-time resolution. The geo resolver sets
|
|
496
|
+
`dst-gap` or `dst-fold` for a skipped or repeated wall time of any cause (the
|
|
497
|
+
names are kept; its `jump.cause` gives the cause) and `lmt` when a local mean
|
|
498
|
+
time clock read it. `no-time`,
|
|
477
499
|
`polar-fallback` and `outside-reference-span` may be echoed for compatibility,
|
|
478
500
|
but must agree with the calculation. Set `timeKnown: false` for unknown time; a flag never overrides that
|
|
479
501
|
setting. A fallback assertion requires the actual requested Placidus calculation
|
|
480
|
-
to produce whole-sign houses,
|
|
502
|
+
to produce whole-sign houses, which it does only inside the polar circle.
|
|
481
503
|
|
|
482
504
|
`natalChart` stores only distinct time-resolution assertions in `chart.input.flags`
|
|
483
505
|
and derives result flags once. This is canonical semantic input, not a lossless
|
|
@@ -507,11 +529,13 @@ houses, including in either polar hemisphere. At exact geographic poles no
|
|
|
507
529
|
point physically rises; at ecliptic/horizon coincidence an ascendant is not
|
|
508
530
|
unique. Those degenerate configurations are outside the verified angle scope.
|
|
509
531
|
Near tangencies the selected axis can change by 180 degrees. Placidus uses a
|
|
510
|
-
bounded iteration and
|
|
511
|
-
|
|
532
|
+
bounded iteration and, where it does not settle, bisection on each cusp's
|
|
533
|
+
bracket, which cannot fail outside the polar circle; it never returns the last
|
|
534
|
+
unconverged iterate. Near the polar limit a cusp carries the rounding of asin
|
|
535
|
+
near ±1: up to 6.5e-7° one unit in the last place below it.
|
|
512
536
|
|
|
513
537
|
See [CHANGELOG.md](CHANGELOG.md) for candidate changes. Reference coverage and
|
|
514
|
-
known limits are recorded in the site [platform evidence ledger](https://github.com/
|
|
538
|
+
known limits are recorded in the site [platform evidence ledger](https://github.com/zodiacs-org/site/blob/75ae549c6bcedba67ccce7d467e1b54af0c83070/docs/platform/EVIDENCE.md).
|
|
515
539
|
The date parser's representable range is not a claim of astronomical accuracy
|
|
516
540
|
across that range. Reference cases are finite; broader numerical scope review
|
|
517
541
|
remains a release gate.
|
|
@@ -619,43 +643,49 @@ only within `REFERENCE_SPAN`, and it falls away from it. The Sun's ecliptic
|
|
|
619
643
|
latitude, which in reality stays within about 1.2″ of zero, comes out as
|
|
620
644
|
−9.9″ on 1000-06-01, +13.3″ on 3000-06-01 and −57.5″ on 3998-09-02.
|
|
621
645
|
|
|
622
|
-
Birth settings accept only a `houseSystem` from the thirteen above
|
|
623
|
-
a
|
|
624
|
-
`null` and other unsupported values throw
|
|
625
|
-
coordinates are absent. Latitude and longitude
|
|
626
|
-
within `[-90, 90]` and
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
646
|
+
Birth settings accept only a `houseSystem` from the thirteen above, a boolean
|
|
647
|
+
`timeKnown` and a `timeScale` (see Time). Omitting them defaults to `"whole"`,
|
|
648
|
+
`true` and `"utc"`; explicit `null` and other unsupported values throw
|
|
649
|
+
`RangeError`, including when coordinates are absent. Latitude and longitude
|
|
650
|
+
must be supplied together as finite numbers within `[-90, 90]` and
|
|
651
|
+
`[-180, 180]` respectively.
|
|
652
|
+
|
|
653
|
+
## Time
|
|
654
|
+
|
|
655
|
+
A chart reads the Earth's rotation (sidereal time, the angles) on UT1 and the
|
|
656
|
+
planets on Terrestrial Time (TT). `utc` is on UTC unless `timeScale` says
|
|
657
|
+
`"ut1"` or `"tt"`; any other value throws `RangeError`.
|
|
658
|
+
|
|
659
|
+
- From 1972 to 2027-10-02, TT = UTC + (TAI − UTC) + 32.184 s, with TAI − UTC
|
|
660
|
+
from the IERS leap-second list of 2026-07-06 (it expires 2027-06-28; its
|
|
661
|
+
last value is carried after that), and UT1 = UTC + (UT1 − UTC) from IERS:
|
|
662
|
+
the EOP 20 C04 series in 1972, then `finals2000A.all` of 2026-09-24,
|
|
663
|
+
observed then predicted. ΔT = TT − UT1 is then reported with
|
|
664
|
+
`model: "iers-utc/1"`.
|
|
665
|
+
- Before 1972 and after that table the instant is read as UT1, and TT = UT1 +
|
|
666
|
+
ΔT from the engine's model `zodiacs-deltat/1`: Stephenson, Morrison &
|
|
667
|
+
Hohenkerk 2016 (CC BY 4.0) up to 1941, then USNO and IERS observations,
|
|
668
|
+
Bulletin A's predictions and a damped extrapolation, with a 1-σ band. After
|
|
669
|
+
the table UT1 − UTC is taken as 0 within ±0.9 s.
|
|
670
|
+
- `deltaT` (seconds) in a birth input pins ΔT; the chart reports
|
|
671
|
+
`model: "pinned"`.
|
|
672
|
+
|
|
673
|
+
`chart.deltaT` is `{ seconds, sigma, model, table, tableDigest, segment }`, and
|
|
674
|
+
`chart.timeScale` says how the instant became UT1 and TT (`{ input, basis,
|
|
675
|
+
ut1MinusUtc, leapSeconds }`). `@zodiacs/engine/deltat` exports the model with
|
|
676
|
+
no dependencies. astronomy-engine keeps one ΔT for its whole module; every
|
|
677
|
+
engine call leaves the model installed, and code that calls astronomy-engine
|
|
678
|
+
directly should install it too: `SetDeltaTFunction(deltaT)`.
|
|
679
|
+
|
|
680
|
+
`@zodiacs/engine/geo` reads wall times before 1970 on the tzdb 2025c history
|
|
681
|
+
with backzone, shipped as 16 lazily imported chunks: `prepareLocalTime(date,
|
|
682
|
+
timeZone)` loads the one a zone needs, and a wall time before 1970 throws until
|
|
683
|
+
it has. From 1970 the host's Intl answers. A `longitude` reads a time in a
|
|
684
|
+
zone's local mean time era on the birthplace's own mean time; `calendar:
|
|
685
|
+
"julian"` takes an Old Style date, and `country` adds a note from the country's
|
|
686
|
+
Gregorian adoption. Each resolution names the tzdb version, the transition
|
|
687
|
+
behind the offset and its cause (`dst`, `legal-change` or `date-line`).
|
|
688
|
+
[docs/time.md](docs/time.md) describes every field.
|
|
659
689
|
|
|
660
690
|
## Accuracy and licensing
|
|
661
691
|
|
|
@@ -670,9 +700,12 @@ Table S15 in the package's ΔT module (`@zodiacs/engine/deltat`, which the build
|
|
|
670
700
|
places in a shared chunk under `dist/` that `dist/deltat.js` re-exports) are
|
|
671
701
|
CC BY 4.0, attributed in [NOTICE](NOTICE).
|
|
672
702
|
|
|
673
|
-
The npm package contains no place
|
|
674
|
-
|
|
675
|
-
|
|
703
|
+
The npm package contains no place database. It carries tzdb 2025c's zone
|
|
704
|
+
histories before 1970, the IERS leap-second list, an IERS UT1 − UTC table, a
|
|
705
|
+
table of Gregorian adoption dates from public-domain sources, and 22 catalogue
|
|
706
|
+
values for the stars of the Vedic ayanamsas; [NOTICE](NOTICE) records their
|
|
707
|
+
sources and the GeoNames attribution, and downstream users should retain it.
|
|
708
|
+
[LICENSING.md](LICENSING.md) gives the terms of each.
|
|
676
709
|
|
|
677
710
|
## Internal site entry points
|
|
678
711
|
|
|
@@ -680,7 +713,8 @@ which downstream users should retain.
|
|
|
680
713
|
compatibility boundaries for Zodiacs.org. They let the site consume the exact
|
|
681
714
|
package implementation while keeping its scanner-oriented functions and lazy
|
|
682
715
|
bundle boundary intact. They are not covered by semantic-versioning guarantees;
|
|
683
|
-
third-party code must use the documented root
|
|
716
|
+
third-party code must use the documented entry points: the root, `/geo`,
|
|
717
|
+
`/timing`, `/vedic`, `/receipt`, `/crossings` and `/deltat`.
|
|
684
718
|
|
|
685
719
|
## GeoNames request recovery
|
|
686
720
|
|
|
@@ -766,6 +800,19 @@ and that the Moon has neither correction. Receipts from rc.3 to rc.7 are still
|
|
|
766
800
|
read, each under the conventions its engine recorded, and a set is accepted
|
|
767
801
|
only from the engine versions that wrote it.
|
|
768
802
|
|
|
803
|
+
The current set, written from 0.1.1-rc.15 on, also records the instant's scale
|
|
804
|
+
(`receipt.timeScale`) and its time basis (`result.timeScale`), and a local
|
|
805
|
+
resolution records the calendar, the tzdb version and form, the clock, the
|
|
806
|
+
transition behind the offset and any birthplace mean time, each checked
|
|
807
|
+
against the offsets and flags. Receipts under the rc.8 set (rc.8 to rc.14),
|
|
808
|
+
which read the instant as UT1, stay readable and replay as UTC requests (see
|
|
809
|
+
docs/time.md). A receipt's engine, ephemeris and package versions must be
|
|
810
|
+
SemVer 2.0.0 versions. The codec accepts an earlier set only under the versions
|
|
811
|
+
that wrote it, and compares the engine's version in SemVer order with
|
|
812
|
+
0.1.1-rc.15, which brought the current set, and with the releases that brought
|
|
813
|
+
each house system: a receipt of the current set that names a version before
|
|
814
|
+
0.1.1-rc.15, such as 0.1.1-rc.14.1 or 0.1.1-beta, is refused.
|
|
815
|
+
|
|
769
816
|
`natalReplayInput` recovers the recorded request. It does not select or install
|
|
770
817
|
the original engine. Recalculation with another engine, ephemeris dependency or
|
|
771
818
|
runtime may differ; verify trusted artifact identity and runtime provenance
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { DeltaT } from './deltat.js';
|
|
2
|
+
import { B as BodyName, b as Chart, d as BirthInput, D as DateInput, e as ChartPoints, M as MoonPhase, a as BodyPosition, S as SynastryResult, f as TransitResult } from './types-BsWaqwU_.js';
|
|
3
|
+
import { LongitudeCrossing, CrossingSearchOptions, CrossingSearchResult } from './crossings.js';
|
|
4
|
+
|
|
5
|
+
/** Geometry over full ecliptic positions; no independent ephemeris is implied. */
|
|
6
|
+
|
|
7
|
+
/** Site-compatible maximum orb, in degrees, for a pair without Sun or Moon. */
|
|
8
|
+
declare const DECLINATION_ORB = 1;
|
|
9
|
+
/** Site-compatible maximum orb when either identifier is exactly Sun or Moon. */
|
|
10
|
+
declare const DECLINATION_ORB_LUMINARY = 1.5;
|
|
11
|
+
interface DeclinationOrbPolicy {
|
|
12
|
+
/** Inclusive maximum difference in degrees for an ordinary pair. */
|
|
13
|
+
orb: number;
|
|
14
|
+
/** Inclusive maximum when Sun or Moon is a member of the pair. */
|
|
15
|
+
luminaryOrb: number;
|
|
16
|
+
}
|
|
17
|
+
declare const DEFAULT_DECLINATION_ORB_POLICY: Readonly<DeclinationOrbPolicy>;
|
|
18
|
+
/**
|
|
19
|
+
* Horizontal unit-vector magnitude below which RA is numerically undefined.
|
|
20
|
+
* This is a floating-point singularity convention, not a physical error bound.
|
|
21
|
+
*/
|
|
22
|
+
declare const RA_POLE_TOLERANCE: number;
|
|
23
|
+
/**
|
|
24
|
+
* Degrees of ecliptic latitude within which a supplied row labelled exactly
|
|
25
|
+
* "Sun" is never flagged out of bounds by declinationsForBodies, by convention
|
|
26
|
+
* (0.001°, 3.6″). A chart's own Sun, in chartDeclinations, is exempt at any
|
|
27
|
+
* latitude. See outOfBounds.
|
|
28
|
+
*/
|
|
29
|
+
declare const SUN_BOUND_LATITUDE = 0.001;
|
|
30
|
+
interface EquatorialCoordinates {
|
|
31
|
+
/** Right ascension in degrees [0,360), or null at a numerical celestial pole. */
|
|
32
|
+
ra: number | null;
|
|
33
|
+
/** Declination in degrees [-90,90], north positive. */
|
|
34
|
+
dec: number;
|
|
35
|
+
/** False exactly when ra is null; consult RA_POLE_TOLERANCE. */
|
|
36
|
+
raDefined: boolean;
|
|
37
|
+
}
|
|
38
|
+
interface DeclinationBody {
|
|
39
|
+
body: string;
|
|
40
|
+
/** Ecliptic longitude in degrees; finite values wrap into [0,360). */
|
|
41
|
+
lon: number;
|
|
42
|
+
/** Full ecliptic latitude in degrees [-90,90], not an assumed zero. */
|
|
43
|
+
lat: number;
|
|
44
|
+
}
|
|
45
|
+
interface DeclinationRow extends DeclinationBody, EquatorialCoordinates {
|
|
46
|
+
/**
|
|
47
|
+
* Strictly |declination| > the supplied true obliquity, with no uncertainty
|
|
48
|
+
* allowance, except for the Sun, by convention. In chartDeclinations the
|
|
49
|
+
* chart's own Sun row is never out of bounds, at any latitude. In
|
|
50
|
+
* declinationsForBodies a row labelled exactly "Sun" is exempt while its
|
|
51
|
+
* ecliptic latitude is within SUN_BOUND_LATITUDE, and flagged by the strict
|
|
52
|
+
* rule beyond it. The real Sun does pass the bound at about half of all
|
|
53
|
+
* solstices, by up to about 1.1″, but the ephemeris's solar declination is
|
|
54
|
+
* off by up to about 2.7″ near the present and its solar latitude by tens of
|
|
55
|
+
* arcseconds far from it (−68″ in year 2, +26″ in 3902), more than the
|
|
56
|
+
* effect, so the flag could not say which.
|
|
57
|
+
*/
|
|
58
|
+
outOfBounds: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* |declination| − trueObliquity, in arcseconds: positive beyond the bound,
|
|
61
|
+
* negative inside it. For every row but the exempt Sun, outOfBounds is
|
|
62
|
+
* exactly boundMarginArcsec > 0. The flag describes the ephemeris's position;
|
|
63
|
+
* it agrees with the real sky only where |boundMarginArcsec| exceeds the
|
|
64
|
+
* ephemeris's declination error for that body (see the README).
|
|
65
|
+
*/
|
|
66
|
+
boundMarginArcsec: number;
|
|
67
|
+
}
|
|
68
|
+
type DeclinationAspectType = "parallel" | "contraparallel";
|
|
69
|
+
interface DeclinationAspect {
|
|
70
|
+
a: string;
|
|
71
|
+
b: string;
|
|
72
|
+
type: DeclinationAspectType;
|
|
73
|
+
/**
|
|
74
|
+
* Degrees from the selected parallel or contraparallel: the exact
|
|
75
|
+
* min(|decA − decB|, |decA + decB|) of the two declination doubles,
|
|
76
|
+
* rounded to the nearest double.
|
|
77
|
+
*/
|
|
78
|
+
orb: number;
|
|
79
|
+
/** Inclusive maximum allowed by the explicit pair policy. */
|
|
80
|
+
maximumOrb: number;
|
|
81
|
+
decA: number;
|
|
82
|
+
decB: number;
|
|
83
|
+
/**
|
|
84
|
+
* Ecliptic-longitude separation of the two supplied longitudes, reduced
|
|
85
|
+
* exactly modulo 360, in degrees [0,180]; not sky separation. Rounded once.
|
|
86
|
+
*/
|
|
87
|
+
separation: number;
|
|
88
|
+
}
|
|
89
|
+
interface Declinations {
|
|
90
|
+
/**
|
|
91
|
+
* True obliquity of date in degrees: the bound for out-of-bounds flags. From
|
|
92
|
+
* chartDeclinations it is astronomy-engine's, at the chart instant on its TT
|
|
93
|
+
* clock: the IAU 2006 mean obliquity plus astronomy-engine's five-term
|
|
94
|
+
* truncation of the IAU 2000B nutation in obliquity. Elsewhere it is the
|
|
95
|
+
* value supplied.
|
|
96
|
+
*/
|
|
97
|
+
trueObliquity: number;
|
|
98
|
+
rows: DeclinationRow[];
|
|
99
|
+
aspects: DeclinationAspect[];
|
|
100
|
+
orbPolicy: DeclinationOrbPolicy;
|
|
101
|
+
convention: "true-equator-and-equinox-of-date; full-ecliptic-longitude-and-latitude";
|
|
102
|
+
/** This derived feature is not asserted to be covered by the natal receipt. */
|
|
103
|
+
receiptScope: "not-included-in-natal-receipt";
|
|
104
|
+
}
|
|
105
|
+
interface ChartDeclinations extends Declinations {
|
|
106
|
+
/** Observation instant, retaining the engine's UTC-label/UT1 convention. */
|
|
107
|
+
utc: string;
|
|
108
|
+
/** The evaluated provider Delta-T used to obtain true obliquity. */
|
|
109
|
+
deltaT: DeltaT;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Rotate full ecliptic longitude/latitude into the equator associated with the
|
|
113
|
+
* explicitly supplied true obliquity. Both angles and the obliquity are degrees.
|
|
114
|
+
* The source frame/corrections must already be appropriate: this rotation does
|
|
115
|
+
* not add light time, aberration, precession or an ephemeris precision guarantee.
|
|
116
|
+
*/
|
|
117
|
+
declare function eclipticToEquatorial(longitudeDeg: number, latitudeDeg: number, trueObliquityDeg: number): EquatorialCoordinates;
|
|
118
|
+
/** Declination from full longitude/latitude and explicitly supplied obliquity. */
|
|
119
|
+
declare function declinationOf(lon: number, lat: number, trueObliquity: number): number;
|
|
120
|
+
/** Inclusive pair allowance; the returned value makes the applied policy explicit. */
|
|
121
|
+
declare function declinationOrb(a: string, b: string, policy?: Readonly<DeclinationOrbPolicy>): number;
|
|
122
|
+
/**
|
|
123
|
+
* Site-compatible nearest declination aspect for each supplied pair. Inclusive
|
|
124
|
+
* orbs, decided exactly on the declination doubles; a parallel wins an exact
|
|
125
|
+
* tie at the equator. Every supplied body is eligible, including nodes; no
|
|
126
|
+
* longitude-aspect body filter is inferred.
|
|
127
|
+
*/
|
|
128
|
+
declare function findDeclinationAspects(bodies: readonly DeclinationBody[], trueObliquity: number, policy?: Readonly<DeclinationOrbPolicy>): DeclinationAspect[];
|
|
129
|
+
/** Pure derived output; the chart wrapper supplies a provider obliquity of date. */
|
|
130
|
+
declare function declinationsForBodies(bodies: readonly DeclinationBody[], trueObliquity: number, policy?: Readonly<DeclinationOrbPolicy>): Declinations;
|
|
131
|
+
|
|
132
|
+
interface ReturnSeason {
|
|
133
|
+
/** One-based return number. */
|
|
134
|
+
index: number;
|
|
135
|
+
crossings: LongitudeCrossing[];
|
|
136
|
+
first: Date;
|
|
137
|
+
last: Date;
|
|
138
|
+
}
|
|
139
|
+
interface SaturnReturnResult {
|
|
140
|
+
natalLon: number;
|
|
141
|
+
natalRetrograde: boolean;
|
|
142
|
+
seasons: ReturnSeason[];
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Every instant in (from, to] when `body` sits exactly on `targetLongitude`,
|
|
146
|
+
* from the engine's apparent geocentric longitudes, in time order. This is
|
|
147
|
+
* {@link findLongitudeCrossingsWith} on the engine's ephemeris, with its
|
|
148
|
+
* conventions: a root exactly at `from` is not reported and one exactly at
|
|
149
|
+
* `to` is, an exact sample is reported once, and a pair of crossings around a
|
|
150
|
+
* station that falls between two samples is found and kept. There is no
|
|
151
|
+
* sample budget; {@link searchLongitudeCrossings} takes one and refuses
|
|
152
|
+
* instead of throwing. Invalid input throws RangeError.
|
|
153
|
+
*/
|
|
154
|
+
declare function findLongitudeCrossings(body: BodyName, targetLongitude: number, from: Date, to: Date, stepDays?: number): LongitudeCrossing[];
|
|
155
|
+
/**
|
|
156
|
+
* {@link findLongitudeCrossings} under an optional budget of ephemeris
|
|
157
|
+
* evaluations, `maxSamples`, with the step as `stepDays` (default 5). Over
|
|
158
|
+
* budget, it returns `{ status: "refused", reason: "sample-budget" }` with no
|
|
159
|
+
* crossings rather than throwing.
|
|
160
|
+
*/
|
|
161
|
+
declare function searchLongitudeCrossings(body: BodyName, targetLongitude: number, from: Date, to: Date, options?: CrossingSearchOptions): CrossingSearchResult;
|
|
162
|
+
declare function groupIntoSeasons(crossings: readonly LongitudeCrossing[], gapDays?: number): ReturnSeason[];
|
|
163
|
+
|
|
164
|
+
type NatalSource = Chart | BirthInput;
|
|
165
|
+
type SaturnReturnSource = NatalSource | DateInput;
|
|
166
|
+
/**
|
|
167
|
+
* Apparent geocentric tropical positions for an instant. Speeds are sampled
|
|
168
|
+
* up to six hours either side of it, so an instant nearer either end of the
|
|
169
|
+
* Date range, or one astronomy-engine cannot evaluate, throws RangeError.
|
|
170
|
+
*/
|
|
171
|
+
declare function positions(date: DateInput): BodyPosition[];
|
|
172
|
+
/** Build a natal chart from an already resolved UTC instant. */
|
|
173
|
+
declare function natalChart(birth: BirthInput): Chart;
|
|
174
|
+
/**
|
|
175
|
+
* Equatorial coordinates and declination aspects derived from a natal chart's
|
|
176
|
+
* full ecliptic positions, on its own Delta T clock. A supplied Chart's
|
|
177
|
+
* numerical positions remain caller claims, as with chartPoints and synastry.
|
|
178
|
+
* This additional analysis is not included in the natal receipt.
|
|
179
|
+
*/
|
|
180
|
+
declare function chartDeclinations(natal: NatalSource): ChartDeclinations;
|
|
181
|
+
/**
|
|
182
|
+
* The chart's points: the mean lunar node and its opposite, and Black Moon
|
|
183
|
+
* Lilith (the mean lunar apogee), for any chart; with a birth time and place,
|
|
184
|
+
* also the Vertex, the East Point, the chart's sect and the seven lots of
|
|
185
|
+
* Paulus Alexandrinus. A supplied Chart is checked as `transits` checks one;
|
|
186
|
+
* its lots are taken from its own ascendant and bodies.
|
|
187
|
+
*/
|
|
188
|
+
declare function chartPoints(natal: NatalSource): ChartPoints;
|
|
189
|
+
/** Snapshot of current positions and their major aspects to a natal chart. */
|
|
190
|
+
declare function transits(natal: NatalSource, date: DateInput): TransitResult;
|
|
191
|
+
/** Major inter-chart aspects and element/modality balances. */
|
|
192
|
+
declare function synastry(first: NatalSource, second: NatalSource): SynastryResult;
|
|
193
|
+
/** High-precision Moon phase derived from the same positions as charts. */
|
|
194
|
+
declare function moonPhase(date: DateInput): MoonPhase;
|
|
195
|
+
/** Natal Saturn and return seasons through approximately age 92. */
|
|
196
|
+
declare function saturnReturn(birth: SaturnReturnSource): SaturnReturnResult;
|
|
197
|
+
|
|
198
|
+
export { transits as A, type ChartDeclinations as C, DECLINATION_ORB as D, type EquatorialCoordinates as E, type NatalSource as N, RA_POLE_TOLERANCE as R, SUN_BOUND_LATITUDE as S, DECLINATION_ORB_LUMINARY as a, DEFAULT_DECLINATION_ORB_POLICY as b, type DeclinationAspect as c, type DeclinationAspectType as d, type DeclinationBody as e, type DeclinationOrbPolicy as f, type DeclinationRow as g, type Declinations as h, type ReturnSeason as i, type SaturnReturnResult as j, type SaturnReturnSource as k, chartDeclinations as l, chartPoints as m, declinationOf as n, declinationOrb as o, declinationsForBodies as p, eclipticToEquatorial as q, findDeclinationAspects as r, findLongitudeCrossings as s, groupIntoSeasons as t, moonPhase as u, natalChart as v, positions as w, saturnReturn as x, searchLongitudeCrossings as y, synastry as z };
|