sweph 2.10.0-1 → 2.10.0-11

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 (81) hide show
  1. package/README.md +48 -16
  2. package/binding.gyp +25 -23
  3. package/index.d.ts +438 -428
  4. package/index.js +16 -6
  5. package/index.mjs +108 -0
  6. package/package.json +45 -15
  7. package/prebuilds/darwin-arm64/sweph.node +0 -0
  8. package/prebuilds/linux-arm64/sweph.node +0 -0
  9. package/prebuilds/linux-x64/sweph.node +0 -0
  10. package/prebuilds/win32-x64/sweph.node +0 -0
  11. package/src/functions/azalt.cpp +2 -2
  12. package/src/functions/azalt_rev.cpp +2 -2
  13. package/src/functions/calc.cpp +1 -1
  14. package/src/functions/calc_pctr.cpp +1 -1
  15. package/src/functions/calc_ut.cpp +1 -1
  16. package/src/functions/cotrans.cpp +1 -1
  17. package/src/functions/cotrans_sp.cpp +1 -1
  18. package/src/functions/deltat_ex.cpp +1 -1
  19. package/src/functions/fixstar.cpp +1 -1
  20. package/src/functions/fixstar2.cpp +1 -1
  21. package/src/functions/fixstar2_mag.cpp +1 -1
  22. package/src/functions/fixstar2_ut.cpp +1 -1
  23. package/src/functions/fixstar_mag.cpp +1 -1
  24. package/src/functions/fixstar_ut.cpp +1 -1
  25. package/src/functions/gauquelin_sector.cpp +2 -2
  26. package/src/functions/get_ayanamsa_ex.cpp +1 -1
  27. package/src/functions/get_ayanamsa_ex_ut.cpp +1 -1
  28. package/src/functions/get_orbital_elements.cpp +1 -1
  29. package/src/functions/heliacal_pheno_ut.cpp +4 -4
  30. package/src/functions/heliacal_ut.cpp +4 -4
  31. package/src/functions/house_name.cpp +3 -2
  32. package/src/functions/house_pos.cpp +2 -2
  33. package/src/functions/houses.cpp +1 -1
  34. package/src/functions/houses_armc_ex2.cpp +1 -1
  35. package/src/functions/houses_ex.cpp +1 -1
  36. package/src/functions/houses_ex2.cpp +2 -2
  37. package/src/functions/lat_to_lmt.cpp +1 -1
  38. package/src/functions/lmt_to_lat.cpp +1 -1
  39. package/src/functions/lun_eclipse_how.cpp +2 -2
  40. package/src/functions/lun_eclipse_when.cpp +1 -1
  41. package/src/functions/lun_eclipse_when_loc.cpp +2 -2
  42. package/src/functions/lun_occult_when_glob.cpp +1 -1
  43. package/src/functions/lun_occult_when_loc.cpp +2 -2
  44. package/src/functions/lun_occult_where.cpp +1 -1
  45. package/src/functions/nod_aps.cpp +1 -1
  46. package/src/functions/nod_aps_ut.cpp +1 -1
  47. package/src/functions/orbit_max_min_true_distance.cpp +1 -1
  48. package/src/functions/pheno.cpp +1 -1
  49. package/src/functions/pheno_ut.cpp +1 -1
  50. package/src/functions/rise_trans.cpp +2 -2
  51. package/src/functions/rise_trans_true_hor.cpp +2 -2
  52. package/src/functions/sol_eclipse_how.cpp +2 -2
  53. package/src/functions/sol_eclipse_when_glob.cpp +1 -1
  54. package/src/functions/sol_eclipse_when_loc.cpp +2 -2
  55. package/src/functions/sol_eclipse_where.cpp +1 -1
  56. package/src/functions/time_equ.cpp +1 -1
  57. package/src/functions/utc_to_jd.cpp +1 -1
  58. package/src/functions/vis_limit_mag.cpp +4 -4
  59. package/src/sweph.cpp +3 -3
  60. package/src/sweph.h +1 -1
  61. package/{deps/swisseph → swisseph}/swehouse.c +3046 -3046
  62. package/{deps/swisseph → swisseph}/sweph.c +8401 -8401
  63. package/.github/FUNDING.yml +0 -5
  64. package/deps/swisseph.gyp +0 -43
  65. package/docs.gif +0 -0
  66. /package/{deps/swisseph → swisseph}/swecl.c +0 -0
  67. /package/{deps/swisseph → swisseph}/swedate.c +0 -0
  68. /package/{deps/swisseph → swisseph}/swedate.h +0 -0
  69. /package/{deps/swisseph → swisseph}/swehel.c +0 -0
  70. /package/{deps/swisseph → swisseph}/swehouse.h +0 -0
  71. /package/{deps/swisseph → swisseph}/swejpl.c +0 -0
  72. /package/{deps/swisseph → swisseph}/swejpl.h +0 -0
  73. /package/{deps/swisseph → swisseph}/swemmoon.c +0 -0
  74. /package/{deps/swisseph → swisseph}/swemplan.c +0 -0
  75. /package/{deps/swisseph → swisseph}/swemptab.h +0 -0
  76. /package/{deps/swisseph → swisseph}/swenut2000a.h +0 -0
  77. /package/{deps/swisseph → swisseph}/sweodef.h +0 -0
  78. /package/{deps/swisseph → swisseph}/sweph.h +0 -0
  79. /package/{deps/swisseph → swisseph}/swephexp.h +0 -0
  80. /package/{deps/swisseph → swisseph}/swephlib.c +0 -0
  81. /package/{deps/swisseph → swisseph}/swephlib.h +0 -0
package/index.d.ts CHANGED
@@ -2,18 +2,19 @@
2
2
  * ## Sweph
3
3
  * Definitive Swiss Ephemeris bindings for Node.js
4
4
  *
5
- * [Official documentation for the Swiss Ephemeris](https://www.astro.com/swisseph/swephprg.htm)
6
- * [Sweph on Github](https://github.com/timotejroiko/sweph)
7
- * [Sweph on NPM](http://npm.com/package/sweph)
5
+ * [Official programmer's documentation for the Swiss Ephemeris](https://www.astro.com/swisseph/swephprg.htm)
6
+ * [Official guide for the Swiss Ephemeris](https://www.astro.com/ftp/swisseph/doc/swisseph.htm)
7
+ * [Sweph on GitHub](https://github.com/timotejroiko/sweph)
8
+ * [Sweph on NPM](http://npmjs.com/package/sweph)
8
9
  *
9
10
  * ### Usage
10
11
  * ```
11
12
  * const { utc_to_jd, calc, houses_ex2, constants, set_ephe_path } = require("sweph");
12
- * // or - import { utc_to_jd, calc, houses, constants, set_ephe_path } from "sweph";
13
+ * // or import { utc_to_jd, calc, houses_ex2, constants, set_ephe_path } from "sweph";
13
14
  *
14
15
  * set_ephe_path("./ephemeris"); // folder containing your ephemeris files;
15
16
  *
16
- * const date = utc_to_jd(2020, 1, 25, 15, 35, 0, constants.SE_GREG_CAL); // 1 Jan 2020, 15:35:00
17
+ * const date = utc_to_jd(2020, 1, 25, 15, 35, 0, constants.SE_GREG_CAL); // 25 Jan 2020, 15:35:00, gregorian calendar
17
18
  * if(date.flag !== constants.OK) { throw new Error(date.error); }
18
19
  *
19
20
  * const [ jd_et, jd_ut ] = date.data; // et for planets, ut for houses
@@ -28,6 +29,7 @@
28
29
  * ```
29
30
  */
30
31
  declare module "sweph" {
32
+ export * as default from "sweph"
31
33
 
32
34
  /*
33
35
  ┌──────────────────────────────────────────────────┬────────────┬──────────────────────────────────────────────────┐
@@ -35,7 +37,7 @@ declare module "sweph" {
35
37
  └──────────────────────────────────────────────────┴────────────┴──────────────────────────────────────────────────┘
36
38
  */
37
39
 
38
- interface Flag {
40
+ export interface Flag {
39
41
  /**
40
42
  * ### Description
41
43
  * Status flag returned by the function
@@ -45,8 +47,8 @@ declare module "sweph" {
45
47
  */
46
48
  flag: number;
47
49
  }
48
-
49
- interface Error {
50
+
51
+ export interface Error {
50
52
  /**
51
53
  * ### Description
52
54
  * Error message
@@ -57,7 +59,7 @@ declare module "sweph" {
57
59
  error: string;
58
60
  }
59
61
 
60
- interface Name {
62
+ export interface Name {
61
63
  /**
62
64
  * ### Description
63
65
  * Star name
@@ -68,7 +70,7 @@ declare module "sweph" {
68
70
  name: string;
69
71
  }
70
72
 
71
- interface GetCurrentFileData {
73
+ export interface GetCurrentFileData {
72
74
  /**
73
75
  * ### Description
74
76
  * Path to ephemeris file
@@ -99,7 +101,7 @@ declare module "sweph" {
99
101
  denum: number;
100
102
  }
101
103
 
102
- interface GetOrbitalElements extends Flag, Error {
104
+ export interface GetOrbitalElements extends Flag, Error {
103
105
  /**
104
106
  * ### Description
105
107
  * Array of orbital/kepler elements
@@ -109,7 +111,7 @@ declare module "sweph" {
109
111
  data: OrbitalElementsData;
110
112
  }
111
113
 
112
- interface Calc extends Error, Flag {
114
+ export interface Calc extends Error, Flag {
113
115
  /**
114
116
  * ### Description
115
117
  * Array of values returned by the calculation
@@ -124,7 +126,7 @@ declare module "sweph" {
124
126
  data: CalcData;
125
127
  }
126
128
 
127
- interface DateConversion extends Flag {
129
+ export interface DateConversion extends Flag {
128
130
  /**
129
131
  * ### Description
130
132
  * Julian day value
@@ -134,7 +136,7 @@ declare module "sweph" {
134
136
  data: number;
135
137
  }
136
138
 
137
- interface DeltaT extends Error {
139
+ export interface DeltaT extends Error {
138
140
  /**
139
141
  * ### Description
140
142
  * Delta T value
@@ -144,7 +146,7 @@ declare module "sweph" {
144
146
  data: number;
145
147
  }
146
148
 
147
- interface FixStar extends Flag, Name, Error {
149
+ export interface FixStar extends Flag, Name, Error {
148
150
  /**
149
151
  * ### Description
150
152
  * Array of values returned by the calculation
@@ -155,10 +157,10 @@ declare module "sweph" {
155
157
  * ```
156
158
  * ```
157
159
  */
158
- data: CalcData2;
160
+ data: CalcData2;
159
161
  }
160
162
 
161
- interface FixStarMag extends Flag, Name, Error {
163
+ export interface FixStarMag extends Flag, Name, Error {
162
164
  /**
163
165
  * ### Description
164
166
  * Magnitude value
@@ -168,7 +170,7 @@ declare module "sweph" {
168
170
  data: number;
169
171
  }
170
172
 
171
- interface GauquelinSector extends Flag, Error {
173
+ export interface GauquelinSector extends Flag, Error {
172
174
  /**
173
175
  * ### Description
174
176
  * Gauquelin Sector
@@ -178,7 +180,7 @@ declare module "sweph" {
178
180
  data: number;
179
181
  }
180
182
 
181
- interface Ayanamsa extends Flag, Error {
183
+ export interface Ayanamsa extends Flag, Error {
182
184
  /**
183
185
  * ### Description
184
186
  * Ayanamsa Value
@@ -188,7 +190,7 @@ declare module "sweph" {
188
190
  data: number;
189
191
  }
190
192
 
191
- interface HeliacalPheno extends Flag, Error {
193
+ export interface HeliacalPheno extends Flag, Error {
192
194
  /**
193
195
  * ### Description
194
196
  * Array of values used by heliacal calculations
@@ -198,7 +200,7 @@ declare module "sweph" {
198
200
  data: HeliacalPhenoData;
199
201
  }
200
202
 
201
- interface Heliacal extends Flag, Error {
203
+ export interface Heliacal extends Flag, Error {
202
204
  /**
203
205
  * ### Description
204
206
  * Event times of the heliacal phenomenon
@@ -208,7 +210,7 @@ declare module "sweph" {
208
210
  data: HeliacalData;
209
211
  }
210
212
 
211
- interface HousePosition extends Error {
213
+ export interface HousePosition extends Error {
212
214
  /**
213
215
  * ### Description
214
216
  * House position including fraction
@@ -219,7 +221,7 @@ declare module "sweph" {
219
221
  data: number
220
222
  }
221
223
 
222
- interface Houses<T> extends Flag {
224
+ export interface Houses<T> extends Flag {
223
225
  /**
224
226
  * ### Description
225
227
  * Calculated positions for the houses and other points
@@ -229,7 +231,7 @@ declare module "sweph" {
229
231
  data: HouseData<T>
230
232
  }
231
233
 
232
- interface HousesEx<T> extends Flag, Error {
234
+ export interface HousesEx<T> extends Flag, Error {
233
235
  /**
234
236
  * ### Description
235
237
  * Calculated positions for the houses and other points
@@ -240,7 +242,7 @@ declare module "sweph" {
240
242
  data: HouseExData<T>
241
243
  }
242
244
 
243
- interface HouseData<T> {
245
+ export interface HouseData<T> {
244
246
  /**
245
247
  * ### Description
246
248
  * Longitude positions for the houses
@@ -258,7 +260,7 @@ declare module "sweph" {
258
260
  points: PointsList
259
261
  }
260
262
 
261
- interface HouseExData<T> extends HouseData<T> {
263
+ export interface HouseExData<T> extends HouseData<T> {
262
264
  /**
263
265
  * ### Description
264
266
  * Momentary motion speeds of the houses
@@ -275,7 +277,7 @@ declare module "sweph" {
275
277
  pointsSpeed: PointsSpeeds
276
278
  }
277
279
 
278
- interface DateObject {
280
+ export interface DateObject {
279
281
  /**
280
282
  * ### Description
281
283
  * Full year
@@ -306,7 +308,7 @@ declare module "sweph" {
306
308
  hour: number;
307
309
  }
308
310
 
309
- interface DateObject2 extends DateObject {
311
+ export interface DateObject2 extends DateObject {
310
312
  /**
311
313
  * ### Description
312
314
  * Hour (0-23)
@@ -330,7 +332,7 @@ declare module "sweph" {
330
332
  second: number;
331
333
  }
332
334
 
333
- interface LocalApparentTime extends Flag, Error {
335
+ export interface LocalApparentTime extends Flag, Error {
334
336
  /**
335
337
  * ### Description
336
338
  * Local apparent time in julian day in universal time
@@ -340,7 +342,7 @@ declare module "sweph" {
340
342
  data: number
341
343
  }
342
344
 
343
- interface LocalMeanTime extends Flag, Error {
345
+ export interface LocalMeanTime extends Flag, Error {
344
346
  /**
345
347
  * ### Description
346
348
  * Local mean time in julian day in universal time
@@ -350,7 +352,7 @@ declare module "sweph" {
350
352
  data: number
351
353
  }
352
354
 
353
- interface OrbitMaxMinTrueDistance extends Flag, Error {
355
+ export interface OrbitMaxMinTrueDistance extends Flag, Error {
354
356
  /**
355
357
  * ### Description
356
358
  * Orbital maximum and minimum possible distances
@@ -373,7 +375,7 @@ declare module "sweph" {
373
375
  }
374
376
  }
375
377
 
376
- interface LunEclipseHow extends Flag, Error {
378
+ export interface LunEclipseHow extends Flag, Error {
377
379
  /**
378
380
  * ### Description
379
381
  * Array of data about the lunar eclipse
@@ -383,7 +385,7 @@ declare module "sweph" {
383
385
  data: LunEclipseAttributes
384
386
  }
385
387
 
386
- interface LunEclipseWhenLoc extends Flag, Error {
388
+ export interface LunEclipseWhenLoc extends Flag, Error {
387
389
  /**
388
390
  * ### Description
389
391
  * Array of eclipse timings
@@ -400,7 +402,7 @@ declare module "sweph" {
400
402
  attributes: LunEclipseAttributes
401
403
  }
402
404
 
403
- interface LunEclipseWhen extends Flag, Error {
405
+ export interface LunEclipseWhen extends Flag, Error {
404
406
  /**
405
407
  * ### Description
406
408
  * Array of eclipse timings
@@ -410,17 +412,17 @@ declare module "sweph" {
410
412
  data: EclipseTimes
411
413
  }
412
414
 
413
- interface EclipseWhenGlob extends Flag, Error {
415
+ export interface EclipseWhenGlob extends Flag, Error {
414
416
  /**
415
417
  * ### Description
416
418
  * Array of eclipse timings
417
419
  * ```
418
420
  * ```
419
421
  */
420
- data: EclipseTimes3
422
+ data: EclipseTimes3
421
423
  }
422
424
 
423
- interface LunOccultWhenLoc extends Flag, Error {
425
+ export interface LunOccultWhenLoc extends Flag, Error {
424
426
  /**
425
427
  * ### Description
426
428
  * Array of eclipse timings
@@ -437,7 +439,7 @@ declare module "sweph" {
437
439
  attributes: EclipseAttributes
438
440
  }
439
441
 
440
- interface LunOccultWhere extends Flag, Error {
442
+ export interface LunOccultWhere extends Flag, Error {
441
443
  /**
442
444
  * ### Description
443
445
  * Array of eclipse coordinates
@@ -454,7 +456,7 @@ declare module "sweph" {
454
456
  attributes: LunEclipseAttributes2
455
457
  }
456
458
 
457
- interface NodAps extends Flag, Error {
459
+ export interface NodAps extends Flag, Error {
458
460
  /**
459
461
  * ### Description
460
462
  * Object containing ascending node, descending node, aphelion and perihelion values
@@ -462,7 +464,7 @@ declare module "sweph" {
462
464
  * ```
463
465
  * ```
464
466
  */
465
- data: {
467
+ data: {
466
468
  /**
467
469
  * ### Description
468
470
  * Array of ascending node values returned by the calculation
@@ -508,10 +510,10 @@ declare module "sweph" {
508
510
  * ```
509
511
  */
510
512
  aphelion: CalcData2;
511
- };
513
+ };
512
514
  }
513
515
 
514
- interface Pheno extends Flag, Error {
516
+ export interface Pheno extends Flag, Error {
515
517
  /**
516
518
  * ### Description
517
519
  * Array containing data for planetary phenomena
@@ -521,7 +523,7 @@ declare module "sweph" {
521
523
  data: PhenoData;
522
524
  }
523
525
 
524
- interface RefracExtended {
526
+ export interface RefracExtended {
525
527
  /**
526
528
  * ### Description
527
529
  * Converted altitude value
@@ -538,7 +540,7 @@ declare module "sweph" {
538
540
  extended: RefracExtendedData;
539
541
  }
540
542
 
541
- interface RiseTrans extends Flag, Error {
543
+ export interface RiseTrans extends Flag, Error {
542
544
  /**
543
545
  * ### Description
544
546
  * Time of transit in julian days in universal time
@@ -548,7 +550,7 @@ declare module "sweph" {
548
550
  data: number;
549
551
  }
550
552
 
551
- interface SolEclipseHow extends Flag, Error {
553
+ export interface SolEclipseHow extends Flag, Error {
552
554
  /**
553
555
  * ### Description
554
556
  * Array of data about the solar eclipse
@@ -558,7 +560,7 @@ declare module "sweph" {
558
560
  data: EclipseAttributes2;
559
561
  }
560
562
 
561
- interface SolEclipseWhenLoc extends Flag, Error {
563
+ export interface SolEclipseWhenLoc extends Flag, Error {
562
564
  /**
563
565
  * ### Description
564
566
  * Array of eclipse timings
@@ -575,7 +577,7 @@ declare module "sweph" {
575
577
  attributes: EclipseAttributes2;
576
578
  }
577
579
 
578
- interface SolEclipseWhere extends Flag, Error {
580
+ export interface SolEclipseWhere extends Flag, Error {
579
581
  /**
580
582
  * ### Description
581
583
  * Array of eclipse coordinates
@@ -592,7 +594,7 @@ declare module "sweph" {
592
594
  attributes: EclipseAttributes2;
593
595
  }
594
596
 
595
- interface SplitDeg {
597
+ export interface SplitDeg {
596
598
  /**
597
599
  * ### Description
598
600
  * Degrees value
@@ -630,7 +632,7 @@ declare module "sweph" {
630
632
  sign: number;
631
633
  }
632
634
 
633
- interface TimeEqu extends Flag, Error {
635
+ export interface TimeEqu extends Flag, Error {
634
636
  /**
635
637
  * ### Description
636
638
  * Value of the equation of time (difference between LMT and LAT)
@@ -640,17 +642,17 @@ declare module "sweph" {
640
642
  data: number;
641
643
  }
642
644
 
643
- interface UtcToJd extends Flag, Error {
645
+ export interface UtcToJd extends Flag, Error {
644
646
  /**
645
647
  * ### Description
646
648
  * Array containing julian day in both ephemeris and universal time
647
649
  * ```
648
650
  * ```
649
651
  */
650
- data: JdEtUd;
652
+ data: JdEtUt;
651
653
  }
652
654
 
653
- interface VisLimitMag extends Flag, Error {
655
+ export interface VisLimitMag extends Flag, Error {
654
656
  /**
655
657
  * ### Description
656
658
  * Array containing the altitude, azimuth and magnitude data of the object along with the altitude and azimuth of the sun and the moon
@@ -666,7 +668,7 @@ declare module "sweph" {
666
668
  └──────────────────────────────────────────────────┴───────────┴──────────────────────────────────────────────────┘
667
669
  */
668
670
 
669
- type OrbitalElementsData = [
671
+ export type OrbitalElementsData = [
670
672
  /**
671
673
  * Semimajor axis
672
674
  */
@@ -738,7 +740,7 @@ declare module "sweph" {
738
740
  aphelion_distance: number
739
741
  ]
740
742
 
741
- type CalcData = [
743
+ export type CalcData = [
742
744
  /**
743
745
  * (`λ`) Ecliptic longitude
744
746
  * (`α`) Equatorial right ascension if `SEFLG_EQUATORIAL`
@@ -779,7 +781,7 @@ declare module "sweph" {
779
781
  distSpd: number
780
782
  ]
781
783
 
782
- type CalcData2 = [
784
+ export type CalcData2 = [
783
785
  /**
784
786
  * (`λ`) Ecliptic longitude
785
787
  * (`α`) Equatorial right ascension if `SEFLG_EQUATORIAL`
@@ -816,7 +818,7 @@ declare module "sweph" {
816
818
  distSpd: number
817
819
  ]
818
820
 
819
- type HeliacalPhenoData = [
821
+ export type HeliacalPhenoData = [
820
822
  /**
821
823
  * Topocentric altitude of object in degrees (unrefracted)
822
824
  */
@@ -939,7 +941,7 @@ declare module "sweph" {
939
941
  MSk: number
940
942
  ]
941
943
 
942
- type HeliacalData = [
944
+ export type HeliacalData = [
943
945
  /**
944
946
  * Start visibility in JD
945
947
  */
@@ -954,7 +956,7 @@ declare module "sweph" {
954
956
  vis_end: number
955
957
  ]
956
958
 
957
- type AzaltRev = [
959
+ export type AzaltRev = [
958
960
  /**
959
961
  * (λ) Ecliptic longitude if SE_HOR2ECL
960
962
  * (α) Equatorial right ascension if SE_HOR2EQU
@@ -967,7 +969,7 @@ declare module "sweph" {
967
969
  lat: number
968
970
  ]
969
971
 
970
- type Azalt = [
972
+ export type Azalt = [
971
973
  /**
972
974
  * Azimuth
973
975
  */
@@ -982,7 +984,7 @@ declare module "sweph" {
982
984
  ap: number
983
985
  ]
984
986
 
985
- type CoTransSp = [
987
+ export type CoTransSp = [
986
988
  ...cotrans: CoTrans,
987
989
  /**
988
990
  * Daily speed for lon
@@ -998,7 +1000,7 @@ declare module "sweph" {
998
1000
  distSpd: number
999
1001
  ]
1000
1002
 
1001
- type CoTrans = [
1003
+ export type CoTrans = [
1002
1004
  /**
1003
1005
  * (λ) Ecliptic longitude or (α) Equatorial right ascension
1004
1006
  */
@@ -1013,9 +1015,9 @@ declare module "sweph" {
1013
1015
  dist: number,
1014
1016
  ]
1015
1017
 
1016
- type HouseSystems = "B" | "Y" | "X" | "H" | "C" | "F" | "A" | "E" | "D" | "N" | "G" | "I" | "i" | "K" | "U" | "M" | "P" | "T" | "O" | "L" | "Q" | "R" | "S" | "V" | "W";
1018
+ export type HouseSystems = "B" | "Y" | "X" | "H" | "C" | "F" | "A" | "E" | "D" | "N" | "G" | "I" | "i" | "K" | "U" | "M" | "P" | "T" | "O" | "L" | "Q" | "R" | "S" | "V" | "W";
1017
1019
 
1018
- type HousesList = [
1020
+ export type HousesList = [
1019
1021
  /**
1020
1022
  * 1st House
1021
1023
  */
@@ -1066,7 +1068,7 @@ declare module "sweph" {
1066
1068
  house_12: number,
1067
1069
  ]
1068
1070
 
1069
- type PointsList = [
1071
+ export type PointsList = [
1070
1072
  /**
1071
1073
  * Longitude of the Ascendant
1072
1074
  */
@@ -1101,7 +1103,7 @@ declare module "sweph" {
1101
1103
  polasc: number
1102
1104
  ]
1103
1105
 
1104
- type HousesSpeeds = [
1106
+ export type HousesSpeeds = [
1105
1107
  /**
1106
1108
  * Momentary speed for the 1st House
1107
1109
  */
@@ -1152,7 +1154,7 @@ declare module "sweph" {
1152
1154
  house_12_speed: number,
1153
1155
  ]
1154
1156
 
1155
- type PointsSpeeds = [
1157
+ export type PointsSpeeds = [
1156
1158
  /**
1157
1159
  * Momentary speed of the Ascendant
1158
1160
  */
@@ -1187,7 +1189,7 @@ declare module "sweph" {
1187
1189
  polasc_speed: number
1188
1190
  ]
1189
1191
 
1190
- type GauquelinHousesList = [
1192
+ export type GauquelinHousesList = [
1191
1193
  ...houses: HousesList,
1192
1194
  /**
1193
1195
  * 13th House
@@ -1287,7 +1289,7 @@ declare module "sweph" {
1287
1289
  house_36: number,
1288
1290
  ]
1289
1291
 
1290
- type GauquelinHousesSpeeds = [
1292
+ export type GauquelinHousesSpeeds = [
1291
1293
  ...houses: HousesSpeeds,
1292
1294
  /**
1293
1295
  * Momentary speed for the 13th House
@@ -1387,7 +1389,7 @@ declare module "sweph" {
1387
1389
  house_36_speed: number,
1388
1390
  ]
1389
1391
 
1390
- type EclipseTimes = [
1392
+ export type EclipseTimes = [
1391
1393
  /**
1392
1394
  * time of maximum eclipse in jd
1393
1395
  */
@@ -1422,7 +1424,7 @@ declare module "sweph" {
1422
1424
  penumbral_end: number
1423
1425
  ]
1424
1426
 
1425
- type EclipseTimes2 = [
1427
+ export type EclipseTimes2 = [
1426
1428
  ...times: EclipseTimes,
1427
1429
  /**
1428
1430
  * Time of moonrise, if it occurs during the eclipse
@@ -1434,7 +1436,7 @@ declare module "sweph" {
1434
1436
  set: number,
1435
1437
  ]
1436
1438
 
1437
- type EclipseTimes3 = [
1439
+ export type EclipseTimes3 = [
1438
1440
  /**
1439
1441
  * time of maximum eclipse in jd
1440
1442
  */
@@ -1477,7 +1479,7 @@ declare module "sweph" {
1477
1479
  total_annular: number
1478
1480
  ]
1479
1481
 
1480
- type EclipseTimes4 = [
1482
+ export type EclipseTimes4 = [
1481
1483
  /**
1482
1484
  * Time of maximum eclipse
1483
1485
  */
@@ -1494,7 +1496,7 @@ declare module "sweph" {
1494
1496
  * Time of third contact
1495
1497
  */
1496
1498
  third_contact: number,
1497
- /**
1499
+ /**
1498
1500
  * Time of fourth contact
1499
1501
  */
1500
1502
  fourth_contact: number,
@@ -1508,7 +1510,7 @@ declare module "sweph" {
1508
1510
  sunset: number
1509
1511
  ]
1510
1512
 
1511
- type EclipseCoords = [
1513
+ export type EclipseCoords = [
1512
1514
  /**
1513
1515
  * Geographic longitude of central line
1514
1516
  */
@@ -1551,7 +1553,7 @@ declare module "sweph" {
1551
1553
  south_penumbra_lat: number
1552
1554
  ]
1553
1555
 
1554
- type EclipseAttributes = [
1556
+ export type EclipseAttributes = [
1555
1557
  /**
1556
1558
  * Fraction of solar diameter covered by moon (magnitude)
1557
1559
  */
@@ -1586,7 +1588,7 @@ declare module "sweph" {
1586
1588
  elongation: number
1587
1589
  ]
1588
1590
 
1589
- type EclipseAttributes2 = [
1591
+ export type EclipseAttributes2 = [
1590
1592
  ...attr: EclipseAttributes,
1591
1593
  /**
1592
1594
  * Eclipse magnitude (same as solar_diameter or lunar_diameter depending on the eclipse type)
@@ -1602,7 +1604,7 @@ declare module "sweph" {
1602
1604
  saros_member: number
1603
1605
  ]
1604
1606
 
1605
- type LunEclipseAttributes = [
1607
+ export type LunEclipseAttributes = [
1606
1608
  /**
1607
1609
  * Umbral magnitude at jd
1608
1610
  */
@@ -1649,7 +1651,7 @@ declare module "sweph" {
1649
1651
  saros_member: number
1650
1652
  ]
1651
1653
 
1652
- type LunEclipseAttributes2 = [
1654
+ export type LunEclipseAttributes2 = [
1653
1655
  /**
1654
1656
  * Fraction of object's diameter covered by moon (magnitude)
1655
1657
  */
@@ -1684,7 +1686,7 @@ declare module "sweph" {
1684
1686
  angular_distance: number,
1685
1687
  ]
1686
1688
 
1687
- type PhenoData = [
1689
+ export type PhenoData = [
1688
1690
  /**
1689
1691
  * Phase angle (Earth-planet-sun)
1690
1692
  */
@@ -1707,7 +1709,7 @@ declare module "sweph" {
1707
1709
  magnitude: number
1708
1710
  ]
1709
1711
 
1710
- type RefracExtendedData = [
1712
+ export type RefracExtendedData = [
1711
1713
  /**
1712
1714
  * True altitude if possible, otherwise input value
1713
1715
  */
@@ -1726,7 +1728,7 @@ declare module "sweph" {
1726
1728
  dip: number
1727
1729
  ]
1728
1730
 
1729
- type JdEtUd = [
1731
+ export type JdEtUt = [
1730
1732
  /**
1731
1733
  * Julian day in ephemeris/terrestrial time
1732
1734
  */
@@ -1737,7 +1739,7 @@ declare module "sweph" {
1737
1739
  ut: number
1738
1740
  ]
1739
1741
 
1740
- type VisLimitMagData = [
1742
+ export type VisLimitMagData = [
1741
1743
  /**
1742
1744
  * Limiting visual magnitude (object is visible if this value is bigger than the object's magnitude value)
1743
1745
  */
@@ -1810,7 +1812,7 @@ declare module "sweph" {
1810
1812
  * ### Params
1811
1813
  * ```
1812
1814
  * • tjd_ut: number // Julian day in universal time
1813
- * • calc_flag: number // Calculation flag, SE_HOR2ECL or SE_HOR2EQU
1815
+ * • calc_flag: number // Calculation flag, SE_ECL2HOR or SE_EQU2HOR
1814
1816
  * • geopos: Array<number> // Geographic coordinates [longitude, latitude, elevation]
1815
1817
  * • atpress: number // Atmospheric pressure in mbar/hpa
1816
1818
  * • attemp: number // Atmospheric temperature in celcius
@@ -1941,7 +1943,7 @@ declare module "sweph" {
1941
1943
  * &nbsp;
1942
1944
  */
1943
1945
  export function calc(tjd_et: number, ipl: number, iflag: number): Calc;
1944
-
1946
+
1945
1947
  /**
1946
1948
  * ### Description
1947
1949
  * Reset swisseph internals and cleanup file handles
@@ -2062,7 +2064,7 @@ declare module "sweph" {
2062
2064
  * ```
2063
2065
  * • csec: number // Centiseconds value
2064
2066
  * • sep: string // Separator character
2065
- * • supzero: boolean // Omit seconds if they are zero
2067
+ * • suppresszero: boolean // Omit seconds if they are zero
2066
2068
  * ```
2067
2069
  * ### Returns
2068
2070
  * ```
@@ -2074,7 +2076,7 @@ declare module "sweph" {
2074
2076
  * ```
2075
2077
  * &nbsp;
2076
2078
  */
2077
- export function cs2timestr(csec: number, sep: string, supzero: boolean): string;
2079
+ export function cs2timestr(csec: number, sep: string, suppresszero: boolean): string;
2078
2080
 
2079
2081
  /**
2080
2082
  * ### Description
@@ -2159,7 +2161,7 @@ declare module "sweph" {
2159
2161
  * ```
2160
2162
  * &nbsp;
2161
2163
  */
2162
- export function date_conversion(year: number, month: number, day: number, hour: number, calendar: string): DateConversion;
2164
+ export function date_conversion(year: number, month: number, day: number, hour: number, calendar: "g" | "j" | (string & {})): DateConversion;
2163
2165
 
2164
2166
  /**
2165
2167
  * ### Description
@@ -2315,7 +2317,7 @@ declare module "sweph" {
2315
2317
  * ```
2316
2318
  * ### Example
2317
2319
  * ```
2318
- * const distance = difdeg2n(120, 130); // 350
2320
+ * const distance = difdegn(120, 130); // 350
2319
2321
  * ```
2320
2322
  * &nbsp;
2321
2323
  */
@@ -2570,7 +2572,7 @@ declare module "sweph" {
2570
2572
  * ```
2571
2573
  * &nbsp;
2572
2574
  */
2573
- export function gauquelin_sector(tjd_ut: number, ipl: number, starname: string | null, iflag: number, imeth: number, geopos: [number,number,number], atpress: number, attemp: number): GauquelinSector;
2575
+ export function gauquelin_sector(tjd_ut: number, ipl: number, starname: string | null, iflag: number, imeth: number, geopos: [longitude: number, latitude: number, elevation: number], atpress: number, attemp: number): GauquelinSector;
2574
2576
 
2575
2577
  /**
2576
2578
  * ### Description
@@ -2910,11 +2912,11 @@ declare module "sweph" {
2910
2912
  * ```
2911
2913
  * ### Example
2912
2914
  * ```
2913
- * const name = house_name("p"); // "Placidus"
2915
+ * const name = house_name("P"); // "Placidus"
2914
2916
  * ```
2915
2917
  * &nbsp;
2916
2918
  */
2917
- export function house_name(hsys: number): string;
2919
+ export function house_name(hsys: HouseSystems | string & {}): string;
2918
2920
 
2919
2921
  /**
2920
2922
  * ### Description
@@ -2943,7 +2945,7 @@ declare module "sweph" {
2943
2945
  * ```
2944
2946
  * &nbsp;
2945
2947
  */
2946
- export function house_pos(armc: number, geolat: number, eps: number, hsys: string, xpin: [longitude: number, latitude: number]): HousePosition;
2948
+ export function house_pos(armc: number, geolat: number, eps: number, hsys: HouseSystems | string & {}, xpin: [longitude: number, latitude: number]): HousePosition;
2947
2949
 
2948
2950
  /**
2949
2951
  * ### Description
@@ -2997,8 +2999,9 @@ declare module "sweph" {
2997
2999
  * ```
2998
3000
  * &nbsp;
2999
3001
  */
3000
- export function houses_armc_ex2(armc: number, geolat: number, eps: number, hsys: HouseSystems, decl?: number): HousesEx<12>;
3001
3002
  export function houses_armc_ex2(armc: number, geolat: number, eps: number, hsys: "G", decl?: number): HousesEx<36>;
3003
+ export function houses_armc_ex2(armc: number, geolat: number, eps: number, hsys: HouseSystems, decl?: number): HousesEx<12>;
3004
+ export function houses_armc_ex2(armc: number, geolat: number, eps: number, hsys: string, decl?: number): HousesEx<12> | HousesEx<36>;
3002
3005
 
3003
3006
  /**
3004
3007
  * ### Description
@@ -3044,8 +3047,9 @@ declare module "sweph" {
3044
3047
  * ```
3045
3048
  * &nbsp;
3046
3049
  */
3047
- export function houses_armc(armc: number, geolat: number, eps: number, hsys: HouseSystems, decl?: number): Houses<12>;
3048
3050
  export function houses_armc(armc: number, geolat: number, eps: number, hsys: "G", decl?: number): Houses<36>;
3051
+ export function houses_armc(armc: number, geolat: number, eps: number, hsys: HouseSystems, decl?: number): Houses<12>;
3052
+ export function houses_armc(armc: number, geolat: number, eps: number, hsys: string, decl?: number): Houses<12> | Houses<36>;
3049
3053
 
3050
3054
  /**
3051
3055
  * ### Description
@@ -3090,8 +3094,9 @@ declare module "sweph" {
3090
3094
  * ```
3091
3095
  * &nbsp;
3092
3096
  */
3093
- export function houses_ex(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: HouseSystems): Houses<12>;
3094
3097
  export function houses_ex(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: "G"): Houses<36>;
3098
+ export function houses_ex(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: HouseSystems): Houses<12>;
3099
+ export function houses_ex(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: string): Houses<12> | Houses<36>;
3095
3100
 
3096
3101
  /**
3097
3102
  * ### Description
@@ -3144,8 +3149,9 @@ declare module "sweph" {
3144
3149
  * ```
3145
3150
  * &nbsp;
3146
3151
  */
3147
- export function houses_ex2(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: HouseSystems): HousesEx<12>;
3148
3152
  export function houses_ex2(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: "G"): HousesEx<36>;
3153
+ export function houses_ex2(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: HouseSystems): HousesEx<12>;
3154
+ export function houses_ex2(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: string): HousesEx<12> | HousesEx<36>;
3149
3155
 
3150
3156
  /**
3151
3157
  * ### Description
@@ -3189,8 +3195,9 @@ declare module "sweph" {
3189
3195
  * ```
3190
3196
  * &nbsp;
3191
3197
  */
3192
- export function houses(tjd_ut: number, geolat: number, geolon: number, hsys: HouseSystems): Houses<12>;
3193
3198
  export function houses(tjd_ut: number, geolat: number, geolon: number, hsys: "G"): Houses<36>;
3199
+ export function houses(tjd_ut: number, geolat: number, geolon: number, hsys: HouseSystems): Houses<12>;
3200
+ export function houses(tjd_ut: number, geolat: number, geolon: number, hsys: string): Houses<12> | Houses<36>;
3194
3201
 
3195
3202
  /**
3196
3203
  * ### Description
@@ -3670,7 +3677,7 @@ declare module "sweph" {
3670
3677
  */
3671
3678
  export function nod_aps_ut(tjd_ut: number, ipl: number, iflag: number, method: number): NodAps;
3672
3679
 
3673
- /**
3680
+ /**
3674
3681
  * ### Description
3675
3682
  * Calculate an object's nodes and apsides from ephemeris/terrestrial time
3676
3683
  * If the calculation method includes `SE_NODBIT_FOPOINT`, the `aphelion` field contains the values for the object's "second focus" instead
@@ -3911,7 +3918,7 @@ declare module "sweph" {
3911
3918
  * ### Params
3912
3919
  * ```
3913
3920
  * • tjd: number // Julian day in universal time
3914
- * • gregflag: number // Calendar type (SE_JUL_CAL or SE_GREG_CAL)
3921
+ * • gregflag: number // Calendar system, SE_GREG_CAL for gregorian calendar, SE_JUL_CAL for julian calendar
3915
3922
  * ```
3916
3923
  * ### Returns
3917
3924
  * ```
@@ -4149,7 +4156,7 @@ declare module "sweph" {
4149
4156
  * &nbsp;
4150
4157
  */
4151
4158
  export function sidtime0(tjd_ut: number, eps: number, nut: number): number;
4152
-
4159
+
4153
4160
  /**
4154
4161
  * ### Description
4155
4162
  * Get solar eclipse data for a given date
@@ -4394,7 +4401,10 @@ declare module "sweph" {
4394
4401
 
4395
4402
  /**
4396
4403
  * ### Description
4397
- * Convert local time to UTC or UTC to local time using a timezone offset
4404
+ * Convert between local time and UTC using a timezone offset.
4405
+ * For time zones east of Greenwich, d_timezone should be positive.
4406
+ * For time zones west of Greenwich, d_timezone should be negative.
4407
+ * To convert from UTC back to local time, invert d_timezone's sign.
4398
4408
  * ### Params
4399
4409
  * ```
4400
4410
  * • iyear: number // Full year
@@ -4403,7 +4413,7 @@ declare module "sweph" {
4403
4413
  * • ihour: number // Hour (0-23)
4404
4414
  * • imin: number // Minute (0-59)
4405
4415
  * • dsec: number // Seconds including fraction (0-59.99999)
4406
- * • d_timezone: number // Timezone offset in decimal hours (0-23.99999)
4416
+ * • d_timezone: number // Timezone offset in decimal hours (0-23.99999), positive or negative
4407
4417
  * ```
4408
4418
  * ### Returns
4409
4419
  * ```
@@ -4525,331 +4535,331 @@ declare module "sweph" {
4525
4535
  * Swisseph Constants
4526
4536
  * Contains aliases and predefined constant values used in the swiss ephemeris
4527
4537
  */
4528
- export const enum constants {
4529
- OK = 0,
4530
- ERR = -1,
4531
- SE_AUNIT_TO_KM = 149597870.7,
4532
- SE_AUNIT_TO_LIGHTYEAR = 0.000015812507409819728,
4533
- SE_AUNIT_TO_PARSEC = 0.000004848136811095274,
4534
- SE_JUL_CAL = 0,
4535
- SE_GREG_CAL = 1,
4536
- SE_ECL_NUT = -1,
4537
- SE_SUN = 0,
4538
- SE_MOON = 1,
4539
- SE_MERCURY = 2,
4540
- SE_VENUS = 3,
4541
- SE_MARS = 4,
4542
- SE_JUPITER = 5,
4543
- SE_SATURN = 6,
4544
- SE_URANUS = 7,
4545
- SE_NEPTUNE = 8,
4546
- SE_PLUTO = 9,
4547
- SE_MEAN_NODE = 10,
4548
- SE_TRUE_NODE = 11,
4549
- SE_MEAN_APOG = 12,
4550
- SE_OSCU_APOG = 13,
4551
- SE_EARTH = 14,
4552
- SE_CHIRON = 15,
4553
- SE_PHOLUS = 16,
4554
- SE_CERES = 17,
4555
- SE_PALLAS = 18,
4556
- SE_JUNO = 19,
4557
- SE_VESTA = 20,
4558
- SE_INTP_APOG = 21,
4559
- SE_INTP_PERG = 22,
4560
- SE_NPLANETS = 23,
4561
- SE_PLMOON_OFFSET = 9000,
4562
- SE_AST_OFFSET = 10000,
4563
- SE_VARUNA = 30000,
4564
- SE_FICT_OFFSET = 40,
4565
- SE_FICT_OFFSET_1 = 39,
4566
- SE_FICT_MAX = 999,
4567
- SE_NFICT_ELEM = 15,
4568
- SE_COMET_OFFSET = 1000,
4569
- SE_NALL_NAT_POINTS = 38,
4570
- SE_CUPIDO = 40,
4571
- SE_HADES = 41,
4572
- SE_ZEUS = 42,
4573
- SE_KRONOS = 43,
4574
- SE_APOLLON = 44,
4575
- SE_ADMETOS = 45,
4576
- SE_VULKANUS = 46,
4577
- SE_POSEIDON = 47,
4578
- SE_ISIS = 48,
4579
- SE_NIBIRU = 49,
4580
- SE_HARRINGTON = 50,
4581
- SE_NEPTUNE_LEVERRIER = 51,
4582
- SE_NEPTUNE_ADAMS = 52,
4583
- SE_PLUTO_LOWELL = 53,
4584
- SE_PLUTO_PICKERING = 54,
4585
- SE_VULCAN = 55,
4586
- SE_WHITE_MOON = 56,
4587
- SE_PROSERPINA = 57,
4588
- SE_WALDEMATH = 58,
4589
- SE_FIXSTAR = -10,
4590
- SE_ASC = 0,
4591
- SE_MC = 1,
4592
- SE_ARMC = 2,
4593
- SE_VERTEX = 3,
4594
- SE_EQUASC = 4,
4595
- SE_COASC1 = 5,
4596
- SE_COASC2 = 6,
4597
- SE_POLASC = 7,
4598
- SE_NASCMC = 8,
4599
- SEFLG_JPLEPH = 1,
4600
- SEFLG_SWIEPH = 2,
4601
- SEFLG_MOSEPH = 4,
4602
- SEFLG_HELCTR = 8,
4603
- SEFLG_TRUEPOS = 16,
4604
- SEFLG_J2000 = 32,
4605
- SEFLG_NONUT = 64,
4606
- SEFLG_SPEED3 = 128,
4607
- SEFLG_SPEED = 256,
4608
- SEFLG_NOGDEFL = 512,
4609
- SEFLG_NOABERR = 1024,
4610
- SEFLG_ASTROMETRIC = 1536,
4611
- SEFLG_EQUATORIAL = 2048,
4612
- SEFLG_XYZ = 4096,
4613
- SEFLG_RADIANS = 8192,
4614
- SEFLG_BARYCTR = 16384,
4615
- SEFLG_TOPOCTR = 32768,
4616
- SEFLG_ORBEL_AA = 32768,
4617
- SEFLG_TROPICAL = 0,
4618
- SEFLG_SIDEREAL = 65536,
4619
- SEFLG_ICRS = 131072,
4620
- SEFLG_DPSIDEPS_1980 = 262144,
4621
- SEFLG_JPLHOR = 262144,
4622
- SEFLG_JPLHOR_APPROX = 524288,
4623
- SEFLG_CENTER_BODY = 1048576,
4624
- SEFLG_TEST_PLMOON = 2228280,
4625
- SE_SIDBITS = 256,
4626
- SE_SIDBIT_ECL_T0 = 256,
4627
- SE_SIDBIT_SSY_PLANE = 512,
4628
- SE_SIDBIT_USER_UT = 1024,
4629
- SE_SIDBIT_ECL_DATE = 2048,
4630
- SE_SIDBIT_NO_PREC_OFFSET = 4096,
4631
- SE_SIDBIT_PREC_ORIG = 8192,
4632
- SE_SIDM_FAGAN_BRADLEY = 0,
4633
- SE_SIDM_LAHIRI = 1,
4634
- SE_SIDM_DELUCE = 2,
4635
- SE_SIDM_RAMAN = 3,
4636
- SE_SIDM_USHASHASHI = 4,
4637
- SE_SIDM_KRISHNAMURTI = 5,
4638
- SE_SIDM_DJWHAL_KHUL = 6,
4639
- SE_SIDM_YUKTESHWAR = 7,
4640
- SE_SIDM_JN_BHASIN = 8,
4641
- SE_SIDM_BABYL_KUGLER1 = 9,
4642
- SE_SIDM_BABYL_KUGLER2 = 10,
4643
- SE_SIDM_BABYL_KUGLER3 = 11,
4644
- SE_SIDM_BABYL_HUBER = 12,
4645
- SE_SIDM_BABYL_ETPSC = 13,
4646
- SE_SIDM_ALDEBARAN_15TAU = 14,
4647
- SE_SIDM_HIPPARCHOS = 15,
4648
- SE_SIDM_SASSANIAN = 16,
4649
- SE_SIDM_GALCENT_0SAG = 17,
4650
- SE_SIDM_J2000 = 18,
4651
- SE_SIDM_J1900 = 19,
4652
- SE_SIDM_B1950 = 20,
4653
- SE_SIDM_SURYASIDDHANTA = 21,
4654
- SE_SIDM_SURYASIDDHANTA_MSUN = 22,
4655
- SE_SIDM_ARYABHATA = 23,
4656
- SE_SIDM_ARYABHATA_MSUN = 24,
4657
- SE_SIDM_SS_REVATI = 25,
4658
- SE_SIDM_SS_CITRA = 26,
4659
- SE_SIDM_TRUE_CITRA = 27,
4660
- SE_SIDM_TRUE_REVATI = 28,
4661
- SE_SIDM_TRUE_PUSHYA = 29,
4662
- SE_SIDM_GALCENT_RGILBRAND = 30,
4663
- SE_SIDM_GALEQU_IAU1958 = 31,
4664
- SE_SIDM_GALEQU_TRUE = 32,
4665
- SE_SIDM_GALEQU_MULA = 33,
4666
- SE_SIDM_GALALIGN_MARDYKS = 34,
4667
- SE_SIDM_TRUE_MULA = 35,
4668
- SE_SIDM_GALCENT_MULA_WILHELM = 36,
4669
- SE_SIDM_ARYABHATA_522 = 37,
4670
- SE_SIDM_BABYL_BRITTON = 38,
4671
- SE_SIDM_TRUE_SHEORAN = 39,
4672
- SE_SIDM_GALCENT_COCHRANE = 40,
4673
- SE_SIDM_GALEQU_FIORENZA = 41,
4674
- SE_SIDM_VALENS_MOON = 42,
4675
- SE_SIDM_LAHIRI_1940 = 43,
4676
- SE_SIDM_LAHIRI_VP285 = 44,
4677
- SE_SIDM_KRISHNAMURTI_VP291 = 45,
4678
- SE_SIDM_LAHIRI_ICRC = 46,
4679
- SE_SIDM_USER = 255,
4680
- SE_NSIDM_PREDEF = 47,
4681
- SE_NODBIT_MEAN = 1,
4682
- SE_NODBIT_OSCU = 2,
4683
- SE_NODBIT_OSCU_BAR = 4,
4684
- SE_NODBIT_FOPOINT = 256,
4685
- SEFLG_DEFAULTEPH = 2,
4686
- SE_MAX_STNAME = 256,
4687
- SE_ECL_CENTRAL = 1,
4688
- SE_ECL_NONCENTRAL = 2,
4689
- SE_ECL_TOTAL = 4,
4690
- SE_ECL_ANNULAR = 8,
4691
- SE_ECL_PARTIAL = 16,
4692
- SE_ECL_ANNULAR_TOTAL = 32,
4693
- SE_ECL_HYBRID = 32,
4694
- SE_ECL_PENUMBRAL = 64,
4695
- SE_ECL_ALLTYPES_SOLAR = 63,
4696
- SE_ECL_ALLTYPES_LUNAR = 84,
4697
- SE_ECL_VISIBLE = 128,
4698
- SE_ECL_MAX_VISIBLE = 256,
4699
- SE_ECL_1ST_VISIBLE = 512,
4700
- SE_ECL_PARTBEG_VISIBLE = 512,
4701
- SE_ECL_2ND_VISIBLE = 1024,
4702
- SE_ECL_TOTBEG_VISIBLE = 1024,
4703
- SE_ECL_3RD_VISIBLE = 2048,
4704
- SE_ECL_TOTEND_VISIBLE = 2048,
4705
- SE_ECL_4TH_VISIBLE = 4096,
4706
- SE_ECL_PARTEND_VISIBLE = 4096,
4707
- SE_ECL_PENUMBBEG_VISIBLE = 8192,
4708
- SE_ECL_PENUMBEND_VISIBLE = 16384,
4709
- SE_ECL_OCC_BEG_DAYLIGHT = 8192,
4710
- SE_ECL_OCC_END_DAYLIGHT = 16384,
4711
- SE_ECL_ONE_TRY = 32768,
4712
- SE_CALC_RISE = 1,
4713
- SE_CALC_SET = 2,
4714
- SE_CALC_MTRANSIT = 4,
4715
- SE_CALC_ITRANSIT = 8,
4716
- SE_BIT_DISC_CENTER = 256,
4717
- SE_BIT_DISC_BOTTOM = 8192,
4718
- SE_BIT_GEOCTR_NO_ECL_LAT = 128,
4719
- SE_BIT_NO_REFRACTION = 512,
4720
- SE_BIT_CIVIL_TWILIGHT = 1024,
4721
- SE_BIT_NAUTIC_TWILIGHT = 2048,
4722
- SE_BIT_ASTRO_TWILIGHT = 4096,
4723
- SE_BIT_FIXED_DISC_SIZE = 16384,
4724
- SE_BIT_FORCE_SLOW_METHOD = 32768,
4725
- SE_BIT_HINDU_RISING = 896,
4726
- SE_ECL2HOR = 0,
4727
- SE_EQU2HOR = 1,
4728
- SE_HOR2ECL = 0,
4729
- SE_HOR2EQU = 1,
4730
- SE_TRUE_TO_APP = 0,
4731
- SE_APP_TO_TRUE = 1,
4732
- SE_DE_NUMBER = 431,
4733
- SE_FNAME_DE200 = "de200.eph",
4734
- SE_FNAME_DE403 = "de403.eph",
4735
- SE_FNAME_DE404 = "de404.eph",
4736
- SE_FNAME_DE405 = "de405.eph",
4737
- SE_FNAME_DE406 = "de406.eph",
4738
- SE_FNAME_DE431 = "de431.eph",
4739
- SE_FNAME_DFT = "de431.eph",
4740
- SE_FNAME_DFT2 = "de406.eph",
4741
- SE_STARFILE_OLD = "fixstars.cat",
4742
- SE_STARFILE = "sefstars.txt",
4743
- SE_ASTNAMFILE = "seasnam.txt",
4744
- SE_FICTFILE = "seorbel.txt",
4745
- SE_SPLIT_DEG_ROUND_SEC = 1,
4746
- SE_SPLIT_DEG_ROUND_MIN = 2,
4747
- SE_SPLIT_DEG_ROUND_DEG = 4,
4748
- SE_SPLIT_DEG_ZODIACAL = 8,
4749
- SE_SPLIT_DEG_NAKSHATRA = 1024,
4750
- SE_SPLIT_DEG_KEEP_SIGN = 16,
4751
- SE_SPLIT_DEG_KEEP_DEG = 32,
4752
- SE_HELIACAL_RISING = 1,
4753
- SE_HELIACAL_SETTING = 2,
4754
- SE_MORNING_FIRST = 1,
4755
- SE_EVENING_LAST = 2,
4756
- SE_EVENING_FIRST = 3,
4757
- SE_MORNING_LAST = 4,
4758
- SE_ACRONYCHAL_RISING = 5,
4759
- SE_ACRONYCHAL_SETTING = 6,
4760
- SE_COSMICAL_SETTING = 6,
4761
- SE_HELFLAG_LONG_SEARCH = 128,
4762
- SE_HELFLAG_HIGH_PRECISION = 256,
4763
- SE_HELFLAG_OPTICAL_PARAMS = 512,
4764
- SE_HELFLAG_NO_DETAILS = 1024,
4765
- SE_HELFLAG_SEARCH_1_PERIOD = 2048,
4766
- SE_HELFLAG_VISLIM_DARK = 4096,
4767
- SE_HELFLAG_VISLIM_NOMOON = 8192,
4768
- SE_HELFLAG_VISLIM_PHOTOPIC = 16384,
4769
- SE_HELFLAG_VISLIM_SCOTOPIC = 32768,
4770
- SE_HELFLAG_AV = 65536,
4771
- SE_HELFLAG_AVKIND_VR = 65536,
4772
- SE_HELFLAG_AVKIND_PTO = 131072,
4773
- SE_HELFLAG_AVKIND_MIN7 = 262144,
4774
- SE_HELFLAG_AVKIND_MIN9 = 524288,
4775
- SE_HELFLAG_AVKIND = 983040,
4776
- TJD_INVALID = 99999999,
4777
- SIMULATE_VICTORVB = 1,
4778
- SE_PHOTOPIC_FLAG = 0,
4779
- SE_SCOTOPIC_FLAG = 1,
4780
- SE_MIXEDOPIC_FLAG = 2,
4781
- SE_TIDAL_DE200 = -23.8946,
4782
- SE_TIDAL_DE403 = -25.58,
4783
- SE_TIDAL_DE404 = -25.58,
4784
- SE_TIDAL_DE405 = -25.826,
4785
- SE_TIDAL_DE406 = -25.826,
4786
- SE_TIDAL_DE421 = -25.85,
4787
- SE_TIDAL_DE422 = -25.85,
4788
- SE_TIDAL_DE430 = -25.82,
4789
- SE_TIDAL_DE431 = -25.8,
4790
- SE_TIDAL_26 = -26,
4791
- SE_TIDAL_STEPHENSON_2016 = -25.85,
4792
- SE_TIDAL_DEFAULT = -25.8,
4793
- SE_TIDAL_AUTOMATIC = 999999,
4794
- SE_TIDAL_MOSEPH = -25.58,
4795
- SE_TIDAL_SWIEPH = -25.8,
4796
- SE_TIDAL_JPLEPH = -25.8,
4797
- SE_DELTAT_AUTOMATIC = 0.0000000001,
4798
- SE_MODEL_DELTAT = 0,
4799
- SE_MODEL_PREC_LONGTERM = 1,
4800
- SE_MODEL_PREC_SHORTTERM = 2,
4801
- SE_MODEL_NUT = 3,
4802
- SE_MODEL_BIAS = 4,
4803
- SE_MODEL_JPLHOR_MODE = 5,
4804
- SE_MODEL_JPLHORA_MODE = 6,
4805
- SE_MODEL_SIDT = 7,
4806
- NSE_MODELS = 8,
4807
- SEMOD_NPREC = 11,
4808
- SEMOD_PREC_IAU_1976 = 1,
4809
- SEMOD_PREC_LASKAR_1986 = 2,
4810
- SEMOD_PREC_WILL_EPS_LASK = 3,
4811
- SEMOD_PREC_WILLIAMS_1994 = 4,
4812
- SEMOD_PREC_SIMON_1994 = 5,
4813
- SEMOD_PREC_IAU_2000 = 6,
4814
- SEMOD_PREC_BRETAGNON_2003 = 7,
4815
- SEMOD_PREC_IAU_2006 = 8,
4816
- SEMOD_PREC_VONDRAK_2011 = 9,
4817
- SEMOD_PREC_OWEN_1990 = 10,
4818
- SEMOD_PREC_NEWCOMB = 11,
4819
- SEMOD_PREC_DEFAULT = 9,
4820
- SEMOD_PREC_DEFAULT_SHORT = 9,
4821
- SEMOD_NNUT = 5,
4822
- SEMOD_NUT_IAU_1980 = 1,
4823
- SEMOD_NUT_IAU_CORR_1987 = 2,
4824
- SEMOD_NUT_IAU_2000A = 3,
4825
- SEMOD_NUT_IAU_2000B = 4,
4826
- SEMOD_NUT_WOOLARD = 5,
4827
- SEMOD_NUT_DEFAULT = 4,
4828
- SEMOD_NSIDT = 4,
4829
- SEMOD_SIDT_IAU_1976 = 1,
4830
- SEMOD_SIDT_IAU_2006 = 2,
4831
- SEMOD_SIDT_IERS_CONV_2010 = 3,
4832
- SEMOD_SIDT_LONGTERM = 4,
4833
- SEMOD_SIDT_DEFAULT = 4,
4834
- SEMOD_NBIAS = 3,
4835
- SEMOD_BIAS_NONE = 1,
4836
- SEMOD_BIAS_IAU2000 = 2,
4837
- SEMOD_BIAS_IAU2006 = 3,
4838
- SEMOD_BIAS_DEFAULT = 3,
4839
- SEMOD_NJPLHOR = 2,
4840
- SEMOD_JPLHOR_LONG_AGREEMENT = 1,
4841
- SEMOD_JPLHOR_DEFAULT = 1,
4842
- SEMOD_NJPLHORA = 3,
4843
- SEMOD_JPLHORA_1 = 1,
4844
- SEMOD_JPLHORA_2 = 2,
4845
- SEMOD_JPLHORA_3 = 3,
4846
- SEMOD_JPLHORA_DEFAULT = 3,
4847
- SEMOD_NDELTAT = 5,
4848
- SEMOD_DELTAT_STEPHENSON_MORRISON_1984 = 1,
4849
- SEMOD_DELTAT_STEPHENSON_1997 = 2,
4850
- SEMOD_DELTAT_STEPHENSON_MORRISON_2004 = 3,
4851
- SEMOD_DELTAT_ESPENAK_MEEUS_2006 = 4,
4852
- SEMOD_DELTAT_STEPHENSON_ETC_2016 = 5,
4853
- SEMOD_DELTAT_DEFAULT = 5
4538
+ export const constants: {
4539
+ OK: 0,
4540
+ ERR: -1,
4541
+ SE_AUNIT_TO_KM: 149597870.7,
4542
+ SE_AUNIT_TO_LIGHTYEAR: 0.000015812507409819728,
4543
+ SE_AUNIT_TO_PARSEC: 0.000004848136811095274,
4544
+ SE_JUL_CAL: 0,
4545
+ SE_GREG_CAL: 1,
4546
+ SE_ECL_NUT: -1,
4547
+ SE_SUN: 0,
4548
+ SE_MOON: 1,
4549
+ SE_MERCURY: 2,
4550
+ SE_VENUS: 3,
4551
+ SE_MARS: 4,
4552
+ SE_JUPITER: 5,
4553
+ SE_SATURN: 6,
4554
+ SE_URANUS: 7,
4555
+ SE_NEPTUNE: 8,
4556
+ SE_PLUTO: 9,
4557
+ SE_MEAN_NODE: 10,
4558
+ SE_TRUE_NODE: 11,
4559
+ SE_MEAN_APOG: 12,
4560
+ SE_OSCU_APOG: 13,
4561
+ SE_EARTH: 14,
4562
+ SE_CHIRON: 15,
4563
+ SE_PHOLUS: 16,
4564
+ SE_CERES: 17,
4565
+ SE_PALLAS: 18,
4566
+ SE_JUNO: 19,
4567
+ SE_VESTA: 20,
4568
+ SE_INTP_APOG: 21,
4569
+ SE_INTP_PERG: 22,
4570
+ SE_NPLANETS: 23,
4571
+ SE_PLMOON_OFFSET: 9000,
4572
+ SE_AST_OFFSET: 10000,
4573
+ SE_VARUNA: 30000,
4574
+ SE_FICT_OFFSET: 40,
4575
+ SE_FICT_OFFSET_1: 39,
4576
+ SE_FICT_MAX: 999,
4577
+ SE_NFICT_ELEM: 15,
4578
+ SE_COMET_OFFSET: 1000,
4579
+ SE_NALL_NAT_POINTS: 38,
4580
+ SE_CUPIDO: 40,
4581
+ SE_HADES: 41,
4582
+ SE_ZEUS: 42,
4583
+ SE_KRONOS: 43,
4584
+ SE_APOLLON: 44,
4585
+ SE_ADMETOS: 45,
4586
+ SE_VULKANUS: 46,
4587
+ SE_POSEIDON: 47,
4588
+ SE_ISIS: 48,
4589
+ SE_NIBIRU: 49,
4590
+ SE_HARRINGTON: 50,
4591
+ SE_NEPTUNE_LEVERRIER: 51,
4592
+ SE_NEPTUNE_ADAMS: 52,
4593
+ SE_PLUTO_LOWELL: 53,
4594
+ SE_PLUTO_PICKERING: 54,
4595
+ SE_VULCAN: 55,
4596
+ SE_WHITE_MOON: 56,
4597
+ SE_PROSERPINA: 57,
4598
+ SE_WALDEMATH: 58,
4599
+ SE_FIXSTAR: -10,
4600
+ SE_ASC: 0,
4601
+ SE_MC: 1,
4602
+ SE_ARMC: 2,
4603
+ SE_VERTEX: 3,
4604
+ SE_EQUASC: 4,
4605
+ SE_COASC1: 5,
4606
+ SE_COASC2: 6,
4607
+ SE_POLASC: 7,
4608
+ SE_NASCMC: 8,
4609
+ SEFLG_JPLEPH: 1,
4610
+ SEFLG_SWIEPH: 2,
4611
+ SEFLG_MOSEPH: 4,
4612
+ SEFLG_HELCTR: 8,
4613
+ SEFLG_TRUEPOS: 16,
4614
+ SEFLG_J2000: 32,
4615
+ SEFLG_NONUT: 64,
4616
+ SEFLG_SPEED3: 128,
4617
+ SEFLG_SPEED: 256,
4618
+ SEFLG_NOGDEFL: 512,
4619
+ SEFLG_NOABERR: 1024,
4620
+ SEFLG_ASTROMETRIC: 1536,
4621
+ SEFLG_EQUATORIAL: 2048,
4622
+ SEFLG_XYZ: 4096,
4623
+ SEFLG_RADIANS: 8192,
4624
+ SEFLG_BARYCTR: 16384,
4625
+ SEFLG_TOPOCTR: 32768,
4626
+ SEFLG_ORBEL_AA: 32768,
4627
+ SEFLG_TROPICAL: 0,
4628
+ SEFLG_SIDEREAL: 65536,
4629
+ SEFLG_ICRS: 131072,
4630
+ SEFLG_DPSIDEPS_1980: 262144,
4631
+ SEFLG_JPLHOR: 262144,
4632
+ SEFLG_JPLHOR_APPROX: 524288,
4633
+ SEFLG_CENTER_BODY: 1048576,
4634
+ SEFLG_TEST_PLMOON: 2228280,
4635
+ SE_SIDBITS: 256,
4636
+ SE_SIDBIT_ECL_T0: 256,
4637
+ SE_SIDBIT_SSY_PLANE: 512,
4638
+ SE_SIDBIT_USER_UT: 1024,
4639
+ SE_SIDBIT_ECL_DATE: 2048,
4640
+ SE_SIDBIT_NO_PREC_OFFSET: 4096,
4641
+ SE_SIDBIT_PREC_ORIG: 8192,
4642
+ SE_SIDM_FAGAN_BRADLEY: 0,
4643
+ SE_SIDM_LAHIRI: 1,
4644
+ SE_SIDM_DELUCE: 2,
4645
+ SE_SIDM_RAMAN: 3,
4646
+ SE_SIDM_USHASHASHI: 4,
4647
+ SE_SIDM_KRISHNAMURTI: 5,
4648
+ SE_SIDM_DJWHAL_KHUL: 6,
4649
+ SE_SIDM_YUKTESHWAR: 7,
4650
+ SE_SIDM_JN_BHASIN: 8,
4651
+ SE_SIDM_BABYL_KUGLER1: 9,
4652
+ SE_SIDM_BABYL_KUGLER2: 10,
4653
+ SE_SIDM_BABYL_KUGLER3: 11,
4654
+ SE_SIDM_BABYL_HUBER: 12,
4655
+ SE_SIDM_BABYL_ETPSC: 13,
4656
+ SE_SIDM_ALDEBARAN_15TAU: 14,
4657
+ SE_SIDM_HIPPARCHOS: 15,
4658
+ SE_SIDM_SASSANIAN: 16,
4659
+ SE_SIDM_GALCENT_0SAG: 17,
4660
+ SE_SIDM_J2000: 18,
4661
+ SE_SIDM_J1900: 19,
4662
+ SE_SIDM_B1950: 20,
4663
+ SE_SIDM_SURYASIDDHANTA: 21,
4664
+ SE_SIDM_SURYASIDDHANTA_MSUN: 22,
4665
+ SE_SIDM_ARYABHATA: 23,
4666
+ SE_SIDM_ARYABHATA_MSUN: 24,
4667
+ SE_SIDM_SS_REVATI: 25,
4668
+ SE_SIDM_SS_CITRA: 26,
4669
+ SE_SIDM_TRUE_CITRA: 27,
4670
+ SE_SIDM_TRUE_REVATI: 28,
4671
+ SE_SIDM_TRUE_PUSHYA: 29,
4672
+ SE_SIDM_GALCENT_RGILBRAND: 30,
4673
+ SE_SIDM_GALEQU_IAU1958: 31,
4674
+ SE_SIDM_GALEQU_TRUE: 32,
4675
+ SE_SIDM_GALEQU_MULA: 33,
4676
+ SE_SIDM_GALALIGN_MARDYKS: 34,
4677
+ SE_SIDM_TRUE_MULA: 35,
4678
+ SE_SIDM_GALCENT_MULA_WILHELM: 36,
4679
+ SE_SIDM_ARYABHATA_522: 37,
4680
+ SE_SIDM_BABYL_BRITTON: 38,
4681
+ SE_SIDM_TRUE_SHEORAN: 39,
4682
+ SE_SIDM_GALCENT_COCHRANE: 40,
4683
+ SE_SIDM_GALEQU_FIORENZA: 41,
4684
+ SE_SIDM_VALENS_MOON: 42,
4685
+ SE_SIDM_LAHIRI_1940: 43,
4686
+ SE_SIDM_LAHIRI_VP285: 44,
4687
+ SE_SIDM_KRISHNAMURTI_VP291: 45,
4688
+ SE_SIDM_LAHIRI_ICRC: 46,
4689
+ SE_SIDM_USER: 255,
4690
+ SE_NSIDM_PREDEF: 47,
4691
+ SE_NODBIT_MEAN: 1,
4692
+ SE_NODBIT_OSCU: 2,
4693
+ SE_NODBIT_OSCU_BAR: 4,
4694
+ SE_NODBIT_FOPOINT: 256,
4695
+ SEFLG_DEFAULTEPH: 2,
4696
+ SE_MAX_STNAME: 256,
4697
+ SE_ECL_CENTRAL: 1,
4698
+ SE_ECL_NONCENTRAL: 2,
4699
+ SE_ECL_TOTAL: 4,
4700
+ SE_ECL_ANNULAR: 8,
4701
+ SE_ECL_PARTIAL: 16,
4702
+ SE_ECL_ANNULAR_TOTAL: 32,
4703
+ SE_ECL_HYBRID: 32,
4704
+ SE_ECL_PENUMBRAL: 64,
4705
+ SE_ECL_ALLTYPES_SOLAR: 63,
4706
+ SE_ECL_ALLTYPES_LUNAR: 84,
4707
+ SE_ECL_VISIBLE: 128,
4708
+ SE_ECL_MAX_VISIBLE: 256,
4709
+ SE_ECL_1ST_VISIBLE: 512,
4710
+ SE_ECL_PARTBEG_VISIBLE: 512,
4711
+ SE_ECL_2ND_VISIBLE: 1024,
4712
+ SE_ECL_TOTBEG_VISIBLE: 1024,
4713
+ SE_ECL_3RD_VISIBLE: 2048,
4714
+ SE_ECL_TOTEND_VISIBLE: 2048,
4715
+ SE_ECL_4TH_VISIBLE: 4096,
4716
+ SE_ECL_PARTEND_VISIBLE: 4096,
4717
+ SE_ECL_PENUMBBEG_VISIBLE: 8192,
4718
+ SE_ECL_PENUMBEND_VISIBLE: 16384,
4719
+ SE_ECL_OCC_BEG_DAYLIGHT: 8192,
4720
+ SE_ECL_OCC_END_DAYLIGHT: 16384,
4721
+ SE_ECL_ONE_TRY: 32768,
4722
+ SE_CALC_RISE: 1,
4723
+ SE_CALC_SET: 2,
4724
+ SE_CALC_MTRANSIT: 4,
4725
+ SE_CALC_ITRANSIT: 8,
4726
+ SE_BIT_DISC_CENTER: 256,
4727
+ SE_BIT_DISC_BOTTOM: 8192,
4728
+ SE_BIT_GEOCTR_NO_ECL_LAT: 128,
4729
+ SE_BIT_NO_REFRACTION: 512,
4730
+ SE_BIT_CIVIL_TWILIGHT: 1024,
4731
+ SE_BIT_NAUTIC_TWILIGHT: 2048,
4732
+ SE_BIT_ASTRO_TWILIGHT: 4096,
4733
+ SE_BIT_FIXED_DISC_SIZE: 16384,
4734
+ SE_BIT_FORCE_SLOW_METHOD: 32768,
4735
+ SE_BIT_HINDU_RISING: 896,
4736
+ SE_ECL2HOR: 0,
4737
+ SE_EQU2HOR: 1,
4738
+ SE_HOR2ECL: 0,
4739
+ SE_HOR2EQU: 1,
4740
+ SE_TRUE_TO_APP: 0,
4741
+ SE_APP_TO_TRUE: 1,
4742
+ SE_DE_NUMBER: 431,
4743
+ SE_FNAME_DE200: "de200.eph",
4744
+ SE_FNAME_DE403: "de403.eph",
4745
+ SE_FNAME_DE404: "de404.eph",
4746
+ SE_FNAME_DE405: "de405.eph",
4747
+ SE_FNAME_DE406: "de406.eph",
4748
+ SE_FNAME_DE431: "de431.eph",
4749
+ SE_FNAME_DFT: "de431.eph",
4750
+ SE_FNAME_DFT2: "de406.eph",
4751
+ SE_STARFILE_OLD: "fixstars.cat",
4752
+ SE_STARFILE: "sefstars.txt",
4753
+ SE_ASTNAMFILE: "seasnam.txt",
4754
+ SE_FICTFILE: "seorbel.txt",
4755
+ SE_SPLIT_DEG_ROUND_SEC: 1,
4756
+ SE_SPLIT_DEG_ROUND_MIN: 2,
4757
+ SE_SPLIT_DEG_ROUND_DEG: 4,
4758
+ SE_SPLIT_DEG_ZODIACAL: 8,
4759
+ SE_SPLIT_DEG_NAKSHATRA: 1024,
4760
+ SE_SPLIT_DEG_KEEP_SIGN: 16,
4761
+ SE_SPLIT_DEG_KEEP_DEG: 32,
4762
+ SE_HELIACAL_RISING: 1,
4763
+ SE_HELIACAL_SETTING: 2,
4764
+ SE_MORNING_FIRST: 1,
4765
+ SE_EVENING_LAST: 2,
4766
+ SE_EVENING_FIRST: 3,
4767
+ SE_MORNING_LAST: 4,
4768
+ SE_ACRONYCHAL_RISING: 5,
4769
+ SE_ACRONYCHAL_SETTING: 6,
4770
+ SE_COSMICAL_SETTING: 6,
4771
+ SE_HELFLAG_LONG_SEARCH: 128,
4772
+ SE_HELFLAG_HIGH_PRECISION: 256,
4773
+ SE_HELFLAG_OPTICAL_PARAMS: 512,
4774
+ SE_HELFLAG_NO_DETAILS: 1024,
4775
+ SE_HELFLAG_SEARCH_1_PERIOD: 2048,
4776
+ SE_HELFLAG_VISLIM_DARK: 4096,
4777
+ SE_HELFLAG_VISLIM_NOMOON: 8192,
4778
+ SE_HELFLAG_VISLIM_PHOTOPIC: 16384,
4779
+ SE_HELFLAG_VISLIM_SCOTOPIC: 32768,
4780
+ SE_HELFLAG_AV: 65536,
4781
+ SE_HELFLAG_AVKIND_VR: 65536,
4782
+ SE_HELFLAG_AVKIND_PTO: 131072,
4783
+ SE_HELFLAG_AVKIND_MIN7: 262144,
4784
+ SE_HELFLAG_AVKIND_MIN9: 524288,
4785
+ SE_HELFLAG_AVKIND: 983040,
4786
+ TJD_INVALID: 99999999,
4787
+ SIMULATE_VICTORVB: 1,
4788
+ SE_PHOTOPIC_FLAG: 0,
4789
+ SE_SCOTOPIC_FLAG: 1,
4790
+ SE_MIXEDOPIC_FLAG: 2,
4791
+ SE_TIDAL_DE200: -23.8946,
4792
+ SE_TIDAL_DE403: -25.58,
4793
+ SE_TIDAL_DE404: -25.58,
4794
+ SE_TIDAL_DE405: -25.826,
4795
+ SE_TIDAL_DE406: -25.826,
4796
+ SE_TIDAL_DE421: -25.85,
4797
+ SE_TIDAL_DE422: -25.85,
4798
+ SE_TIDAL_DE430: -25.82,
4799
+ SE_TIDAL_DE431: -25.8,
4800
+ SE_TIDAL_26: -26,
4801
+ SE_TIDAL_STEPHENSON_2016: -25.85,
4802
+ SE_TIDAL_DEFAULT: -25.8,
4803
+ SE_TIDAL_AUTOMATIC: 999999,
4804
+ SE_TIDAL_MOSEPH: -25.58,
4805
+ SE_TIDAL_SWIEPH: -25.8,
4806
+ SE_TIDAL_JPLEPH: -25.8,
4807
+ SE_DELTAT_AUTOMATIC: 0.0000000001,
4808
+ SE_MODEL_DELTAT: 0,
4809
+ SE_MODEL_PREC_LONGTERM: 1,
4810
+ SE_MODEL_PREC_SHORTTERM: 2,
4811
+ SE_MODEL_NUT: 3,
4812
+ SE_MODEL_BIAS: 4,
4813
+ SE_MODEL_JPLHOR_MODE: 5,
4814
+ SE_MODEL_JPLHORA_MODE: 6,
4815
+ SE_MODEL_SIDT: 7,
4816
+ NSE_MODELS: 8,
4817
+ SEMOD_NPREC: 11,
4818
+ SEMOD_PREC_IAU_1976: 1,
4819
+ SEMOD_PREC_LASKAR_1986: 2,
4820
+ SEMOD_PREC_WILL_EPS_LASK: 3,
4821
+ SEMOD_PREC_WILLIAMS_1994: 4,
4822
+ SEMOD_PREC_SIMON_1994: 5,
4823
+ SEMOD_PREC_IAU_2000: 6,
4824
+ SEMOD_PREC_BRETAGNON_2003: 7,
4825
+ SEMOD_PREC_IAU_2006: 8,
4826
+ SEMOD_PREC_VONDRAK_2011: 9,
4827
+ SEMOD_PREC_OWEN_1990: 10,
4828
+ SEMOD_PREC_NEWCOMB: 11,
4829
+ SEMOD_PREC_DEFAULT: 9,
4830
+ SEMOD_PREC_DEFAULT_SHORT: 9,
4831
+ SEMOD_NNUT: 5,
4832
+ SEMOD_NUT_IAU_1980: 1,
4833
+ SEMOD_NUT_IAU_CORR_1987: 2,
4834
+ SEMOD_NUT_IAU_2000A: 3,
4835
+ SEMOD_NUT_IAU_2000B: 4,
4836
+ SEMOD_NUT_WOOLARD: 5,
4837
+ SEMOD_NUT_DEFAULT: 4,
4838
+ SEMOD_NSIDT: 4,
4839
+ SEMOD_SIDT_IAU_1976: 1,
4840
+ SEMOD_SIDT_IAU_2006: 2,
4841
+ SEMOD_SIDT_IERS_CONV_2010: 3,
4842
+ SEMOD_SIDT_LONGTERM: 4,
4843
+ SEMOD_SIDT_DEFAULT: 4,
4844
+ SEMOD_NBIAS: 3,
4845
+ SEMOD_BIAS_NONE: 1,
4846
+ SEMOD_BIAS_IAU2000: 2,
4847
+ SEMOD_BIAS_IAU2006: 3,
4848
+ SEMOD_BIAS_DEFAULT: 3,
4849
+ SEMOD_NJPLHOR: 2,
4850
+ SEMOD_JPLHOR_LONG_AGREEMENT: 1,
4851
+ SEMOD_JPLHOR_DEFAULT: 1,
4852
+ SEMOD_NJPLHORA: 3,
4853
+ SEMOD_JPLHORA_1: 1,
4854
+ SEMOD_JPLHORA_2: 2,
4855
+ SEMOD_JPLHORA_3: 3,
4856
+ SEMOD_JPLHORA_DEFAULT: 3,
4857
+ SEMOD_NDELTAT: 5,
4858
+ SEMOD_DELTAT_STEPHENSON_MORRISON_1984: 1,
4859
+ SEMOD_DELTAT_STEPHENSON_1997: 2,
4860
+ SEMOD_DELTAT_STEPHENSON_MORRISON_2004: 3,
4861
+ SEMOD_DELTAT_ESPENAK_MEEUS_2006: 4,
4862
+ SEMOD_DELTAT_STEPHENSON_ETC_2016: 5,
4863
+ SEMOD_DELTAT_DEFAULT: 5
4854
4864
  }
4855
4865
  }