-
Notifications
You must be signed in to change notification settings - Fork 65
/
data.cpp
1154 lines (1065 loc) · 48.6 KB
/
data.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
** Astrolog (Version 7.70) File: data.cpp
**
** IMPORTANT NOTICE: Astrolog and all chart display routines and anything
** not enumerated below used in this program are Copyright (C) 1991-2024 by
** Walter D. Pullen (Astara@msn.com, http://www.astrolog.org/astrolog.htm).
** Permission is granted to freely use, modify, and distribute these
** routines provided these credits and notices remain unmodified with any
** altered or distributed versions of the program.
**
** The main ephemeris databases and calculation routines are from the
** library SWISS EPHEMERIS and are programmed and copyright 1997-2008 by
** Astrodienst AG. Use of that source code is subject to license for Swiss
** Ephemeris Free Edition at https://www.astro.com/swisseph/swephinfo_e.htm.
** This copyright notice must not be changed or removed by any user of this
** program.
**
** Additional ephemeris databases and formulas are from the calculation
** routines in the program PLACALC and are programmed and Copyright (C)
** 1989,1991,1993 by Astrodienst AG and Alois Treindl (alois@astro.ch). The
** use of that source code is subject to regulations made by Astrodienst
** Zurich, and the code is not in the public domain. This copyright notice
** must not be changed or removed by any user of this program.
**
** The original planetary calculation routines used in this program have
** been copyrighted and the initial core of this program was mostly a
** conversion to C of the routines created by James Neely as listed in
** 'Manual of Computer Programming for Astrologers', by Michael Erlewine,
** available from Matrix Software.
**
** Atlas composed using data from https://www.geonames.org/ licensed under a
** Creative Commons Attribution 4.0 License. Time zone changes composed using
** public domain TZ database: https://data.iana.org/time-zones/tz-link.html
**
** The PostScript code within the core graphics routines are programmed
** and Copyright (C) 1992-1993 by Brian D. Willoughby (brianw@sounds.wa.com).
**
** More formally: This program is free software; you can redistribute it
** and/or modify it under the terms of the GNU General Public License as
** published by the Free Software Foundation; either version 2 of the
** License, or (at your option) any later version. This program is
** distributed in the hope that it will be useful and inspiring, but
** WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
** General Public License for more details, a copy of which is in the
** LICENSE.HTM file included with Astrolog, and at http://www.gnu.org
**
** Initial programming 8/28-30/1991.
** X Window graphics initially programmed 10/23-29/1991.
** PostScript graphics initially programmed 11/29-30/1992.
** Last code change made 4/22/2024.
*/
#include "astrolog.h"
/*
******************************************************************************
** Global Variables.
******************************************************************************
*/
US us = {
// Chart types
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// Chart suboptions
0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0,
// Table chart types
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// Main flags
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
#ifdef EPHEM
1,
#else
0,
#endif
0, 0, 0,
// Main subflags
#ifdef SWITCHES
0,
#else
1,
#endif
0, 0, 0,
#ifdef PLACALC
#ifndef SWISS
1,
#else
0,
#endif
#else
0,
#endif
#ifdef EPHEM
0,
#else
1,
#endif
0, 0, 0, 0, 0, 0, 0,
// Obscure flags
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// Value settings
ddDecanR,
0,
0,
0,
1,
0,
rcNone,
0,
DEFAULT_SYSTEM,
hmPrime,
DEFAULT_ASPECTS,
oEar,
0,
0,
1.0,
0,
-1,
0,
ptCast,
DIVISIONS,
SCREENWIDTH,
0,
0,
0.0,
15.0,
{NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL},
NULL,
NULL,
NULL,
NULL,
NULL,
// Value subsettings
0, 5, 200, cPart, 22, 0.0, 0.0, rDayInYear, 1.0, 1, 1, ccNone, ccNone,
24, 0, 0, rInvalid, 0.0, 0.0, oEar, oEar, 0, 0, BIODAYS, 0, 0, 0,
// AstroExpressions
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL};
IS is = {
fFalse, fFalse, fFalse, fFalse, fFalse, fFalse, fFalse, fFalse, fFalse,
NULL, {0,0,0,0,0,0,0,0,0}, NULL, NULL, NULL,
0, cObj, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, -1, -1, 0, 0, 0, 0, 0,
0.0, 0.0, 0.0, 0.0, 0.0,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, rAxis, 0.0, rInvalid, 0.0};
CI ciCore = {11, 19, 1971, HM(11, 1), 0.0, 8.0, DEFAULT_LOC, NULL, NULL};
CI ciMain = {-1, 0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, NULL, NULL};
CI ciTwin = {9, 11, 1991, HMS(0, 0, 38), 0.0, 0.0, DEFAULT_LOC, NULL, NULL};
CI ciThre = {-1, 0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, NULL, NULL};
CI ciFour = {-1, 0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, NULL, NULL};
CI ciFive = {-1, 0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, NULL, NULL};
CI ciHexa = {-1, 0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, NULL, NULL};
CI ciDefa = {-1, 0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, NULL, NULL};
CI ciTran = {1, 1, 2024, 0.0, 0.0, 0.0, 0.0, 0.0, NULL, NULL};
CI ciSave = {4, 23, 2024, HMS(16,48,58), 1.0, 8.0, DEFAULT_LOC, NULL, NULL};
CI ciGreg = {10, 15, 1582, 0.0, 0.0, 0.0, 0.0, 0.0, NULL, NULL};
CP cp0, cp1, cp2, cp3, cp4, cp5, cp6;
CI * CONST rgpci[cRing+1] = {&ciCore,
&ciMain, &ciTwin, &ciThre, &ciFour, &ciFive, &ciHexa};
CP * CONST rgpcp[cRing+1] = {&cp0, &cp1, &cp2, &cp3, &cp4, &cp5, &cp6};
flag rgfProg[cRing+1] = {0, fFalse, fFalse, fFalse, fFalse, fFalse, fFalse};
/*
******************************************************************************
** Global Arrays.
******************************************************************************
*/
real force[objMax];
GridInfo *grid = NULL;
int rgobjList[objMax], rgobjList2[objMax], starname[cStar+1], kObjA[objMax];
char *szWheel[cRing+1] = {NULL, NULL, NULL, NULL, NULL, NULL, NULL};
real rStarBrightDef[cStar+1] = {-1.0}, rStarBright[cStar+1],
rStarBrightDistDef[cStar+1];
char *szStarCustom[cStar+1];
// Restriction status of each object, as specified with -R switch.
byte ignore[objMax] = {1,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Planets
0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, // Minors
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, // Cusps
1, 1, 1, 1, 1, 1, 1, 1, 1, // Uranians
1, 1, 1, 1, 1, 1, 1, 1, 1, // Dwarfs
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, // Moons
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, // Stars
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};
// Restriction of objects when transiting, as specified with -RT switch.
byte ignore2[objMax] = {1,
0, 1, 0, 0, 0, 0, 0, 0, 0, 0, // Planets
0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, // Minors
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, // Cusps
1, 1, 1, 1, 1, 1, 1, 1, 1, // Uranians
1, 1, 1, 1, 1, 1, 1, 1, 1, // Dwarfs
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, // Moons
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, // Stars
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};
// Restriction status of each aspect, as specified with -RA switch.
byte ignorea[cAspect+1] = {0,
0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
byte ignorez[arMax] = {0, 0, 0, 0}; // Restrictions for -Zd chart events.
byte ignore7[rrMax] = {0, 1, 1, 0, 1}; // Restrictions for rulership types.
byte ignoreMem[objMax], ignore2Mem[objMax], ignoreaMem[cAspect+1],
ignorezMem[arMax], ignore7Mem[rrMax], ignorefMem[6];
// Gauquelin sector plus zones, as specified with -Yl switch.
byte pluszone[cSector+1] = {0,
1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1,
1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1};
/*
******************************************************************************
** Global Tables.
******************************************************************************
*/
CONST char *szAppName = szAppNameCore;
CONST char *szSignName[cSign+1] = {"",
"Aries", "Taurus", "Gemini", "Cancer", "Leo", "Virgo",
"Libra", "Scorpio", "Sagittarius", "Capricorn", "Aquarius", "Pisces"};
CONST char *szSignAbbrev[cSign+1] = {"",
"Ar", "Ta", "Ge", "Cn", "Le", "Vi", "Li", "Sc", "Sg", "Cp", "Aq", "Pi"};
CONST char *szSignEnglish[cSign+1] = {"",
"Ram", "Bull", "Twins", "Crab", "Lion", "Virgin",
"Scales", "Scorpion", "Archer", "Sea Goat", "Water Bearer", "Fishes"};
CONST char *szHouseTradition[cSign+1] = {"",
"Personality", "Money", "Communication", "Home",
"Children", "Servants", "Marriage", "Death",
"Long Journeys Over Water", "Career", "Friends", "Troubles"};
CONST char *szObjName[objMax+4] = {
"Earth", "Sun", "Moon", "Mercury", "Venus", "Mars", // Planets
"Jupiter", "Saturn", "Uranus", "Neptune", "Pluto",
"Chiron", "Ceres", "Pallas", "Juno", "Vesta", // Asteroids
"North Node", "South Node", // Nodes
"Lilith", "Fortune", "Vertex", "East Point", // Others
"Ascendant", "2nd Cusp", "3rd Cusp", "Nadir", // Cusps
"5th Cusp", "6th Cusp", "Descendant", "8th Cusp",
"9th Cusp", "Midheaven", "11th Cusp", "12th Cusp",
"Vulcan", "Cupido", "Hades", "Zeus", "Kronos", // Uranians
"Apollon", "Admetos", "Vulkanus", "Poseidon",
"Hygiea", "Pholus", "Eris", "Haumea", "Makemake", // Dwarfs
"Gonggong", "Quaoar", "Sedna", "Orcus",
"Phobos", "Deimos", // Moons
"Ganymede", "Callisto", "Io", "Europa",
"Titan", "Rhea", "Iapetus", "Dione",
"Tethys", "Enceladus", "Mimas", "Hyperion",
"Titania", "Oberon", "Umbriel", "Ariel", "Miranda",
"Triton", "Proteus", "Nereid",
"Charon", "Hydra", "Nix", "Kerberos", "Styx",
"JupCOB", "SatCOB", "UraCOB", "NepCOB", "PluCOB",
"Sirius", "Canopus", "Rigil Kent.", "Arcturus", "Vega", // Stars
"Capella", "Rigel", "Procyon", "Betelgeuse", "Achernar",
"Agena", "Altair", "Acrux", "Aldebaran", "Antares",
"Spica", "Pollux", "Fomalhaut", "Deneb", "Becrux",
"Regulus", "Adara", "Castor", "Shaula", "Bellatrix",
"Gacrux", "Alnath", "Alnilam", "Miaplacidus", "Alnair",
"Alioth", "Dubhe", "Wezen", "Kaus Austr.", "Alkaid",
"Sargas", "Menkalinan", "Peacock", "Alhena", "Avior",
"Murzim", "Alphard", "Polaris", "Algol", "Suhail",
"Alcyone", "Andromeda", "Zeta Retic.", "Galactic C.", "Great Attr.",
"1st Cusp", "4th Cusp", "7th Cusp", "10th Cusp"}; // Extra
CONST char *szObjDisp[objMax];
CONST StrLook rgObjName[] = {{"Node", oNod}, {"Nod:", oNod},
{"Rahu", oNod}, {"Ketu", oSou},
{"M.C.", oMC}, {"I.C.", oNad},
{"1st", oAsc}, {"4th", oNad}, {"7th", oDes}, {"10th", oMC},
{"Vulcanus", oVlk},
{"Star", starLo}, {"Orion", oOri}, {"Pleiades", oPle}, {"M31", oAnd},
{"Milky Way", oGal}, {"", -1}};
CONST char *szSystem[cSystem] = {
"Placidus", "Koch", "Equal", "Campanus", "Meridian", "Regiomontanus",
"Porphyry", "Morinus", "Topocentric", "Alcabitius", "Krusinski",
"Equal (MC)", "Pullen (S.Ratio)", "Pullen (S.Delta)", "Whole", "Vedic",
"Sripati", "Horizon", "APC", "Carter P.Equat.", "Sunshine", "Savard-A",
"Null",
"Whole (MC)", "Vedic (MC)",
"Equal (Balanced)", "Whole (Balanced)", "Vedic (Balanced)",
"Equal (EP)", "Whole (EP)", "Vedic (EP)",
"Equal (Vertex)", "Whole (Vertex)", "Vedic (Vertex)",
"Porphyry (EP)", "Porphyry (Vertex)", "Pullen (SR, EP)",
"Pullen (SR, Vertex)", "Pullen (SD, EP)", "Pullen (SD, Vertex)"};
CONST StrLook rgSystem[] = {{"E-Asc", hsEqual}, {"E-MC", hsEqualMC},
{"P-SR", hsSineRatio}, {"P-SD", hsSineDelta},
{"Ratio", hsSineRatio}, {"Delta", hsSineDelta},
{"S-Ratio", hsSineRatio}, {"S-Delta", hsSineDelta},
{"Albategnius", hsSavardA}, {"Albategnus", hsSavardA},
{"W-Asc", hsWhole}, {"V-Asc", hsVedic},
{"W-MC", hsWholeMC}, {"V-MC", hsVedicMC}, {"E-Bal", hsEqualBalanced},
{"W-Bal", hsWholeBalanced}, {"V-Bal", hsVedicBalanced},
{"E-EP", hsEqualEP}, {"W-EP", hsWholeEP}, {"V-EP", hsVedicEP},
{"E-Ver", hsEqualVertex}, {"W-Ver", hsWholeVertex}, {"V-Ver", hsVedicVertex},
{"P-EP", hsPorphyryEP}, {"P-Ver", hsPorphyryVtx},
{"SR-EP", hsSineRatioEP}, {"SR-Ver", hsSineRatioVtx},
{"SD-EP", hsSineDeltaEP}, {"SD-Ver", hsSineDeltaVtx}, {"", -1}};
CONST char *szAspectName[cAspect2+1] = {"",
"Conjunct", "Opposite", "Square", "Trine", "Sextile",
"Inconjunct", "SemiSextile", "SemiSquare", "SesquiQuadrate",
"Quintile", "BiQuintile",
"SemiQuintile", "Septile", "Novile",
"BiNovile", "BiSeptile", "TriSeptile", "QuatroNovile",
"TreDecile",
"Undecile", "BiUndecile", "TriUndecile", "QuatroUndecile", "QuintUndecile",
"Parallel", "ContraParallel"};
CONST StrLook rgAspectName[] =
{{"Quincunx", aInc}, {"Octile", aSSq}, {"", -1}};
CONST char *szAspectDisp[cAspect2+1];
CONST char *szAspectAbbrev[cAspect2+1] = {"",
"Con", "Opp", "Squ", "Tri", "Sex",
"Inc", "SSx", "SSq", "Ses", "Qui", "BQn",
"SQn", "Sep", "Nov", "BNv", "BSp", "TSp", "QNv",
"TDc", "Un1", "Un2", "Un3", "Un4", "Un5",
"Par", "CPr"};
CONST char *szAspectAbbrevDisp[cAspect2+1];
CONST char *szAspectGlyph[cAspect2+1] = {"",
"Circle with extending line", "Two circles joined by line",
"Quadrilateral", "Triangle", "Six pointed asterisk",
"'K' rotated right", "'K' rotated left", "Acute angle",
"Square with extending lines", "Letter 'Q'", "'+' over '-'",
"'-' over '+'", "Number '7'", "Number '9'", "'9' under Roman 'II'",
"'7' under Roman 'II'", "'7' under Roman 'III'", "'9' under Roman 'IV'",
"'10' under Roman 'III'", "Number '11'", "'11' under Roman 'II'",
"'11' under Roman 'III'", "'11' under Roman 'IV'", "'11' under Roman 'V'",
"Parallel lines", "Crossed parallel lines"};
CONST char *szAspectGlyphDisp[cAspect2+1];
CONST char *szAspectConfig[cAspConfig] = {
"Stellium-3", "Grand Trine", "T-Square", "Yod", "Grand Cross", "Cradle",
"Rectangle", "Stellium-4"};
CONST int rgAspConfig[cAspConfig] = {
aCon, aTri, aOpp, aInc, aSqu, aSex, aQui, aSSq};
CONST char *szElem[cElem] = {"Fire", "Earth", "Air", "Water"};
CONST char *szMode[3] = {"Cardinal", "Fixed", "Mutable"};
CONST char *szMonth[cSign+1] = {"",
"January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"};
CONST char *szDay[cWeek] = {"Sunday", "Monday", "Tuesday", "Wednesday",
"Thursday", "Friday", "Saturday"};
CONST char *szZon[cZone] = {
"HST", "HT", "H", "CAT", "AHS", "HDT", "AHD", "YST", "YT", "Y", "YDT",
"PST", "PT", "P", "PDT", "PWT", "MST", "MT", "M", "MDT", "MWT",
"CST", "CT", "C", "CDT", "CWT", "EST", "ET", "E", "EDT", "EWT",
"AST", "AT", "A", "ADT", "AWT", "BST", "BT", "B", "BDT", "WAT",
"GMT", "GT", "G", "UTC", "UT", "U", "WET", "CET", "EET", "UZ3", "UZ4",
"IST", "IT", "I", "UZ5", "NST", "SST", "CCT", "JST", "JT", "J",
"SAS", "GST", "UZ1", "NZT", "ZT", "Z", "IDL", "LMT", "LT", "L", "LAT"};
CONST real rZon[cZone] = {
10.0, 10.0, 10.0, 10.0, 10.0, 9.0, 9.0, 9.0, 9.0, 9.0,
8.0, 8.0, 8.0, 8.0, 7.0, 7.0, 7.0, 7.0, 7.0, 6.0,
6.0, 6.0, 6.0, 6.0, 5.0, 5.0, 5.0, 5.0, 5.0, 4.0,
4.0, 4.0, 4.0, 4.0, 3.0, 3.0, 3.0, 3.0, 3.0, 2.0,
1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.0, -2.0,
-4.0, -5.0, -5.5, -5.5, -5.5, -6.0, -6.5, -7.0, -8.0, -9.0,
-9.0, -9.0, -9.5, -10.0, -11.0, -12.0, -12.0, -12.0, -12.0, zonLMT,
zonLMT, zonLMT, zonLAT};
CONST char *rgszDir[4] = {"North", "East", "South", "West"};
CONST char *szSuffix[cSign+1] = {"",
"st", "nd", "rd", "th", "th", "th", "th", "th", "th", "th", "th", "th"};
CONST char *szEphem[cmMax] = {
"Swiss Ephemeris 2.10.03", "Moshier Formulas 2.10.03",
"JPL Ephemeris 2.10.03", "Placalc Ephemeris", "Matrix Formulas",
"JPL Horizons Web Query", "None"};
CONST StrLookR rgZodiacOffset[] = {{"Fagan-Bradley", 0.0},
{"Lahiri", 0.883208}, {"Deluce", -3.075453}, {"Raman", 2.329509},
{"Usha-Shasi", 4.682759}, {"Krishnamurti", 0.98006},
{"Djwhal Khul", -3.619379}, {"Yukteshwar", 2.261497},
{"J.N. Bhasin", 1.978163}, {"Galactic Center", -2.105736}, {"", 0.0}};
CONST char *szNakshatra[27+1] = {"",
"Ashvini", "Bharani", "Krittika", "Rohini", "Mrigashirsha", "Ardra",
"Punarvasu", "Pushya", "Ashlesha", "Magha", "PPhalguni", "UPhalguni",
"Hasta", "Chitra", "Swati", "Vishakha", "Anuradha", "Jyeshtha",
"Mula", "PAshadha", "UAshadha", "Sravana", "Dhanishta", "Shatabhisha",
"PBhadrapada", "UBhadrapada", "Revati"};
CONST char *szEclipse[etMax] =
{"No", "Penumbral", "Total Penumbral", "Partial", "Annular", "Total"};
CONST char rgchEclipse[etMax+1] = "9ppPAT";
CONST char *szAppSep[6] = {"neg", "pos", "app", "sep", "wax", "wan"};
CONST char rgchAppSep[6+1] = "-+asxn";
real rAspAngle[cAspect+1] = {0,
0.0, 180.0, 90.0, 120.0, 60.0, 150.0, 30.0, 45.0, 135.0, 72.0, 144.0,
36.0, rDegMax/7.0, 40.0, 80.0, rDegMax*2.0/7.0, rDegMax*3.0/7.0, 160.0,
108.0, rDegMax/11.0, rDegMax*2.0/11.0, rDegMax*3.0/11.0, rDegMax*4.0/11.0,
rDegMax*5.0/11.0};
real rAspOrb[cAspect+1] = {0,
7.0, 7.0, 7.0, 7.0, 6.0, 3.0, 3.0, 3.0, 3.0, 2.0, 2.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
0.5, 0.5, 0.5, 0.5, 0.5, 0.5};
real rObjOrb[oNorm+2] = {360.0,
360.0, 360.0, 360.0, 360.0, 360.0, 360.0, 360.0, 360.0, 360.0, 360.0,
360.0, 360.0, 360.0, 360.0, 360.0, 2.0, 2.0, 360.0, 360.0, 2.0,
360.0, 360.0, 360.0, 360.0, 360.0, 360.0,
360.0, 360.0, 360.0, 360.0, 360.0, 360.0,
360.0, 360.0, 360.0, 360.0, 360.0, 360.0, 360.0, 360.0, 360.0,
360.0, 360.0, 360.0, 360.0, 360.0, 360.0, 360.0, 360.0, 360.0,
2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0,
2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0,
2.0, 2.0, 2.0, 2.0, 2.0,
2.0};
real rObjAdd[oNorm+2] = {0.0,
1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0,
0.0};
int ruler1[oNorm+1] = {sSag,
sLeo, sCan, sGem, sLib, sAri, sSag, sCap, sAqu, sPis, sSco,
sPis, sVir, sAqu, sLib, sSco, sAqu, sLeo, sSco, sPis, sLib, sAri,
sAri, sTau, sGem, sCan, sLeo, sVir, sLib, sSco, sSag, sCap, sAqu, sPis,
sVir, sLib, sSco, sLeo, sCap, sSag, sVir, sAri, sSag,
0, 0, sLib, sCan, sLeo, sAri, sTau, sGem, sCap,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
int ruler2[oNorm+1] = {0,
0, 0, sVir, sTau, sSco, sPis, sAqu, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
int exalt[oNorm+1] = {sGem,
sAri, sTau, sVir, sPis, sCap, sCan, sLib, sSco, sCan, sAqu,
sCan, sTau, sCap, sLeo, sVir, sGem, sSag, sPis, sSag, sPis, sCap,
sLeo, sVir, sLib, sSco, sSag, sCap, sAqu, sPis, sAri, sTau, sGem, sCan,
sCap, sGem, sVir, sAri, sSag, sAqu, sSco, sLeo, sPis,
0, 0, sGem, sVir, sCap, sSco, sLib, sPis, sAqu,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
// This array is the reverse of the ruler arrays.
// Here, given a sign, return what planet rules it.
int rules[cSign+1] = {-1,
oMar, oVen, oMer, oMoo, oSun, oMer, oVen, oPlu, oJup, oSat, oUra, oNep};
int rules2[cSign+1] = {-1,
-1, -1, -1, -1, -1, -1, -1, oMar, -1, -1, oSat, oJup};
// Esoteric astrology tables
int rgObjRay[oNorm+1] = {3,
2, 4, 4, 5, 6, 2, 3, 7, 6, 1,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 4, 2, 3, 1, 2, 3, 4, 5, 7, 5, 6,
1, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 3, 2, 1, 4, 7, 6, 5, // 3214765: Seven circuit Labyrinth sequence!
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
int rgSignRay[cSign+1] = {0,
17, 4, 2, 37, 15, 26, 3, 4, 456, 137, 5, 26};
int rgSignRay2[cSign+1][cRay+1];
int rgObjEso1[oNorm+1] = {sSag,
sLeo, sVir, sAri, sGem, sSco, sAqu, sCap, sLib, sCan, sPis,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
sAri, sTau, sGem, sCan, sLeo, sVir, sLib, sSco, sSag, sCap, sAqu, sPis,
sTau, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
int rgObjEso2[oNorm+1] = {0,
0, 0, 0, 0, 0, 0, 0, 0, sLeo, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
sVir, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
int rgObjHie1[oNorm+1] = {sGem,
sLeo, sAqu, sSco, sCap, sSag, sVir, sLib, sAri, sCan, sPis,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
sAri, sTau, sGem, sCan, sLeo, sVir, sLib, sSco, sSag, sCap, sAqu, sPis,
sTau, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
int rgObjHie2[oNorm+1] = {0,
0, 0, 0, 0, 0, 0, 0, sLeo, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
sAqu, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
int rgSignEso1[cSign+1] = {-1,
oMer, oVul, oVen, oNep, oSun, oMoo, oUra, oMar, oEar, oSat, oJup, oPlu};
int rgSignEso2[cSign+1] = {-1,
-1, -1, -1, -1, oNep, -1, -1, -1, -1, -1, -1, -1};
int rgSignHie1[cSign+1] = {-1,
oUra, oVul, oEar, oNep, oSun, oJup, oSat, oMer, oMar, oVen, oMoo, oPlu};
int rgSignHie2[cSign+1] = {-1,
-1, -1, -1, -1, oUra, -1, -1, -1, -1, -1, oVul, -1};
int kRayA[cRay+2] = {kBlack,
kRed, kBlue, kGreen, kYellow, kOrange, kMagenta, kPurple, kWhite};
CONST char *szRayName[cRay+1] = {"",
"Will & Power", "Love & Wisdom", "Active Creative Intelligence",
"Harmony Through Conflict", "Concrete Science", "Idealism & Devotion",
"Order & Ceremonial Magic"};
CONST char *szRayWill[cRay+1] = {"",
"Initiate", "Unify", "Evolve", "Harmonize", "Act", "Cause", "Express"};
// Colors
CONST char *szColor[cColor+4] = {"Black",
"Maroon", "DkGreen", "Orange", "DkBlue", "Purple", "DkCyan", "LtGray",
"Gray", "Red", "Green", "Yellow", "Blue", "Magenta", "Cyan", "White",
"Element", "Ray", "Star", "Planet"};
CONST char *szColorHTML[cColor] = {"Black",
"#7f0000", "#007f00", "#7f7f00", "#00007f", "Purple", "#007f7f", "#bfbfbf",
"#7f7f7f", "Red", "00ff00", "Yellow", "Blue", "Magenta", "Cyan", "White"};
int kMainA[9] = {kBlack, kWhite, kLtGray, kDkGray,
kMaroon, kDkGreen, kDkCyan, kDkBlue, kMagenta};
int kRainbowA[cRainbow+1] = {kWhite,
kRed, kOrange, kYellow, kGreen, kCyan, kBlue, kPurple};
int kElemA[cElem] = {kRed, kYellow, kGreen, kBlue};
int kAspA[cAspect+1] = {kWhite,
kYellow, kBlue, kRed, kGreen, kCyan,
kMagenta, kMagenta, kOrange, kOrange, kDkCyan, kDkCyan,
kDkCyan, kMaroon, kPurple, kPurple, kMaroon, kMaroon, kPurple,
kDkCyan, kDkGreen, kDkGreen, kDkGreen, kDkGreen, kDkGreen};
int kObjU[oNorm+2] = {kYellow,
kElement, kElement, kElement, kElement, kElement,
kElement, kElement, kElement, kElement, kElement,
kMagenta, kMagenta, kMagenta, kMagenta, kMagenta,
kDkCyan, kDkCyan, kDkCyan, kDkCyan, kDkCyan, kDkCyan,
kElement, kElement, kElement, kElement, kElement, kElement,
kElement, kElement, kElement, kElement, kElement, kElement,
kPurple,
kPurple, kPurple, kPurple, kPurple, kPurple, kPurple, kPurple, kPurple,
kMagenta, kMagenta, kPurple, kPurple, kPurple, kPurple, kPurple, kPurple,
kPurple,
kPlanet, kPlanet, kPlanet, kPlanet, kPlanet, kPlanet, kPlanet, kPlanet,
kPlanet, kPlanet, kPlanet, kPlanet, kPlanet, kPlanet, kPlanet, kPlanet,
kPlanet, kPlanet, kPlanet, kPlanet, kPlanet, kPlanet, kPlanet, kPlanet,
kPlanet, kPlanet, kPlanet, kPlanet, kPlanet, kPlanet, kPlanet, kPlanet,
kStar};
// Influence information used by ChartInfluence() follows. The influence of a
// planet in its ruling or exalting sign or house is tacked onto the last two
// positions of the object and house influence array, respectively.
// The inherent strength of each planet
real rObjInf[oNorm1+6] = {30,
30, 25, 10, 10, 10, 10, 10, 10, 10, 10,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
20, 10, 10, 10, 10, 10, 10, 10, 10, 15, 10, 10,
4, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
2,
20, 10, 10, 10, 10};
// The inherent strength of each house
real rHouseInf[cSign+6] = {0,
20, 0, 0, 10, 0, 0, 5, 0, 0, 15, 0, 0,
15, 5, 5, 5, 5};
// The inherent strength of each aspect
real rAspInf[cAspect+1] = {0.0,
1.0, 0.8, 0.8, 0.6, 0.6, 0.4, 0.4, 0.2, 0.2,
0.2, 0.2, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
0.05, 0.05, 0.05, 0.05, 0.05, 0.05};
// The inherent strength of each planet when transiting
real rTransitInf[oNorm1+1] = {10,
10, 4, 8, 9, 20, 30, 35, 40, 45, 50,
30, 15, 15, 15, 15, 30, 30, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
6, 50, 50, 50, 50, 50, 50, 50, 50,
15, 30, 50, 50, 50, 50, 50, 50, 50,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
60};
// Informational astronomical data for planets
CONST real rObjDist[oNorm+1] = {rEarthDist, 0.0, 0.3844,
57.91, 108.2, 227.94, 778.33, 1426.98, 2870.99, 4497.07, 5913.52,
13.670*rEarthDist, 2.767*rEarthDist, 2.770*rEarthDist, 2.669*rEarthDist,
2.361*rEarthDist, 0.3844, 0.3844, 0.3844,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
// Uranians
0.13744*rEarthDist, 40.99837*rEarthDist, 50.66744*rEarthDist,
59.21436*rEarthDist, 64.81690*rEarthDist, 70.29949*rEarthDist,
73.62765*rEarthDist, 77.25568*rEarthDist, 83.66907*rEarthDist,
// Dwarfs
3.142*rEarthDist, 20.376*rEarthDist, 67.864*rEarthDist,
43.182*rEarthDist, 45.431*rEarthDist, 67.474*rEarthDist,
43.695*rEarthDist, 484.548*rEarthDist, 30.281*rEarthDist,
// Moons
0.0093772, 0.0234632, 1.0700428, 1.883, 0.421769, 0.671079,
1.22187, 0.52707, 3.56084, 0.37742, 0.29467, 0.23804, 0.18554, 1.500933,
0.4358, 0.5826, 0.266, 0.1912, 0.1298, 0.35476, 0.117647, 5.5134,
0.017536, 0.064738, 0.048694, 0.057783, 0.042656,
778.33, 1426.98, 2870.99, 4497.07, 5913.52}; // Units: M-km
CONST real rObjYear[oNorm+1] = {1.0, 0.0, 27.32166/rDayInYear,
0.2408467, 0.61519726, 1.8808476, 11.862615,
29.447498, 84.016846, 164.79132, 247.92065,
50.71, 4.60, 4.62, 4.36, 3.63,
-6792.45/rDayInYear, -6792.45/rDayInYear, 3396.225/rDayInYear,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
// Uranians
18.58/rDayInYear, 94923.63/rDayInYear, 129906.79/rDayInYear,
163537.13/rDayInYear, 186804.87/rDayInYear, 210470.60/rDayInYear,
225232.03/rDayInYear, 241643.79/rDayInYear, 271464.37/rDayInYear,
// Dwarfs
5.57, 91.98, 559.07, 283.77, 306.22, 554.25, 288.84, 10666.28, 245.19,
// Moons
0.32/rDayInYear, 1.25/rDayInYear, 7.16/rDayInYear, 16.69/rDayInYear,
1.77/rDayInYear, 3.55/rDayInYear, 15.95/rDayInYear, 4.52/rDayInYear,
79.32/rDayInYear, 2.74/rDayInYear, 1.89/rDayInYear, 1.37/rDayInYear,
0.94/rDayInYear, 21.28/rDayInYear, 8.71/rDayInYear, 13.46/rDayInYear,
4.14/rDayInYear, 2.52/rDayInYear, 1.41/rDayInYear, -5.88/rDayInYear,
1.12/rDayInYear, 360.11/rDayInYear, 6.39/rDayInYear, 38.2/rDayInYear,
24.85/rDayInYear, 32.17/rDayInYear, 20.16/rDayInYear,
11.8623, 29.458, 84.01, 164.79, 248.54}; // Units: years
real rObjDiam[oNorm+1] = {12756.28, 1392700.0, 3475.0,
4878.8, 12103.6, 6779.0, 139822.0, 116464.0, 50724.0, 49244.0, 2376.6,
271.37, 939.4, 545.0, 246.596, 525.4, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
// Dwarfs
407.12, 290.0, 2326.0, 1560.0, 1454.0, 1230.0, 1121.0, 1060.0, 910.0,
// Moons
11.0*2.0, 6.0*2.0, 2634.0*2.0, 2403.0*2.0, 1821.0*2.0, 1565.0*2.0,
2575.0*2.0, 764.0*2.0, 734.0*2.0, 562.0*2.0,
536.0*2.0, 252.0*2.0, 199.0*2.0, 133.0*2.0,
789.0*2.0, 761.0*2.0, 585.0*2.0, 579.0*2.0, 236.0*2.0,
1353.0*2.0, 209.0*2.0, 170.0*2.0,
605.0*2.0, 39.0*2.0, 38.0*2.0, 13.0*2.0, 11.0*2.0,
142984.0, 120536.0, 51118.0, 49528.0, 2372.0}; // Units: km
CONST real rObjDay[oNorm+1] = {24.0, 30.0*24.0, 27.322*24.0,
58.65*24.0, 243.01*24.0, 24.6229, 9.841, 10.233, 17.9, 19.2, 6.3872*24.0,
5.918, 9.074170, 7.8132, 7.210, 5.34212766, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
// Dwarfs
13.828, 9.980, 25.9, 3.9154, 22.8266, 22.40, 8.840, 10.273, 13.188,
// Moons
0.319*24.0, 1.263*24.0, 7.155*24.0, 16.689*24.0, 1.769*24.0, 3.552*24.0,
15.945*24.0, 4.518*24.0, 79.33*24.0, 2.737*24.0,
1.888*24.0, 1.370*24.0, 0.942*24.0, 0.0,
8.706*24.0, 13.463*24.0, 4.144*24.0, 2.520*24.0, 1.413*24.0,
5.877*24.0, 1.122*24.0, 360.13619,
6.38723*24.0, 0.0, 0.0, 0.0, 0.0,
9.841, 10.233, 17.9, 19.2, 6.3872*24.0}; // Units: hr
CONST real rObjMass[oPlu+1] = {1.0, 322946.0, 0.0123,
0.0553, 0.8149, 0.1074, 317.938, 95.181, 14.531, 17.135, 0.0022};
CONST real rObjAxis[oPlu+1] = {23.5, 0.0, 6.7,
2.0, 2.7, 25.19, 3.12, 26.73, 82.14, 29.6, 57.54};
CONST int cSatellite[oPlu+1] = {1, 9, 0,
0, 0, 2, 4, 8, 5, 3, 5};
CONST int nMooMap[6][8] = { // Map JPL code number to Astrolog object index
{ 0, 1, -1, -1, -1, -1, -1, -1}, // Mars
{ 4, 5, 2, 3, -1, -1, -1, -1}, // Jupiter
{12, 11, 10, 9, 7, 6, 13, 8}, // Saturn
{17, 16, 14, 15, 18, -1, -1, -1}, // Uranus
{19, 21, -1, -1, -1, -1, -1, 20}, // Neptune
{22, 24, 23, 25, 26, -1, -1, -1}}; // Pluto
CONST int rgobjHasMoons[cHasMoons] =
{oEar, oMar, oJup, oSat, oUra, oNep, oPlu, oEri, oHau, oQua, oOrc};
#ifdef ARABIC
CONST AI ai[cPart] = {
{" 02 01F ", "Fortune"},
{" 01 02F ", "Spirit"},
{" 06 S F ", "Victory"},
{" F 05F ", "Valor & Bravery"},
{" 05 03Fh", "Mind & Administrators"},
{" h02r02Fh", "Property & Goods"},
{" 06 07 h", "Siblings"},
{" j03 01Fh", "Death of Siblings"},
{" 06 07Fh", "Death of Parents"},
{" 07h02Fh", "Grandparents"},
{" 06 03Fh", "Real Estate"},
{" 07 06Fh", "Children & Life"},
{" R02 02 h", "Expected Birth"},
{" 05 03 h", "Disease & Defects (1)"},
{" 05 07 h", "Disease & Defects (2)"},
{" R07 07 h", "Captivity"},
{" 02 03 h", "Servants"},
{" h07 04 h", "Partners"},
{" h08 02 h", "Death"},
{" 05 07Fh", "Sickness & Murder"},
{" 03 07Fh", "Danger, Violence & Debt"},
{" h09r09 h", "Journeys"},
{" 105 07Fh", "Travel by Water"},
{" 03 02Fh", "Faith, Trust & Belief"},
{" 02 07Fh", "Deep Reflection"},
{" 01 07Fh", "Understanding & Wisdom"},
{" 06 01Fh", "Fame & Recognition"},
{" 02 05Fh", "Rulers & Disassociation"},
{" 07 01Fh", "Father, Fate & Karma"}, // Combust
{" F 07Fh", "Sudden Advancement"},
{" 01 07 h", "Celebrity of Rank"},
{" 07 05Fh", "Surgery & Accident"},
{" 04 03Fh", "Merchants & Their Work"},
{" F S Fh", "Merchandise (Exchange)"}, // Moon
{" 02 04Fh", "Mother"},
{" S F Fh", "Glory & Constancy"},
{" 01 F Fh", "Honorable Acquaintances"},
{" 06 F Fh", "Success"},
{" 04 F Fh", "Worldliness"},
{" 03 02 h", "Acquaintances"},
{" 03 S h", "Violence"},
{" 01 03Fh", "Liberty of Person"},
{" 04 06Fh", "Praise & Acceptance"},
{" h12r12 h", "Enmity"},
{" F S h", "Bad Luck"},
{" 05 F F ", "Debilitated Bodies"},
{" 02D F ", "Boldness & Violence"},
{" S 03F ", "Trickery & Deceit"},
{" h03 05 ", "Necessities"},
{" 03 F ", "Realization of Needs"},
{" 01 05F ", "Retribution"},
{" 06 02 ", "Children (Male)"},
{" 04 02 ", "Children (Female)"},
{" 05 04 ", "Play & Variety"}, // Change
{" 07 03 h", "Stability"},
{" h05 06Fh", "Speculation"},
{" 03 04Fh", "Art"},
{" h05r05 h", "Sexual Attraction"},
{" 10 04 h", "Sex Drive & Stimulation"},
{" 05 01 h", "Passion"},
{" 05 04 h", "Emotion & Affection"},
{" r08 07 h", "Most Perilous Year"},
{" h08 07 h", "Peril"},
{" 09 08 h", "Occultism"},
{" 03 01 h", "Commerce"},
{"h09h03 04 h", "Marriage Contracts"},
{" h09r09 h", "Travel by Land"},
{" 08H08 h", "Travel by Air"},
{" 30 01 02Fh", "Destiny"},
{" 30 02 01Fh", "Vocation & Status"},
{" 019 01 h", "Honor, Nobility (Day)"},
{" 033 02 h", "Honor, Nobility (Night)"},
{" 10 01 h", "Organization"},
{" 04h07 h", "Divorce"},
{" 08 01 h", "Ostracism & Loss"},
{" 02 08Fh", "Friends"},
{" 07 01 h", "Tragedy & Brethren"},
{" 02 10Fh", "Race (Consciousness)"},
{" 02D02Fh", "Bondage & Slavery"},
{" F 09 h", "Imprisonment & Sorrow"},
{" 04 08 h", "Perversion"},
{" h12 09 h", "Self-Undoing"},
{" 09 01 h", "Treachery & Entrapment"},
{"h12r12 09 h", "Bereavement"},
{" 06h12 h", "Suicide (Yang)"},
{" h08 09 h", "Suicide (Yin)"},
{" 06 09 h", "Depression"},
{" 05 09 08 h", "Assassination (Yang)"},
{" r12 09 h", "Assassination (Yin)"},
{" 09 06 ", "Cancer (Disease)"},
{" 08 07 ", "Catastrophe"},
{" 07 08 ", "Foolhardiness"},
{" 03 05 ", "Release & Luck"},
{" 06 03 ", "Benevolence & Assurance"},
{" 03 06 ", "Hope & Sensitivity"},
{" 03 07 ", "Aptness & Aloofness"},
{" 08 09 ", "Charm & Personality"},
{" 02 03F ", "Faith & Good Manners"},
{" 01 03 ", "Temperament"},
{" 04 03 ", "Security & Treasure"},
{" 08 03 ", "Originality"},
{" 03 08 ", "Eccentricity, Astrology"},
{" 09 03 ", "Divination"},
{" 03 09 ", "Intrusion"},
{" 05 06 ", "Negotiation"},
{" 06 05 ", "Discord & Controversy"},
{" 05 08 ", "Coincidence"},
{" 08 05 ", "Unpreparedness"},
{" 05 09 ", "Popularity"},
{" 09 05 ", "Misunderstanding"},
{" 04 06 ", "Sentiment & Marriage"},
{" 06 04 ", "Loneliness"},
{" 04 07 ", "Success in Investment"},
{" 07 04 ", "Frugality & Labor"},
{" 08 04 ", "Wastefulness"},
{" 04 09 ", "Vanity"},
{" 09 04 ", "Corruptness"},
{" 01 05 ", "Initiative"},
{" 05 02F ", "Memory"},
{" 04 01 ", "Love, Beauty & Peace"},
{" 01 04 ", "Disinterest & Boredom"},
{" 01 06 ", "Accomplishment"},
{" 07 02F ", "Influence"},
{" 06 01 ", "Increase & Impression"},
{" 09 07 ", "Caution"},
{" 07 09 ", "Timidity"},
{" 08 06 ", "Entertainment"},
{" 06 08 ", "Bequest"},
{" 01 09 ", "Genius"},
{" 02 09F ", "Revelation"},
{" 09 02F ", "Delusion"},
{" 08 02F ", "Misinterpretation"},
{" 01 08 ", "Intellectuality"},
{" 06 07 E", "Earth"},
{" 04 02 E", "Water"},
{" r04 03 E", "Air & Wind"},
{" 05 01 E", "Fire"},
{" 07 05FE", "Clouds"},
{" 04 02FE", "Rains"},
{" 07 03FE", "Cold"},
{" 06 01FC", "Wheat"},
{" 06 02FC", "Barley & Meats"},
{" 04 06FC", "Rice & Millet"},
{" 07 06FC", "Corn"},
{" 07 05FC", "Lentils, Iron, Pungents"},
{" 05 07FC", "Beans & Onions"},
{" 01 03FC", "Chick Peas"},
{" 04 07FC", "Sesame & Grapes"},
{" 03 04FC", "Sugar & Legumes"},
{" 01 02FC", "Honey"},
{" 02 05FC", "Oils"},
{" 04 05FC", "Nuts & Flax"},
{" 02 03FC", "Olives"},
{" 05 07FC", "Apricots & Peaches"},
{" 03 06FC", "Melons"},
{" 05 02FC", "Salt"},
{" 03 01FC", "Sweets"},
{" 07 03FC", "Astrigents & Purgatives"},
{" 04 03FC", "Silk & Cotton"},
{" 05 07FC", "Purgatives (Bitter)"},
{" 06 07FC", "Purgatives (Acid)"},
{" 30D H", "Secrets"},
{" 02 03FH", "Information True/False"},
{" F D FH", "Injury to Business"},
{" 03 07 06 H", "Freedmen & Servants"},
{" 02 07 06 H", "Employers"},
{" h07 04 H", "Marriage"},
{" 06 01 H", "Time for Action/Success"},
{" 07 01 H", "Time Occupied in Action"},
{" 07 06 01 H", "Dismissal & Resignation"},
{" 05 02 H", "Life/Death of Absentee"},
{" 05 01 H", "Lost Animal (Light)"},
{" 05 07 H", "Lost Animal (Dark)"},
{" 03 05 H", "Lawsuit"},
{"h08 05 02 H", "Decapitation"},
{" 30 07 02 H", "Torture"},
{" 02h04D H", "Lost Objects"}
};
#endif // ARABIC
/*
******************************************************************************
** Constellation Tables.
******************************************************************************
*/
#ifdef CONSTEL
CONST char *szCnstlName[cCnstl+1] = {"",
"Andromeda", "Antilia", "Apus", "Aquarius",
"Aquila", "Ara", "Aries", "Auriga",
"Bootes", "Caelum", "Camelopardalis", "Cancer",
"Canes Venatici", "Canis Major", "Canis Minor", "Capricornus",
"Carina", "Cassiopeia", "Centaurus", "Cepheus",
"Cetus", "Chamaeleon", "Circinus", "Columba",
"Coma Berenices", "Corona Australis", "Corona Borealis", "Corvus",
"Crater", "Crux", "Cygnus", "Delphinus",
"Dorado", "Draco", "Equuleus", "Eridanus",
"Fornax", "Gemini", "Grus", "Hercules",
"Horologium", "Hydra", "Hydrus", "Indus",
"Lacerta", "Leo", "Leo Minor", "Lepus",
"Libra", "Lupus", "Lynx", "Lyra",
"Mensa", "Microscopium", "Monoceros", "Musca",
"Norma", "Octans", "Ophiuchus", "Orion",
"Pavo", "Pegasus", "Perseus", "Phoenix",
"Pictor", "Pisces", "Piscis Austrinus", "Puppis",
"Pyxis", "Reticulum", "Sagitta", "Sagittarius",
"Scorpius", "Sculptor", "Scutum", "Serpens Caput/Cauda",
"Sextans", "Taurus", "Telescopium", "Triangulum",
"Triangulum Australe", "Tucana", "Ursa Major", "Ursa Minor",
"Vela", "Virgo", "Volans", "Vulpecula"};
CONST char *szCnstlAbbrev[cCnstl+1] = {"",
"And", "Ant", "Aps", "Aqu", "Aql", "Ara", "Ari", "Aur",
"Boo", "Cae", "Cam", "Cnc", "CVn", "CMa", "CMi", "Cap",
"Car", "Cas", "Cen", "Cep", "Cet", "Cha", "Cir", "Col",
"Com", "CrA", "CrB", "Crv", "Crt", "Cru", "Cyg", "Del",
"Dor", "Dra", "Equ", "Eri", "For", "Gem", "Gru", "Her",
"Hor", "Hya", "Hyi", "Ind", "Lac", "Leo", "LMi", "Lep",
"Lib", "Lup", "Lyn", "Lyr", "Men", "Mic", "Mon", "Mus",
"Nor", "Oct", "Oph", "Ori", "Pav", "Peg", "Per", "Phe",
"Pic", "Psc", "PsA", "Pup", "Pyx", "Ret", "Sge", "Sgr",
"Sco", "Scl", "Sct", "Ser", "Sex", "Tau", "Tel", "Tri",
"TrA", "Tuc", "UMa", "UMi", "Vel", "Vir", "Vol", "Vul"};
CONST char *szCnstlMeaning[cCnstl+1] = {"",
"Chained Maiden", "Air Pump", "Bird of Paradise", "Water Bearer",
"Eagle", "Altar", "Ram", "Charioteer",
"Herdsman", "Chisel", "Giraffe", "Crab",
"Hunting Dogs", "Great Dog", "Little Dog", "Sea Goat",
"Keel", "Queen", "Centaur", "King",
"Sea Monster", "Chameleon", "Drawing Compass", "Dove",
" Berenice's Hair", "Southern Crown", "Northern Crown", "Crow",
"Cup", "Southern Cross", "Swan", "Dolphin",
"Dolphinfish", "Dragon", "Little Horse", "River",
"Furnace", "Twins", "Crane", "Strongman",
"Clock", "Sea Serpent", "Water Snake", "Indian",
"Lizard", "Lion", "Little Lion", "Hare",
"Scales", "Wolf", "Lynx", "Lyre",
"Table Mountain", "Microscope", "Unicorn", "Fly",
"Level", "Octant", "Serpent Bearer", "Hunter",
"Peacock", "Winged Horse", "Hero", "Phoenix",
"Painter", "Fishes", "Southern Fish", "Stern",
"Compass", "Net", "Arrow", "Archer",
"Scorpion", "Sculptor", "Shield", " Head/Tail of the Snake",
"Sextant", "Bull", "Telescope", "Triangle",
"Southern Triangle", "Toucan", "Great Bear", "Little Bear",
"Sail", "Virgin", "Flying Fish", "Fox"};
CONST char *szCnstlGenitive[cCnstl+1] = {"",
"", "", "2odis", "", "", "", "1tis", "",
"2is", "", "", "2ri", "2um1orum", " is", " is", "",
"", "", "", "", "", "tis", "", "",
"", "", "", "", "is", "", "", "",
"1us", "nis", "", "", "", "1orum", "1is", "2is",
"", "", "", "", "", "nis", "nis0is", "2oris",
"", "", "", "", "", "", "1tis", "",
"", "1is", "", "is", "nis", "", "", "",
"is", "2ium", "", "", "1dis", "", "", "",
"", "is", "", "!1is", "1tis", "", "", "",
"2i1is", "", " is", " is", "1orum", "1inis", "1tis", ""};
#endif // CONSTEL
#ifdef INTERPRET
/*
******************************************************************************
** Interpretation Tables.
******************************************************************************
*/
CONST char *szMindPartDef[objMax] = {"arena of practical life experience",
"spirit, ego, image of self, and sense of aliveness",
"emotional nature, moods, feelings, and caring tendencies",
"thoughts, intellect, and communicative activity",
"creativity, tendencies for affection and calmness, and relationship needs",
"will, energy, activity, and aggressive, assertive tendencies",
"enthusiastic, faithful, wise, expansive, spontaneous nature",
"part of mind that is disciplined, respectful, and solitary",
"individuality, desires for change, and tendency to go against social norms",
"intuitive, spiritual, compassionate, psychic nature",
"destiny, and capacity to transform the self and the outer world",
"ability to help, heal, and teach others, and where one has much experience",