@typescriptify/sweph 1.0.0 → 1.0.1

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 (131) hide show
  1. package/package.json +6 -2
  2. package/originalCode/.eslintrc.json +0 -124
  3. package/originalCode/.gitattributes +0 -2
  4. package/originalCode/.github/FUNDING.yml +0 -5
  5. package/originalCode/.github/workflows/test.yml +0 -35
  6. package/originalCode/LICENSE +0 -840
  7. package/originalCode/README.md +0 -91
  8. package/originalCode/binding.gyp +0 -41
  9. package/originalCode/constants.js +0 -366
  10. package/originalCode/docs.gif +0 -0
  11. package/originalCode/index.d.ts +0 -5115
  12. package/originalCode/index.js +0 -7
  13. package/originalCode/index.mjs +0 -109
  14. package/originalCode/package.json +0 -55
  15. package/originalCode/src/functions/azalt.cpp +0 -39
  16. package/originalCode/src/functions/azalt_rev.cpp +0 -35
  17. package/originalCode/src/functions/calc.cpp +0 -29
  18. package/originalCode/src/functions/calc_pctr.cpp +0 -31
  19. package/originalCode/src/functions/calc_ut.cpp +0 -29
  20. package/originalCode/src/functions/close.cpp +0 -6
  21. package/originalCode/src/functions/cotrans.cpp +0 -26
  22. package/originalCode/src/functions/cotrans_sp.cpp +0 -26
  23. package/originalCode/src/functions/cs2degstr.cpp +0 -19
  24. package/originalCode/src/functions/cs2lonlatstr.cpp +0 -23
  25. package/originalCode/src/functions/cs2timestr.cpp +0 -23
  26. package/originalCode/src/functions/csnorm.cpp +0 -15
  27. package/originalCode/src/functions/csroundsec.cpp +0 -15
  28. package/originalCode/src/functions/d2l.cpp +0 -15
  29. package/originalCode/src/functions/date_conversion.cpp +0 -30
  30. package/originalCode/src/functions/day_of_week.cpp +0 -15
  31. package/originalCode/src/functions/degnorm.cpp +0 -15
  32. package/originalCode/src/functions/deltat.cpp +0 -15
  33. package/originalCode/src/functions/deltat_ex.cpp +0 -24
  34. package/originalCode/src/functions/difcs2n.cpp +0 -19
  35. package/originalCode/src/functions/difcsn.cpp +0 -19
  36. package/originalCode/src/functions/difdeg2n.cpp +0 -19
  37. package/originalCode/src/functions/difdegn.cpp +0 -19
  38. package/originalCode/src/functions/fixstar.cpp +0 -32
  39. package/originalCode/src/functions/fixstar2.cpp +0 -32
  40. package/originalCode/src/functions/fixstar2_mag.cpp +0 -28
  41. package/originalCode/src/functions/fixstar2_ut.cpp +0 -32
  42. package/originalCode/src/functions/fixstar_mag.cpp +0 -28
  43. package/originalCode/src/functions/fixstar_ut.cpp +0 -32
  44. package/originalCode/src/functions/gauquelin_sector.cpp +0 -44
  45. package/originalCode/src/functions/get_ayanamsa.cpp +0 -15
  46. package/originalCode/src/functions/get_ayanamsa_ex.cpp +0 -27
  47. package/originalCode/src/functions/get_ayanamsa_ex_ut.cpp +0 -27
  48. package/originalCode/src/functions/get_ayanamsa_name.cpp +0 -19
  49. package/originalCode/src/functions/get_ayanamsa_ut.cpp +0 -15
  50. package/originalCode/src/functions/get_current_file_data.cpp +0 -28
  51. package/originalCode/src/functions/get_library_path.cpp +0 -8
  52. package/originalCode/src/functions/get_orbital_elements.cpp +0 -29
  53. package/originalCode/src/functions/get_planet_name.cpp +0 -19
  54. package/originalCode/src/functions/get_tid_acc.cpp +0 -7
  55. package/originalCode/src/functions/heliacal_pheno_ut.cpp +0 -52
  56. package/originalCode/src/functions/heliacal_ut.cpp +0 -52
  57. package/originalCode/src/functions/helio_cross.cpp +0 -33
  58. package/originalCode/src/functions/helio_cross_ut.cpp +0 -33
  59. package/originalCode/src/functions/house_name.cpp +0 -20
  60. package/originalCode/src/functions/house_pos.cpp +0 -36
  61. package/originalCode/src/functions/houses.cpp +0 -35
  62. package/originalCode/src/functions/houses_armc.cpp +0 -38
  63. package/originalCode/src/functions/houses_armc_ex2.cpp +0 -47
  64. package/originalCode/src/functions/houses_ex.cpp +0 -37
  65. package/originalCode/src/functions/houses_ex2.cpp +0 -46
  66. package/originalCode/src/functions/jdet_to_utc.cpp +0 -38
  67. package/originalCode/src/functions/jdut1_to_utc.cpp +0 -38
  68. package/originalCode/src/functions/julday.cpp +0 -25
  69. package/originalCode/src/functions/lat_to_lmt.cpp +0 -27
  70. package/originalCode/src/functions/lmt_to_lat.cpp +0 -27
  71. package/originalCode/src/functions/lun_eclipse_how.cpp +0 -34
  72. package/originalCode/src/functions/lun_eclipse_when.cpp +0 -31
  73. package/originalCode/src/functions/lun_eclipse_when_loc.cpp +0 -39
  74. package/originalCode/src/functions/lun_occult_when_glob.cpp +0 -35
  75. package/originalCode/src/functions/lun_occult_when_loc.cpp +0 -43
  76. package/originalCode/src/functions/lun_occult_where.cpp +0 -34
  77. package/originalCode/src/functions/mooncross.cpp +0 -26
  78. package/originalCode/src/functions/mooncross_node.cpp +0 -30
  79. package/originalCode/src/functions/mooncross_node_ut.cpp +0 -30
  80. package/originalCode/src/functions/mooncross_ut.cpp +0 -26
  81. package/originalCode/src/functions/nod_aps.cpp +0 -42
  82. package/originalCode/src/functions/nod_aps_ut.cpp +0 -42
  83. package/originalCode/src/functions/orbit_max_min_true_distance.cpp +0 -37
  84. package/originalCode/src/functions/pheno.cpp +0 -29
  85. package/originalCode/src/functions/pheno_ut.cpp +0 -29
  86. package/originalCode/src/functions/radnorm.cpp +0 -15
  87. package/originalCode/src/functions/refrac.cpp +0 -23
  88. package/originalCode/src/functions/refrac_extended.cpp +0 -32
  89. package/originalCode/src/functions/revjul.cpp +0 -33
  90. package/originalCode/src/functions/rise_trans.cpp +0 -44
  91. package/originalCode/src/functions/rise_trans_true_hor.cpp +0 -46
  92. package/originalCode/src/functions/set_delta_t_userdef.cpp +0 -14
  93. package/originalCode/src/functions/set_ephe_path.cpp +0 -14
  94. package/originalCode/src/functions/set_jpl_file.cpp +0 -14
  95. package/originalCode/src/functions/set_sid_mode.cpp +0 -20
  96. package/originalCode/src/functions/set_tid_acc.cpp +0 -14
  97. package/originalCode/src/functions/set_topo.cpp +0 -20
  98. package/originalCode/src/functions/sidtime.cpp +0 -15
  99. package/originalCode/src/functions/sidtime0.cpp +0 -21
  100. package/originalCode/src/functions/sol_eclipse_how.cpp +0 -34
  101. package/originalCode/src/functions/sol_eclipse_when_glob.cpp +0 -31
  102. package/originalCode/src/functions/sol_eclipse_when_loc.cpp +0 -39
  103. package/originalCode/src/functions/sol_eclipse_where.cpp +0 -30
  104. package/originalCode/src/functions/solcross.cpp +0 -26
  105. package/originalCode/src/functions/solcross_ut.cpp +0 -26
  106. package/originalCode/src/functions/split_deg.cpp +0 -35
  107. package/originalCode/src/functions/time_equ.cpp +0 -25
  108. package/originalCode/src/functions/utc_time_zone.cpp +0 -48
  109. package/originalCode/src/functions/utc_to_jd.cpp +0 -37
  110. package/originalCode/src/functions/version.cpp +0 -8
  111. package/originalCode/src/functions/vis_limit_mag.cpp +0 -50
  112. package/originalCode/src/sweph.cpp +0 -150
  113. package/originalCode/src/sweph.h +0 -119
  114. package/originalCode/swisseph/swecl.c +0 -6428
  115. package/originalCode/swisseph/swedate.c +0 -588
  116. package/originalCode/swisseph/swedate.h +0 -81
  117. package/originalCode/swisseph/swehel.c +0 -3511
  118. package/originalCode/swisseph/swehouse.c +0 -3143
  119. package/originalCode/swisseph/swehouse.h +0 -98
  120. package/originalCode/swisseph/swejpl.c +0 -958
  121. package/originalCode/swisseph/swejpl.h +0 -103
  122. package/originalCode/swisseph/swemmoon.c +0 -1930
  123. package/originalCode/swisseph/swemplan.c +0 -967
  124. package/originalCode/swisseph/swemptab.h +0 -10640
  125. package/originalCode/swisseph/swenut2000a.h +0 -2819
  126. package/originalCode/swisseph/sweodef.h +0 -326
  127. package/originalCode/swisseph/sweph.c +0 -8614
  128. package/originalCode/swisseph/sweph.h +0 -849
  129. package/originalCode/swisseph/swephexp.h +0 -1020
  130. package/originalCode/swisseph/swephlib.c +0 -4634
  131. package/originalCode/swisseph/swephlib.h +0 -189
@@ -1,91 +0,0 @@
1
- # Sweph
2
-
3
- The definitive Swiss Ephemeris bindings for Node.js
4
- Everything you need to create Astrology and Astronomy applications with JavaScript and Node.JS
5
-
6
- * 100% API coverage
7
- * Built-in Typescript declarations and ESM exports
8
- * Built-in intellisense documentation
9
- * Version matched
10
- * Built with Node's N-API
11
-
12
- [Official programmer's documentation for the Swiss Ephemeris by Astrodienst AG](https://www.astro.com/swisseph/swephprg.htm)
13
- [Official guide for the Swiss Ephemeris by Astrodienst AG](https://www.astro.com/ftp/swisseph/doc/swisseph.htm)
14
- [Sweph on GitHub](https://github.com/timotejroiko/sweph)
15
- [Sweph on NPM](https://npmjs.com/package/sweph)
16
-
17
- ## Installation and Licensing
18
-
19
- This library follows the licensing requirements for the Swiss Ephemeris by Astrodienst AG.
20
-
21
- ### - GPL
22
-
23
- Up to and including version `2.10.0`, this library is licensed under `GPL-2.0`.
24
- To install and use this library under GPL, use `npm install sweph@gpl` or `npm install sweph@2.10.0`.
25
-
26
- ### - AGPL
27
-
28
- Starting from version `2.10.1` and later, this library is licensed under `AGPL-3.0`.
29
- To install and use the latest version of this library under AGPL, use `npm install sweph` or `npm install sweph@latest`.
30
-
31
- ### - LGPL
32
-
33
- If you own a professional license for the Swiss Ephemeris, you may use any version of this library under `LGPL-3.0`.
34
-
35
- ## Versioning
36
-
37
- This library is version locked to the Swiss Ephemeris in addition to its own revisions. For example, version `2.10.1-1` corresponds to the Swiss Ephemeris version `2.10.1` and this library's revision `1`.
38
-
39
- Updates to this library will be released under new revisions, while updates to Swiss Ephemeris will be released under matching SemVer versions.
40
-
41
- **Current Version: 2.10.3-b-1**
42
- **Equivalent to Swiss Ephemeris version: 2.10.03b revision 1**
43
-
44
- ## Documentation
45
-
46
- This library is fully typed and documented via intellisense. To access its documentation simply hover over its functions in your favorite code editor:
47
-
48
- ![docs_example](docs.gif)
49
-
50
- ## Ephemeris files
51
-
52
- Ephemeris files are required to enable high precision calculations for planets and asteroids. This library does not include any ephemeris files by default, but you can download them from the official Swiss Ephemeris Github repository (main planets only) or the official Astrodienst Dropox folder (all files):
53
-
54
- * Swiss Ephemeris Github: [https://github.com/aloistr/swisseph/tree/master/ephe](https://github.com/aloistr/swisseph/tree/master/ephe)
55
- * Astrodienst Dropbox [https://www.dropbox.com/scl/fo/y3naz62gy6f6qfrhquu7u/h?rlkey=ejltdhb262zglm7eo6yfj2940&dl=0](https://www.dropbox.com/scl/fo/y3naz62gy6f6qfrhquu7u/h?rlkey=ejltdhb262zglm7eo6yfj2940&dl=0)
56
-
57
- Each main ephemeris file covers a range of 600 years starting from the century indicated in its name, for example the file `sepl_18.se1` is valid from year 1800 until year 2400. The following files are available:
58
-
59
- * sepl files - planets
60
- * seplm files - planets (BC)
61
- * semo files - moon
62
- * semom files - moon (BC)
63
- * seas files - main asteroids
64
- * seasm files - main asteroids (BC)
65
-
66
- For advanced usage, the following files and folders can also be found in the dropbox link:
67
-
68
- * all_ast - files for all asteroids (600 years range)
69
- * long_ast - files for named asteroids (6000 years range)
70
- * jpl binary files - files for NASA's JPL ephemerides
71
- * ephe/sat folder - files for planetary moons
72
-
73
- To use the files, download them, store them in some folder, then call `set_ephe_path()` to point the library to that folder. Asteroid files should be placed in `astxxx` subfolders, the same way they appear in the dropbox asteroids section. Files for planetary moons should be placed in a `sat` subfolder.
74
-
75
- More information can be found in the files sections of the [Swiss Ephemeris documentation](https://www.astro.com/ftp/swisseph/doc/swisseph.htm).
76
-
77
- ## Contributing
78
-
79
- If you find any inaccuracy or bug in this library, or if you find an upstream update that is not yet included in this library, feel free to open an issue or a pull request.
80
-
81
- ## Limitations
82
-
83
- * While worker_threads are supported, the underlying C library is single threaded and contains process-wide settings. Functions such as `set_ephe_path()` or `set_sid_mode()` will affect the entire process, including all worker_threads. While you can still use worker_threads as long as you don't change settings from other threads in the middle of calculations, true thread-safe multithreading can only be achieved using child_process.
84
-
85
- * This library is a C/C++ add-on designed for Node.JS only, it will not work in browsers, other JS engines or in any other environment that does not support native C/C++ add-ons made with Node's N-API. In order to install this library, the target system must have the necessary build tools installed, such as `python`, `make` and `gcc` on Linux, `xcode` on Mac, `visual c++ build tools` on Windows, and/or other equivalent solutions.
86
-
87
- ## Copyright
88
-
89
- Copyright © 2021-2023, Timotej Valentin Rojko
90
-
91
- This library is offered free of charge for any type of use, including commercial use, however, if you're an individual or a company using this library in commercial products and/or services, consider subscribing to the appropriate sponsorship level [here](https://github.com/sponsors/timotejroiko) and get priority support for your business.
@@ -1,41 +0,0 @@
1
- {
2
- "targets": [
3
- {
4
- "target_name": "sweph",
5
- "sources": [
6
- "src/sweph.cpp",
7
- "src/functions.cpp"
8
- ],
9
- "include_dirs": [
10
- "<!(node -p \"require('node-addon-api').include_dir\")",
11
- "src"
12
- ],
13
- "dependencies": [
14
- "swisseph"
15
- ],
16
- "defines": [
17
- "NAPI_DISABLE_CPP_EXCEPTIONS"
18
- ]
19
- },
20
- {
21
- "target_name": "swisseph",
22
- 'type': "static_library",
23
- "sources": [
24
- "swisseph/swecl.c",
25
- "swisseph/swedate.c",
26
- "swisseph/swehel.c",
27
- "swisseph/swehouse.c",
28
- "swisseph/swejpl.c",
29
- "swisseph/swemmoon.c",
30
- "swisseph/swemplan.c",
31
- "swisseph/sweph.c",
32
- "swisseph/swephlib.c"
33
- ],
34
- "direct_dependent_settings": {
35
- "include_dirs": [
36
- "swisseph"
37
- ]
38
- }
39
- }
40
- ]
41
- }
@@ -1,366 +0,0 @@
1
- "use strict";
2
-
3
- exports.OK = 0;
4
- exports.ERR = -1;
5
-
6
- exports.SE_AUNIT_TO_KM = 149597870.700;
7
- exports.SE_AUNIT_TO_LIGHTYEAR = 1 / 63241.07708427;
8
- exports.SE_AUNIT_TO_PARSEC = 1 / 206264.8062471;
9
-
10
- exports.SE_JUL_CAL = 0;
11
- exports.SE_GREG_CAL = 1;
12
-
13
- exports.SE_ECL_NUT = -1;
14
-
15
- exports.SE_SUN = 0;
16
- exports.SE_MOON = 1;
17
- exports.SE_MERCURY = 2;
18
- exports.SE_VENUS = 3;
19
- exports.SE_MARS = 4;
20
- exports.SE_JUPITER = 5;
21
- exports.SE_SATURN = 6;
22
- exports.SE_URANUS = 7;
23
- exports.SE_NEPTUNE = 8;
24
- exports.SE_PLUTO = 9;
25
- exports.SE_MEAN_NODE = 10;
26
- exports.SE_TRUE_NODE = 11;
27
- exports.SE_MEAN_APOG = 12;
28
- exports.SE_OSCU_APOG = 13;
29
- exports.SE_EARTH = 14;
30
- exports.SE_CHIRON = 15;
31
- exports.SE_PHOLUS = 16;
32
- exports.SE_CERES = 17;
33
- exports.SE_PALLAS = 18;
34
- exports.SE_JUNO = 19;
35
- exports.SE_VESTA = 20;
36
- exports.SE_INTP_APOG = 21;
37
- exports.SE_INTP_PERG = 22;
38
-
39
- exports.SE_NPLANETS = 23;
40
-
41
- exports.SE_PLMOON_OFFSET = 9000;
42
- exports.SE_AST_OFFSET = 10000;
43
- exports.SE_VARUNA = exports.SE_AST_OFFSET + 20000;
44
-
45
- exports.SE_FICT_OFFSET = 40;
46
- exports.SE_FICT_OFFSET_1 = 39;
47
- exports.SE_FICT_MAX = 999;
48
- exports.SE_NFICT_ELEM = 15;
49
-
50
- exports.SE_COMET_OFFSET = 1000;
51
-
52
- exports.SE_NALL_NAT_POINTS = exports.SE_NPLANETS + exports.SE_NFICT_ELEM;
53
-
54
- exports.SE_CUPIDO = 40;
55
- exports.SE_HADES = 41;
56
- exports.SE_ZEUS = 42;
57
- exports.SE_KRONOS = 43;
58
- exports.SE_APOLLON = 44;
59
- exports.SE_ADMETOS = 45;
60
- exports.SE_VULKANUS = 46;
61
- exports.SE_POSEIDON = 47;
62
- exports.SE_ISIS = 48;
63
- exports.SE_NIBIRU = 49;
64
- exports.SE_HARRINGTON = 50;
65
- exports.SE_NEPTUNE_LEVERRIER = 51;
66
- exports.SE_NEPTUNE_ADAMS = 52;
67
- exports.SE_PLUTO_LOWELL = 53;
68
- exports.SE_PLUTO_PICKERING = 54;
69
- exports.SE_VULCAN = 55;
70
- exports.SE_WHITE_MOON = 56;
71
- exports.SE_PROSERPINA = 57;
72
- exports.SE_WALDEMATH = 58;
73
-
74
- exports.SE_FIXSTAR = -10;
75
-
76
- exports.SE_ASC = 0;
77
- exports.SE_MC = 1;
78
- exports.SE_ARMC = 2;
79
- exports.SE_VERTEX = 3;
80
- exports.SE_EQUASC = 4;
81
- exports.SE_COASC1 = 5;
82
- exports.SE_COASC2 = 6;
83
- exports.SE_POLASC = 7;
84
- exports.SE_NASCMC = 8;
85
-
86
- exports.SEFLG_JPLEPH = 1;
87
- exports.SEFLG_SWIEPH = 2;
88
- exports.SEFLG_MOSEPH = 4;
89
-
90
- exports.SEFLG_HELCTR = 8;
91
- exports.SEFLG_TRUEPOS = 16;
92
- exports.SEFLG_J2000 = 32;
93
- exports.SEFLG_NONUT = 64;
94
- exports.SEFLG_SPEED3 = 128;
95
- exports.SEFLG_SPEED = 256;
96
- exports.SEFLG_NOGDEFL = 512;
97
- exports.SEFLG_NOABERR = 1024;
98
- exports.SEFLG_ASTROMETRIC = exports.SEFLG_NOABERR | exports.SEFLG_NOGDEFL;
99
- exports.SEFLG_EQUATORIAL = 2 * 1024;
100
- exports.SEFLG_XYZ = 4 * 1024;
101
- exports.SEFLG_RADIANS = 8 * 1024;
102
- exports.SEFLG_BARYCTR = 16 * 1024;
103
- exports.SEFLG_TOPOCTR = 32 * 1024;
104
- exports.SEFLG_ORBEL_AA = exports.SEFLG_TOPOCTR;
105
- exports.SEFLG_TROPICAL = 0;
106
- exports.SEFLG_SIDEREAL = 64 * 1024;
107
- exports.SEFLG_ICRS = 128 * 1024;
108
- exports.SEFLG_DPSIDEPS_1980 = 256 * 1024;
109
- exports.SEFLG_JPLHOR = exports.SEFLG_DPSIDEPS_1980;
110
- exports.SEFLG_JPLHOR_APPROX = 512 * 1024;
111
- exports.SEFLG_CENTER_BODY = 1024 * 1024;
112
- exports.SEFLG_TEST_PLMOON = 2 * 1024 * 1024 | exports.SEFLG_J2000 | exports.SEFLG_ICRS | exports.SEFLG_HELCTR | exports.SEFLG_TRUEPOS;
113
-
114
- exports.SE_SIDBITS = 256;
115
- exports.SE_SIDBIT_ECL_T0 = 256;
116
- exports.SE_SIDBIT_SSY_PLANE = 512;
117
- exports.SE_SIDBIT_USER_UT = 1024;
118
- exports.SE_SIDBIT_ECL_DATE = 2048;
119
- exports.SE_SIDBIT_NO_PREC_OFFSET = 4096;
120
- exports.SE_SIDBIT_PREC_ORIG = 8192;
121
-
122
- exports.SE_SIDM_FAGAN_BRADLEY = 0;
123
- exports.SE_SIDM_LAHIRI = 1;
124
- exports.SE_SIDM_DELUCE = 2;
125
- exports.SE_SIDM_RAMAN = 3;
126
- exports.SE_SIDM_USHASHASHI = 4;
127
- exports.SE_SIDM_KRISHNAMURTI = 5;
128
- exports.SE_SIDM_DJWHAL_KHUL = 6;
129
- exports.SE_SIDM_YUKTESHWAR = 7;
130
- exports.SE_SIDM_JN_BHASIN = 8;
131
- exports.SE_SIDM_BABYL_KUGLER1 = 9;
132
- exports.SE_SIDM_BABYL_KUGLER2 = 10;
133
- exports.SE_SIDM_BABYL_KUGLER3 = 11;
134
- exports.SE_SIDM_BABYL_HUBER = 12;
135
- exports.SE_SIDM_BABYL_ETPSC = 13;
136
- exports.SE_SIDM_ALDEBARAN_15TAU = 14;
137
- exports.SE_SIDM_HIPPARCHOS = 15;
138
- exports.SE_SIDM_SASSANIAN = 16;
139
- exports.SE_SIDM_GALCENT_0SAG = 17;
140
- exports.SE_SIDM_J2000 = 18;
141
- exports.SE_SIDM_J1900 = 19;
142
- exports.SE_SIDM_B1950 = 20;
143
- exports.SE_SIDM_SURYASIDDHANTA = 21;
144
- exports.SE_SIDM_SURYASIDDHANTA_MSUN = 22;
145
- exports.SE_SIDM_ARYABHATA = 23;
146
- exports.SE_SIDM_ARYABHATA_MSUN = 24;
147
- exports.SE_SIDM_SS_REVATI = 25;
148
- exports.SE_SIDM_SS_CITRA = 26;
149
- exports.SE_SIDM_TRUE_CITRA = 27;
150
- exports.SE_SIDM_TRUE_REVATI = 28;
151
- exports.SE_SIDM_TRUE_PUSHYA = 29;
152
- exports.SE_SIDM_GALCENT_RGILBRAND = 30;
153
- exports.SE_SIDM_GALEQU_IAU1958 = 31;
154
- exports.SE_SIDM_GALEQU_TRUE = 32;
155
- exports.SE_SIDM_GALEQU_MULA = 33;
156
- exports.SE_SIDM_GALALIGN_MARDYKS = 34;
157
- exports.SE_SIDM_TRUE_MULA = 35;
158
- exports.SE_SIDM_GALCENT_MULA_WILHELM = 36;
159
- exports.SE_SIDM_ARYABHATA_522 = 37;
160
- exports.SE_SIDM_BABYL_BRITTON = 38;
161
- exports.SE_SIDM_TRUE_SHEORAN = 39;
162
- exports.SE_SIDM_GALCENT_COCHRANE = 40;
163
- exports.SE_SIDM_GALEQU_FIORENZA = 41;
164
- exports.SE_SIDM_VALENS_MOON = 42;
165
- exports.SE_SIDM_LAHIRI_1940 = 43;
166
- exports.SE_SIDM_LAHIRI_VP285 = 44;
167
- exports.SE_SIDM_KRISHNAMURTI_VP291 = 45;
168
- exports.SE_SIDM_LAHIRI_ICRC = 46;
169
- exports.SE_SIDM_USER = 255;
170
-
171
- exports.SE_NSIDM_PREDEF = 47;
172
-
173
- exports.SE_NODBIT_MEAN = 1;
174
- exports.SE_NODBIT_OSCU = 2;
175
- exports.SE_NODBIT_OSCU_BAR = 4;
176
- exports.SE_NODBIT_FOPOINT = 256;
177
-
178
- exports.SEFLG_DEFAULTEPH = exports.SEFLG_SWIEPH;
179
-
180
- exports.SE_MAX_STNAME = 256;
181
-
182
- exports.SE_ECL_CENTRAL = 1;
183
- exports.SE_ECL_NONCENTRAL = 2;
184
- exports.SE_ECL_TOTAL = 4;
185
- exports.SE_ECL_ANNULAR = 8;
186
- exports.SE_ECL_PARTIAL = 16;
187
- exports.SE_ECL_ANNULAR_TOTAL = 32;
188
- exports.SE_ECL_HYBRID = 32;
189
- exports.SE_ECL_PENUMBRAL = 64;
190
- exports.SE_ECL_ALLTYPES_SOLAR = exports.SE_ECL_CENTRAL | exports.SE_ECL_NONCENTRAL | exports.SE_ECL_TOTAL | exports.SE_ECL_ANNULAR | exports.SE_ECL_PARTIAL | exports.SE_ECL_ANNULAR_TOTAL;
191
- exports.SE_ECL_ALLTYPES_LUNAR = exports.SE_ECL_TOTAL | exports.SE_ECL_PARTIAL | exports.SE_ECL_PENUMBRAL;
192
- exports.SE_ECL_VISIBLE = 128;
193
- exports.SE_ECL_MAX_VISIBLE = 256;
194
- exports.SE_ECL_1ST_VISIBLE = 512;
195
- exports.SE_ECL_PARTBEG_VISIBLE = 512;
196
- exports.SE_ECL_2ND_VISIBLE = 1024;
197
- exports.SE_ECL_TOTBEG_VISIBLE = 1024;
198
- exports.SE_ECL_3RD_VISIBLE = 2048;
199
- exports.SE_ECL_TOTEND_VISIBLE = 2048;
200
- exports.SE_ECL_4TH_VISIBLE = 4096;
201
- exports.SE_ECL_PARTEND_VISIBLE = 4096;
202
- exports.SE_ECL_PENUMBBEG_VISIBLE = 8192;
203
- exports.SE_ECL_PENUMBEND_VISIBLE = 16384;
204
- exports.SE_ECL_OCC_BEG_DAYLIGHT = 8192;
205
- exports.SE_ECL_OCC_END_DAYLIGHT = 16384;
206
- exports.SE_ECL_ONE_TRY = 32 * 1024;
207
-
208
- exports.SE_CALC_RISE = 1;
209
- exports.SE_CALC_SET = 2;
210
- exports.SE_CALC_MTRANSIT = 4;
211
- exports.SE_CALC_ITRANSIT = 8;
212
- exports.SE_BIT_DISC_CENTER = 256;
213
- exports.SE_BIT_DISC_BOTTOM = 8192;
214
- exports.SE_BIT_GEOCTR_NO_ECL_LAT = 128;
215
- exports.SE_BIT_NO_REFRACTION = 512;
216
- exports.SE_BIT_CIVIL_TWILIGHT = 1024;
217
- exports.SE_BIT_NAUTIC_TWILIGHT = 2048;
218
- exports.SE_BIT_ASTRO_TWILIGHT = 4096;
219
- exports.SE_BIT_FIXED_DISC_SIZE = 16384;
220
- exports.SE_BIT_FORCE_SLOW_METHOD = 32768;
221
- exports.SE_BIT_HINDU_RISING = exports.SE_BIT_DISC_CENTER | exports.SE_BIT_NO_REFRACTION | exports.SE_BIT_GEOCTR_NO_ECL_LAT;
222
-
223
- exports.SE_ECL2HOR = 0;
224
- exports.SE_EQU2HOR = 1;
225
- exports.SE_HOR2ECL = 0;
226
- exports.SE_HOR2EQU = 1;
227
-
228
- exports.SE_TRUE_TO_APP = 0;
229
- exports.SE_APP_TO_TRUE = 1;
230
-
231
- exports.SE_DE_NUMBER = 431;
232
- exports.SE_FNAME_DE200 = "de200.eph";
233
- exports.SE_FNAME_DE403 = "de403.eph";
234
- exports.SE_FNAME_DE404 = "de404.eph";
235
- exports.SE_FNAME_DE405 = "de405.eph";
236
- exports.SE_FNAME_DE406 = "de406.eph";
237
- exports.SE_FNAME_DE431 = "de431.eph";
238
- exports.SE_FNAME_DFT = exports.SE_FNAME_DE431;
239
- exports.SE_FNAME_DFT2 = exports.SE_FNAME_DE406;
240
- exports.SE_STARFILE_OLD = "fixstars.cat";
241
- exports.SE_STARFILE = "sefstars.txt";
242
- exports.SE_ASTNAMFILE = "seasnam.txt";
243
- exports.SE_FICTFILE = "seorbel.txt";
244
-
245
- exports.SE_SPLIT_DEG_ROUND_SEC = 1;
246
- exports.SE_SPLIT_DEG_ROUND_MIN = 2;
247
- exports.SE_SPLIT_DEG_ROUND_DEG = 4;
248
- exports.SE_SPLIT_DEG_ZODIACAL = 8;
249
- exports.SE_SPLIT_DEG_NAKSHATRA = 1024;
250
- exports.SE_SPLIT_DEG_KEEP_SIGN = 16;
251
- exports.SE_SPLIT_DEG_KEEP_DEG = 32;
252
-
253
- exports.SE_HELIACAL_RISING = 1;
254
- exports.SE_HELIACAL_SETTING = 2;
255
- exports.SE_MORNING_FIRST = exports.SE_HELIACAL_RISING;
256
- exports.SE_EVENING_LAST = exports.SE_HELIACAL_SETTING;
257
- exports.SE_EVENING_FIRST = 3;
258
- exports.SE_MORNING_LAST = 4;
259
- exports.SE_ACRONYCHAL_RISING = 5;
260
- exports.SE_ACRONYCHAL_SETTING = 6;
261
- exports.SE_COSMICAL_SETTING = exports.SE_ACRONYCHAL_SETTING;
262
-
263
- exports.SE_HELFLAG_LONG_SEARCH = 128;
264
- exports.SE_HELFLAG_HIGH_PRECISION = 256;
265
- exports.SE_HELFLAG_OPTICAL_PARAMS = 512;
266
- exports.SE_HELFLAG_NO_DETAILS = 1024;
267
- exports.SE_HELFLAG_SEARCH_1_PERIOD = 1 << 11;
268
- exports.SE_HELFLAG_VISLIM_DARK = 1 << 12;
269
- exports.SE_HELFLAG_VISLIM_NOMOON = 1 << 13;
270
- exports.SE_HELFLAG_VISLIM_PHOTOPIC = 1 << 14;
271
- exports.SE_HELFLAG_VISLIM_SCOTOPIC = 1 << 15;
272
- exports.SE_HELFLAG_AV = 1 << 16;
273
- exports.SE_HELFLAG_AVKIND_VR = 1 << 16;
274
- exports.SE_HELFLAG_AVKIND_PTO = 1 << 17;
275
- exports.SE_HELFLAG_AVKIND_MIN7 = 1 << 18;
276
- exports.SE_HELFLAG_AVKIND_MIN9 = 1 << 19;
277
- exports.SE_HELFLAG_AVKIND = exports.SE_HELFLAG_AVKIND_VR | exports.SE_HELFLAG_AVKIND_PTO | exports.SE_HELFLAG_AVKIND_MIN7 | exports.SE_HELFLAG_AVKIND_MIN9;
278
- exports.TJD_INVALID = 99999999.0;
279
- exports.SIMULATE_VICTORVB = 1;
280
-
281
- exports.SE_PHOTOPIC_FLAG = 0;
282
- exports.SE_SCOTOPIC_FLAG = 1;
283
- exports.SE_MIXEDOPIC_FLAG = 2;
284
-
285
- exports.SE_TIDAL_DE200 = -23.8946;
286
- exports.SE_TIDAL_DE403 = -25.580;
287
- exports.SE_TIDAL_DE404 = -25.580;
288
- exports.SE_TIDAL_DE405 = -25.826;
289
- exports.SE_TIDAL_DE406 = -25.826;
290
- exports.SE_TIDAL_DE421 = -25.85;
291
- exports.SE_TIDAL_DE422 = -25.85;
292
- exports.SE_TIDAL_DE430 = -25.82;
293
- exports.SE_TIDAL_DE431 = -25.80;
294
- exports.SE_TIDAL_26 = -26.0;
295
- exports.SE_TIDAL_STEPHENSON_2016 = -25.85;
296
- exports.SE_TIDAL_DEFAULT = exports.SE_TIDAL_DE431;
297
- exports.SE_TIDAL_AUTOMATIC = 999999;
298
- exports.SE_TIDAL_MOSEPH = exports.SE_TIDAL_DE404;
299
- exports.SE_TIDAL_SWIEPH = exports.SE_TIDAL_DEFAULT;
300
- exports.SE_TIDAL_JPLEPH = exports.SE_TIDAL_DEFAULT;
301
-
302
- exports.SE_DELTAT_AUTOMATIC = -1E-10;
303
-
304
- exports.SE_MODEL_DELTAT = 0;
305
- exports.SE_MODEL_PREC_LONGTERM = 1;
306
- exports.SE_MODEL_PREC_SHORTTERM = 2;
307
- exports.SE_MODEL_NUT = 3;
308
- exports.SE_MODEL_BIAS = 4;
309
- exports.SE_MODEL_JPLHOR_MODE = 5;
310
- exports.SE_MODEL_JPLHORA_MODE = 6;
311
- exports.SE_MODEL_SIDT = 7;
312
- exports.NSE_MODELS = 8;
313
-
314
- exports.SEMOD_NPREC = 11;
315
- exports.SEMOD_PREC_IAU_1976 = 1;
316
- exports.SEMOD_PREC_LASKAR_1986 = 2;
317
- exports.SEMOD_PREC_WILL_EPS_LASK = 3;
318
- exports.SEMOD_PREC_WILLIAMS_1994 = 4;
319
- exports.SEMOD_PREC_SIMON_1994 = 5;
320
- exports.SEMOD_PREC_IAU_2000 = 6;
321
- exports.SEMOD_PREC_BRETAGNON_2003 = 7;
322
- exports.SEMOD_PREC_IAU_2006 = 8;
323
- exports.SEMOD_PREC_VONDRAK_2011 = 9;
324
- exports.SEMOD_PREC_OWEN_1990 = 10;
325
- exports.SEMOD_PREC_NEWCOMB = 11;
326
- exports.SEMOD_PREC_DEFAULT = exports.SEMOD_PREC_VONDRAK_2011;
327
- exports.SEMOD_PREC_DEFAULT_SHORT = exports.SEMOD_PREC_VONDRAK_2011;
328
-
329
- exports.SEMOD_NNUT = 5;
330
- exports.SEMOD_NUT_IAU_1980 = 1;
331
- exports.SEMOD_NUT_IAU_CORR_1987 = 2;
332
- exports.SEMOD_NUT_IAU_2000A = 3;
333
- exports.SEMOD_NUT_IAU_2000B = 4;
334
- exports.SEMOD_NUT_WOOLARD = 5;
335
- exports.SEMOD_NUT_DEFAULT = exports.SEMOD_NUT_IAU_2000B;
336
-
337
- exports.SEMOD_NSIDT = 4;
338
- exports.SEMOD_SIDT_IAU_1976 = 1;
339
- exports.SEMOD_SIDT_IAU_2006 = 2;
340
- exports.SEMOD_SIDT_IERS_CONV_2010 = 3;
341
- exports.SEMOD_SIDT_LONGTERM = 4;
342
- exports.SEMOD_SIDT_DEFAULT = exports.SEMOD_SIDT_LONGTERM;
343
-
344
- exports.SEMOD_NBIAS = 3;
345
- exports.SEMOD_BIAS_NONE = 1;
346
- exports.SEMOD_BIAS_IAU2000 = 2;
347
- exports.SEMOD_BIAS_IAU2006 = 3;
348
- exports.SEMOD_BIAS_DEFAULT = exports.SEMOD_BIAS_IAU2006;
349
-
350
- exports.SEMOD_NJPLHOR = 2;
351
- exports.SEMOD_JPLHOR_LONG_AGREEMENT = 1;
352
- exports.SEMOD_JPLHOR_DEFAULT = exports.SEMOD_JPLHOR_LONG_AGREEMENT;
353
-
354
- exports.SEMOD_NJPLHORA = 3;
355
- exports.SEMOD_JPLHORA_1 = 1;
356
- exports.SEMOD_JPLHORA_2 = 2;
357
- exports.SEMOD_JPLHORA_3 = 3;
358
- exports.SEMOD_JPLHORA_DEFAULT = exports.SEMOD_JPLHORA_3;
359
-
360
- exports.SEMOD_NDELTAT = 5;
361
- exports.SEMOD_DELTAT_STEPHENSON_MORRISON_1984 = 1;
362
- exports.SEMOD_DELTAT_STEPHENSON_1997 = 2;
363
- exports.SEMOD_DELTAT_STEPHENSON_MORRISON_2004 = 3;
364
- exports.SEMOD_DELTAT_ESPENAK_MEEUS_2006 = 4;
365
- exports.SEMOD_DELTAT_STEPHENSON_ETC_2016 = 5;
366
- exports.SEMOD_DELTAT_DEFAULT = exports.SEMOD_DELTAT_STEPHENSON_ETC_2016;
Binary file