sweph 2.10.2-2 → 2.10.3-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.
@@ -1,191 +1,189 @@
1
-
2
- /************************************************************
3
-
4
- Authors: Dieter Koch and Alois Treindl, Astrodienst Zurich
5
-
6
- ************************************************************/
7
- /* Copyright (C) 1997 - 2021 Astrodienst AG, Switzerland. All rights reserved.
8
-
9
- License conditions
10
- ------------------
11
-
12
- This file is part of Swiss Ephemeris.
13
-
14
- Swiss Ephemeris is distributed with NO WARRANTY OF ANY KIND. No author
15
- or distributor accepts any responsibility for the consequences of using it,
16
- or for whether it serves any particular purpose or works at all, unless he
17
- or she says so in writing.
18
-
19
- Swiss Ephemeris is made available by its authors under a dual licensing
20
- system. The software developer, who uses any part of Swiss Ephemeris
21
- in his or her software, must choose between one of the two license models,
22
- which are
23
- a) GNU Affero General Public License (AGPL)
24
- b) Swiss Ephemeris Professional License
25
-
26
- The choice must be made before the software developer distributes software
27
- containing parts of Swiss Ephemeris to others, and before any public
28
- service using the developed software is activated.
29
-
30
- If the developer choses the AGPL software license, he or she must fulfill
31
- the conditions of that license, which includes the obligation to place his
32
- or her whole software project under the AGPL or a compatible license.
33
- See https://www.gnu.org/licenses/agpl-3.0.html
34
-
35
- If the developer choses the Swiss Ephemeris Professional license,
36
- he must follow the instructions as found in http://www.astro.com/swisseph/
37
- and purchase the Swiss Ephemeris Professional Edition from Astrodienst
38
- and sign the corresponding license contract.
39
-
40
- The License grants you the right to use, copy, modify and redistribute
41
- Swiss Ephemeris, but only under certain conditions described in the License.
42
- Among other things, the License requires that the copyright notices and
43
- this notice be preserved on all copies.
44
-
45
- Authors of the Swiss Ephemeris: Dieter Koch and Alois Treindl
46
-
47
- The authors of Swiss Ephemeris have no control or influence over any of
48
- the derived works, i.e. over software or services created by other
49
- programmers which use Swiss Ephemeris functions.
50
-
51
- The names of the authors or of the copyright holder (Astrodienst) must not
52
- be used for promoting any software, product or service which uses or contains
53
- the Swiss Ephemeris. This copyright notice is the ONLY place where the
54
- names of the authors can legally appear, except in cases where they have
55
- given special permission in writing.
56
-
57
- The trademarks 'Swiss Ephemeris' and 'Swiss Ephemeris inside' may be used
58
- for promoting such software, products or services.
59
- */
60
-
61
- #define PREC_IAU_1976_CTIES 2.0 /* J2000 +/- two centuries */
62
- #define PREC_IAU_2000_CTIES 2.0 /* J2000 +/- two centuries */
63
- /* we use P03 for whole ephemeris */
64
- #define PREC_IAU_2006_CTIES 75.0 /* J2000 +/- 75 centuries */
65
-
66
- /* For reproducing JPL Horizons to 2 mas (SEFLG_JPLHOR):
67
- * The user has to keep the following files up to date which contain
68
- * the earth orientation parameters related to the IAU 1980 nutation
69
- * theory.
70
- * Download the file
71
- * datacenter.iers.org/eop/-/somos/5Rgv/document/tx13iers.u24/eopc04_08.62-now
72
- * and rename it as eop_1962_today.txt. For current data and estimations for
73
- * the near future, also download maia.usno.navy.mil/ser7/finals.all and
74
- * rename it as eop_finals.txt */
75
- #define DPSI_DEPS_IAU1980_FILE_EOPC04 "eop_1962_today.txt"
76
- #define DPSI_DEPS_IAU1980_FILE_FINALS "eop_finals.txt"
77
- #define DPSI_DEPS_IAU1980_TJD0_HORIZONS 2437684.5
78
- #define HORIZONS_TJD0_DPSI_DEPS_IAU1980 2437684.5
79
- #define DPSI_IAU1980_TJD0 (64.284 / 1000.0) // arcsec
80
- #define DEPS_IAU1980_TJD0 (6.151 / 1000.0) // arcsec
81
-
82
- /* The above files must be available in order to reproduce JPL Horizons
83
- * in agreement with IERS Conventions 1996 (1992), p. 22.
84
- * Call swe_calc_ut() with iflag|SEFLG_JPLHOR.
85
- * This options works only, if the files DPSI_DEPS_IAU1980_FILE_EOPC04
86
- * and DPSI_DEPS_IAU1980_FILE_FINALS are in the ephemeris path.
87
- *
88
- * If the software does not find the earth orientation files
89
- * in the ephemeris path, then SEFLG_JPLHOR will run as
90
- * SEFLG_JPLHOR_APPROX.
91
- */
92
-
93
- /* coordinate transformation */
94
- extern void swi_coortrf(double *xpo, double *xpn, double eps);
95
-
96
- /* coordinate transformation */
97
- extern void swi_coortrf2(double *xpo, double *xpn, double sineps, double coseps);
98
-
99
- /* cartesian to polar coordinates */
100
- extern void swi_cartpol(double *x, double *l);
101
-
102
- /* cartesian to polar coordinates with velocity */
103
- extern void swi_cartpol_sp(double *x, double *l);
104
- extern void swi_polcart_sp(double *l, double *x);
105
-
106
- /* polar to cartesian coordinates */
107
- extern void swi_polcart(double *l, double *x);
108
-
109
- /* GCRS to J2000 */
110
- extern void swi_bias(double *x, double tjd, int32 iflag, AS_BOOL backward);
111
- extern void swi_get_eop_time_range(void);
112
- /* GCRS to FK5 */
113
- extern void swi_icrs2fk5(double *x, int32 iflag, AS_BOOL backward);
114
-
115
- /* precession */
116
- extern int swi_precess(double *R, double J, int32 iflag, int direction );
117
- extern void swi_precess_speed(double *xx, double t, int32 iflag, int direction);
118
-
119
- extern int32 swi_guess_ephe_flag(void);
120
-
121
- /* from sweph.c, light deflection, aberration, etc. */
122
- extern void swi_deflect_light(double *xx, double dt, int32 iflag);
123
- extern void swi_aberr_light(double *xx, double *xe, int32 iflag);
124
- extern int swi_plan_for_osc_elem(int32 iflag, double tjd, double *xx);
125
- extern int swi_trop_ra2sid_lon(double *xin, double *xout, double *xoutr, int32 iflag);
126
- extern int swi_trop_ra2sid_lon_sosy(double *xin, double *xout, int32 iflag);
127
- extern int swi_get_observer(double tjd, int32 iflag,
128
- AS_BOOL do_save, double *xobs, char *serr);
129
- extern void swi_force_app_pos_etc(void);
130
-
131
- /* obliquity of ecliptic */
132
- extern void swi_check_ecliptic(double tjd, int32 iflag);
133
- extern double swi_epsiln(double J, int32 iflag);
134
- extern void swi_ldp_peps(double J, double *dpre, double *deps);
135
-
136
- /* nutation */
137
- extern void swi_check_nutation(double tjd, int32 iflag);
138
- extern int swi_nutation(double J, int32 iflag, double *nutlo);
139
- extern void swi_nutate(double *xx, int32 iflag, AS_BOOL backward);
140
-
141
- extern void swi_mean_lunar_elements(double tjd,
142
- double *node, double *dnode,
143
- double *peri, double *dperi);
144
- /* */
145
- extern double swi_mod2PI(double x);
146
-
147
- /* evaluation of chebyshew series and derivative */
148
- extern double swi_echeb(double x, double *coef, int ncf);
149
- extern double swi_edcheb(double x, double *coef, int ncf);
150
-
151
- /* cross product of vectors */
152
- extern void swi_cross_prod(double *a, double *b, double *x);
153
- /* dot product of vecotrs */
154
- extern double swi_dot_prod_unit(double *x, double *y);
155
-
156
- extern double swi_angnorm(double x);
157
-
158
- /* generation of SWISSEPH file names */
159
- extern void swi_gen_filename(double tjd, int ipli, char *fname);
160
-
161
- /* cyclic redundancy checksum (CRC), 32 bit */
162
- extern uint32 swi_crc32(unsigned char *buf, int len);
163
-
164
- extern size_t swi_strnlen(const char *str, size_t n);
165
-
166
- extern int swi_cutstr(char *s, char *cutlist, char *cpos[], int nmax);
167
- extern char *swi_right_trim(char *s);
168
-
169
- extern double swi_kepler(double E, double M, double ecce);
170
-
171
- extern char *swi_get_fict_name(int32 ipl, char *s);
172
-
173
- extern void swi_FK4_FK5(double *xp, double tjd);
174
-
175
- extern char *swi_strcpy(char *to, char *from);
176
- extern char *swi_strncpy(char *to, char *from, size_t n);
177
-
178
- extern double swi_deltat_ephe(double tjd_ut, int32 epheflag);
179
-
180
- #ifdef TRACE
181
- # define TRACE_COUNT_MAX 10000
182
- extern TLS FILE *swi_fp_trace_c;
183
- extern TLS FILE *swi_fp_trace_out;
184
- extern TLS int32 swi_trace_count;
185
- extern void swi_open_trace(char *serr);
186
- static const char *fname_trace_c = "swetrace.c";
187
- static const char *fname_trace_out = "swetrace.txt";
188
- #ifdef FORCE_IFLAG
189
- static const char *fname_force_flg = "force.flg";
190
- #endif
191
- #endif /* TRACE */
1
+
2
+ /************************************************************
3
+
4
+ Authors: Dieter Koch and Alois Treindl, Astrodienst Zurich
5
+
6
+ ************************************************************/
7
+ /* Copyright (C) 1997 - 2021 Astrodienst AG, Switzerland. All rights reserved.
8
+
9
+ License conditions
10
+ ------------------
11
+
12
+ This file is part of Swiss Ephemeris.
13
+
14
+ Swiss Ephemeris is distributed with NO WARRANTY OF ANY KIND. No author
15
+ or distributor accepts any responsibility for the consequences of using it,
16
+ or for whether it serves any particular purpose or works at all, unless he
17
+ or she says so in writing.
18
+
19
+ Swiss Ephemeris is made available by its authors under a dual licensing
20
+ system. The software developer, who uses any part of Swiss Ephemeris
21
+ in his or her software, must choose between one of the two license models,
22
+ which are
23
+ a) GNU Affero General Public License (AGPL)
24
+ b) Swiss Ephemeris Professional License
25
+
26
+ The choice must be made before the software developer distributes software
27
+ containing parts of Swiss Ephemeris to others, and before any public
28
+ service using the developed software is activated.
29
+
30
+ If the developer choses the AGPL software license, he or she must fulfill
31
+ the conditions of that license, which includes the obligation to place his
32
+ or her whole software project under the AGPL or a compatible license.
33
+ See https://www.gnu.org/licenses/agpl-3.0.html
34
+
35
+ If the developer choses the Swiss Ephemeris Professional license,
36
+ he must follow the instructions as found in http://www.astro.com/swisseph/
37
+ and purchase the Swiss Ephemeris Professional Edition from Astrodienst
38
+ and sign the corresponding license contract.
39
+
40
+ The License grants you the right to use, copy, modify and redistribute
41
+ Swiss Ephemeris, but only under certain conditions described in the License.
42
+ Among other things, the License requires that the copyright notices and
43
+ this notice be preserved on all copies.
44
+
45
+ Authors of the Swiss Ephemeris: Dieter Koch and Alois Treindl
46
+
47
+ The authors of Swiss Ephemeris have no control or influence over any of
48
+ the derived works, i.e. over software or services created by other
49
+ programmers which use Swiss Ephemeris functions.
50
+
51
+ The names of the authors or of the copyright holder (Astrodienst) must not
52
+ be used for promoting any software, product or service which uses or contains
53
+ the Swiss Ephemeris. This copyright notice is the ONLY place where the
54
+ names of the authors can legally appear, except in cases where they have
55
+ given special permission in writing.
56
+
57
+ The trademarks 'Swiss Ephemeris' and 'Swiss Ephemeris inside' may be used
58
+ for promoting such software, products or services.
59
+ */
60
+
61
+ #define PREC_IAU_1976_CTIES 2.0 /* J2000 +/- two centuries */
62
+ #define PREC_IAU_2000_CTIES 2.0 /* J2000 +/- two centuries */
63
+ /* we use P03 for whole ephemeris */
64
+ #define PREC_IAU_2006_CTIES 75.0 /* J2000 +/- 75 centuries */
65
+
66
+ /* For reproducing JPL Horizons to 2 mas (SEFLG_JPLHOR):
67
+ * The user has to keep the following files up to date which contain
68
+ * the earth orientation parameters related to the IAU 1980 nutation
69
+ * theory.
70
+ * Download the file
71
+ * datacenter.iers.org/eop/-/somos/5Rgv/document/tx13iers.u24/eopc04_08.62-now
72
+ * and rename it as eop_1962_today.txt. For current data and estimations for
73
+ * the near future, also download maia.usno.navy.mil/ser7/finals.all and
74
+ * rename it as eop_finals.txt */
75
+ #define DPSI_DEPS_IAU1980_FILE_EOPC04 "eop_1962_today.txt"
76
+ #define DPSI_DEPS_IAU1980_FILE_FINALS "eop_finals.txt"
77
+ #define DPSI_DEPS_IAU1980_TJD0_HORIZONS 2437684.5
78
+ #define HORIZONS_TJD0_DPSI_DEPS_IAU1980 2437684.5
79
+ #define DPSI_IAU1980_TJD0 (64.284 / 1000.0) // arcsec
80
+ #define DEPS_IAU1980_TJD0 (6.151 / 1000.0) // arcsec
81
+
82
+ /* The above files must be available in order to reproduce JPL Horizons
83
+ * in agreement with IERS Conventions 1996 (1992), p. 22.
84
+ * Call swe_calc_ut() with iflag|SEFLG_JPLHOR.
85
+ * This options works only, if the files DPSI_DEPS_IAU1980_FILE_EOPC04
86
+ * and DPSI_DEPS_IAU1980_FILE_FINALS are in the ephemeris path.
87
+ *
88
+ * If the software does not find the earth orientation files
89
+ * in the ephemeris path, then SEFLG_JPLHOR will run as
90
+ * SEFLG_JPLHOR_APPROX.
91
+ */
92
+
93
+ /* coordinate transformation */
94
+ extern void swi_coortrf(double *xpo, double *xpn, double eps);
95
+
96
+ /* coordinate transformation */
97
+ extern void swi_coortrf2(double *xpo, double *xpn, double sineps, double coseps);
98
+
99
+ /* cartesian to polar coordinates */
100
+ extern void swi_cartpol(double *x, double *l);
101
+
102
+ /* cartesian to polar coordinates with velocity */
103
+ extern void swi_cartpol_sp(double *x, double *l);
104
+ extern void swi_polcart_sp(double *l, double *x);
105
+
106
+ /* polar to cartesian coordinates */
107
+ extern void swi_polcart(double *l, double *x);
108
+
109
+ /* GCRS to J2000 */
110
+ extern void swi_bias(double *x, double tjd, int32 iflag, AS_BOOL backward);
111
+ extern void swi_get_eop_time_range(void);
112
+ /* GCRS to FK5 */
113
+ extern void swi_icrs2fk5(double *x, int32 iflag, AS_BOOL backward);
114
+
115
+ /* precession */
116
+ extern int swi_precess(double *R, double J, int32 iflag, int direction );
117
+ extern void swi_precess_speed(double *xx, double t, int32 iflag, int direction);
118
+
119
+ extern int32 swi_guess_ephe_flag(void);
120
+
121
+ /* from sweph.c, light deflection, aberration, etc. */
122
+ extern void swi_deflect_light(double *xx, double dt, int32 iflag);
123
+ extern void swi_aberr_light(double *xx, double *xe, int32 iflag);
124
+ extern int swi_plan_for_osc_elem(int32 iflag, double tjd, double *xx);
125
+ extern int swi_trop_ra2sid_lon(double *xin, double *xout, double *xoutr, int32 iflag);
126
+ extern int swi_trop_ra2sid_lon_sosy(double *xin, double *xout, int32 iflag);
127
+ extern int swi_get_observer(double tjd, int32 iflag,
128
+ AS_BOOL do_save, double *xobs, char *serr);
129
+ extern void swi_force_app_pos_etc(void);
130
+
131
+ /* obliquity of ecliptic */
132
+ extern void swi_check_ecliptic(double tjd, int32 iflag);
133
+ extern double swi_epsiln(double J, int32 iflag);
134
+ extern void swi_ldp_peps(double J, double *dpre, double *deps);
135
+
136
+ /* nutation */
137
+ extern void swi_check_nutation(double tjd, int32 iflag);
138
+ extern int swi_nutation(double J, int32 iflag, double *nutlo);
139
+ extern void swi_nutate(double *xx, int32 iflag, AS_BOOL backward);
140
+
141
+ extern void swi_mean_lunar_elements(double tjd,
142
+ double *node, double *dnode,
143
+ double *peri, double *dperi);
144
+ /* */
145
+ extern double swi_mod2PI(double x);
146
+
147
+ /* evaluation of chebyshew series and derivative */
148
+ extern double swi_echeb(double x, double *coef, int ncf);
149
+ extern double swi_edcheb(double x, double *coef, int ncf);
150
+
151
+ /* cross product of vectors */
152
+ extern void swi_cross_prod(double *a, double *b, double *x);
153
+ /* dot product of vecotrs */
154
+ extern double swi_dot_prod_unit(double *x, double *y);
155
+
156
+ extern double swi_angnorm(double x);
157
+
158
+ /* generation of SWISSEPH file names */
159
+ extern void swi_gen_filename(double tjd, int ipli, char *fname);
160
+
161
+ /* cyclic redundancy checksum (CRC), 32 bit */
162
+ extern uint32 swi_crc32(unsigned char *buf, int len);
163
+
164
+ extern int swi_cutstr(char *s, char *cutlist, char *cpos[], int nmax);
165
+ extern char *swi_right_trim(char *s);
166
+
167
+ extern double swi_kepler(double E, double M, double ecce);
168
+
169
+ extern char *swi_get_fict_name(int32 ipl, char *s);
170
+
171
+ extern void swi_FK4_FK5(double *xp, double tjd);
172
+
173
+ extern char *swi_strcpy(char *to, char *from);
174
+ extern char *swi_strncpy(char *to, char *from, size_t n);
175
+
176
+ extern double swi_deltat_ephe(double tjd_ut, int32 epheflag);
177
+
178
+ #ifdef TRACE
179
+ # define TRACE_COUNT_MAX 10000
180
+ extern TLS FILE *swi_fp_trace_c;
181
+ extern TLS FILE *swi_fp_trace_out;
182
+ extern TLS int32 swi_trace_count;
183
+ extern void swi_open_trace(char *serr);
184
+ static const char *fname_trace_c = "swetrace.c";
185
+ static const char *fname_trace_out = "swetrace.txt";
186
+ #ifdef FORCE_IFLAG
187
+ static const char *fname_force_flg = "force.flg";
188
+ #endif
189
+ #endif /* TRACE */
package/index.d.ts CHANGED
@@ -157,7 +157,7 @@ declare module "sweph" {
157
157
  * ```
158
158
  * ```
159
159
  */
160
- data: CalcData2;
160
+ data: CalcData2;
161
161
  }
162
162
 
163
163
  interface FixStarMag extends Flag, Name, Error {
@@ -419,7 +419,7 @@ declare module "sweph" {
419
419
  * ```
420
420
  * ```
421
421
  */
422
- data: EclipseTimes3
422
+ data: EclipseTimes3
423
423
  }
424
424
 
425
425
  interface LunOccultWhenLoc extends Flag, Error {
@@ -464,7 +464,7 @@ declare module "sweph" {
464
464
  * ```
465
465
  * ```
466
466
  */
467
- data: {
467
+ data: {
468
468
  /**
469
469
  * ### Description
470
470
  * Array of ascending node values returned by the calculation
@@ -510,7 +510,7 @@ declare module "sweph" {
510
510
  * ```
511
511
  */
512
512
  aphelion: CalcData2;
513
- };
513
+ };
514
514
  }
515
515
 
516
516
  interface Pheno extends Flag, Error {
@@ -1524,7 +1524,7 @@ declare module "sweph" {
1524
1524
  * Time of third contact
1525
1525
  */
1526
1526
  third_contact: number,
1527
- /**
1527
+ /**
1528
1528
  * Time of fourth contact
1529
1529
  */
1530
1530
  fourth_contact: number,
@@ -1840,7 +1840,7 @@ declare module "sweph" {
1840
1840
  * ### Params
1841
1841
  * ```
1842
1842
  * • tjd_ut: number // Julian day in universal time
1843
- * • calc_flag: number // Calculation flag, SE_HOR2ECL or SE_HOR2EQU
1843
+ * • calc_flag: number // Calculation flag, SE_ECL2HOR or SE_EQU2HOR
1844
1844
  * • geopos: Array<number> // Geographic coordinates [longitude, latitude, elevation]
1845
1845
  * • atpress: number // Atmospheric pressure in mbar/hpa
1846
1846
  * • attemp: number // Atmospheric temperature in celcius
@@ -2998,11 +2998,11 @@ declare module "sweph" {
2998
2998
  * ```
2999
2999
  * ### Example
3000
3000
  * ```
3001
- * const name = house_name("p"); // "Placidus"
3001
+ * const name = house_name("P"); // "Placidus"
3002
3002
  * ```
3003
3003
  * &nbsp;
3004
3004
  */
3005
- export function house_name(hsys: number): string;
3005
+ export function house_name(hsys: HouseSystems | string & {}): string;
3006
3006
 
3007
3007
  /**
3008
3008
  * ### Description
@@ -3031,7 +3031,7 @@ declare module "sweph" {
3031
3031
  * ```
3032
3032
  * &nbsp;
3033
3033
  */
3034
- export function house_pos(armc: number, geolat: number, eps: number, hsys: string, xpin: [longitude: number, latitude: number]): HousePosition;
3034
+ export function house_pos(armc: number, geolat: number, eps: number, hsys: HouseSystems | string & {}, xpin: [longitude: number, latitude: number]): HousePosition;
3035
3035
 
3036
3036
  /**
3037
3037
  * ### Description
@@ -3085,8 +3085,9 @@ declare module "sweph" {
3085
3085
  * ```
3086
3086
  * &nbsp;
3087
3087
  */
3088
- export function houses_armc_ex2(armc: number, geolat: number, eps: number, hsys: HouseSystems, decl?: number): HousesEx<12>;
3089
3088
  export function houses_armc_ex2(armc: number, geolat: number, eps: number, hsys: "G", decl?: number): HousesEx<36>;
3089
+ export function houses_armc_ex2(armc: number, geolat: number, eps: number, hsys: HouseSystems, decl?: number): HousesEx<12>;
3090
+ export function houses_armc_ex2(armc: number, geolat: number, eps: number, hsys: string, decl?: number): HousesEx<12> | HousesEx<36>;
3090
3091
 
3091
3092
  /**
3092
3093
  * ### Description
@@ -3132,8 +3133,9 @@ declare module "sweph" {
3132
3133
  * ```
3133
3134
  * &nbsp;
3134
3135
  */
3135
- export function houses_armc(armc: number, geolat: number, eps: number, hsys: HouseSystems, decl?: number): Houses<12>;
3136
3136
  export function houses_armc(armc: number, geolat: number, eps: number, hsys: "G", decl?: number): Houses<36>;
3137
+ export function houses_armc(armc: number, geolat: number, eps: number, hsys: HouseSystems, decl?: number): Houses<12>;
3138
+ export function houses_armc(armc: number, geolat: number, eps: number, hsys: string, decl?: number): Houses<12> | Houses<36>;
3137
3139
 
3138
3140
  /**
3139
3141
  * ### Description
@@ -3178,8 +3180,9 @@ declare module "sweph" {
3178
3180
  * ```
3179
3181
  * &nbsp;
3180
3182
  */
3181
- export function houses_ex(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: HouseSystems): Houses<12>;
3182
3183
  export function houses_ex(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: "G"): Houses<36>;
3184
+ export function houses_ex(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: HouseSystems): Houses<12>;
3185
+ export function houses_ex(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: string): Houses<12> | Houses<36>;
3183
3186
 
3184
3187
  /**
3185
3188
  * ### Description
@@ -3232,8 +3235,9 @@ declare module "sweph" {
3232
3235
  * ```
3233
3236
  * &nbsp;
3234
3237
  */
3235
- export function houses_ex2(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: HouseSystems): HousesEx<12>;
3236
3238
  export function houses_ex2(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: "G"): HousesEx<36>;
3239
+ export function houses_ex2(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: HouseSystems): HousesEx<12>;
3240
+ export function houses_ex2(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: string): HousesEx<12> | HousesEx<36>;
3237
3241
 
3238
3242
  /**
3239
3243
  * ### Description
@@ -3277,8 +3281,9 @@ declare module "sweph" {
3277
3281
  * ```
3278
3282
  * &nbsp;
3279
3283
  */
3280
- export function houses(tjd_ut: number, geolat: number, geolon: number, hsys: HouseSystems): Houses<12>;
3281
3284
  export function houses(tjd_ut: number, geolat: number, geolon: number, hsys: "G"): Houses<36>;
3285
+ export function houses(tjd_ut: number, geolat: number, geolon: number, hsys: HouseSystems): Houses<12>;
3286
+ export function houses(tjd_ut: number, geolat: number, geolon: number, hsys: string): Houses<12> | Houses<36>;
3282
3287
 
3283
3288
  /**
3284
3289
  * ### Description
@@ -3721,7 +3726,7 @@ declare module "sweph" {
3721
3726
  * ```
3722
3727
  * &nbsp;
3723
3728
  */
3724
- export function mooncross_node_ut(jd_ut: number, flag: number): NodeCross;
3729
+ export function mooncross_node_ut(jd_ut: number, flag: number): NodeCross;
3725
3730
 
3726
3731
  /**
3727
3732
  * ### Description
@@ -3776,9 +3781,9 @@ declare module "sweph" {
3776
3781
  * ```
3777
3782
  * &nbsp;
3778
3783
  */
3779
- export function mooncross_ut(x2cross: number, jd_ut: number, flag: number): Cross;
3784
+ export function mooncross_ut(x2cross: number, jd_ut: number, flag: number): Cross;
3780
3785
 
3781
- /**
3786
+ /**
3782
3787
  * ### Description
3783
3788
  * Compute Moon's crossing over some longitude
3784
3789
  * ### Params
@@ -3803,7 +3808,7 @@ declare module "sweph" {
3803
3808
  * ```
3804
3809
  * &nbsp;
3805
3810
  */
3806
- export function mooncross(x2cross: number, jd_et: number, flag: number): Cross;
3811
+ export function mooncross(x2cross: number, jd_et: number, flag: number): Cross;
3807
3812
 
3808
3813
  /**
3809
3814
  * ### Description
@@ -3868,7 +3873,7 @@ declare module "sweph" {
3868
3873
  */
3869
3874
  export function nod_aps_ut(tjd_ut: number, ipl: number, iflag: number, method: number): NodAps;
3870
3875
 
3871
- /**
3876
+ /**
3872
3877
  * ### Description
3873
3878
  * Calculate an object's nodes and apsides from ephemeris/terrestrial time
3874
3879
  * If the calculation method includes `SE_NODBIT_FOPOINT`, the `aphelion` field contains the values for the object's "second focus" instead