bahai_date 1.3.1 → 2.0.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b314d07af6b210455674a6281aff0b20b1651aeb
4
- data.tar.gz: 2db23403ea9cc4ce0f40fd1eded6775f950c551c
2
+ SHA256:
3
+ metadata.gz: 2ea6196b3d2b33c8040d36b76b7f28b2a74ff97e8d342ed9a628126ddf845075
4
+ data.tar.gz: 843681c5cd775ea3786a0c8e941688bdb7fe5f58370a104c19604a4ddc8d8d87
5
5
  SHA512:
6
- metadata.gz: cb42255ee1a47297668ca07a4a0f21ec97a401c20c78a9424c52a6694af6cda3a714672550008f61d8069f6f2d6cb4ba9f57fe166e3c2c81da3d2f0d19b1e9cd
7
- data.tar.gz: 9a92452ad54043607ae87d3a947f60f1b90e782bb330e4e897d1adbf8819b4c9eafd711836aad7db0b67580894b58948e3b53232ee236b3c9833057a9ee801d0
6
+ metadata.gz: cbe29b0f50d0590c3d55ae21484a484f7931ef81134bfd8591f7f3aab1f2368fc358cbb334ea2c53e098d2f1d0703067482245c741f410e663d533b7e1171023
7
+ data.tar.gz: 69e4a3df30bb8ff9ab2e49f08f59e309fdc7d43486d5eb5fa17c6281297b2e39745ebcdffc250cc91f647270adcc4bea6c94fa036944c83c1819bcbe3781123c
data/CHANGELOG.md ADDED
@@ -0,0 +1,48 @@
1
+ # Changelog
2
+
3
+ ## 2.0.0
4
+
5
+ Breaking changes:
6
+ - `BahaiDate.new` takes keyword arguments only. Pass `date:`, or `year:`,
7
+ `month:` and `day:`; a positional options hash is no longer accepted.
8
+ - Requires Ruby 3.3 or newer (tested on 3.3, 3.4 and 4.0).
9
+ - Years are limited to 1 to 1157 B.E., and Gregorian dates to the end of 1157
10
+ B.E. (March 3001), the range the astronomical algorithms are good for. Out
11
+ of range years raise `ArgumentError` from `BahaiDate.new`, `Year.new`,
12
+ `YearCalendar.new`, `Logic` and `OccasionFactory`. Before, very large years
13
+ were accepted and gave wrong dates or misleading errors.
14
+ - `Year#translation` for the 18th and 19th years of a Vahid now gives "Most
15
+ Luminous" and "Unity". It gave "Most" and "Luminous", because "Most
16
+ Luminous" was split in two.
17
+ - The Ayyam-i-Ha occasion titles say "Intercalary", not "Intercalery".
18
+
19
+ Other changes:
20
+ - `BahaiDate.new(date:)` accepts anything with `to_date`, such as a `Time` or
21
+ `DateTime`, and `gregorian_date` is then always a `Date`. Anything else
22
+ raises `ArgumentError`. Note that a Baha'i day begins at sunset, while this
23
+ gem converts whole Gregorian dates.
24
+ - No runtime dependencies. The sunset algorithm from `RubySunrise` now
25
+ lives in `lib/bahai_date/sunset.rb` as `BahaiDate::Sunset`, which removes
26
+ `RubySunrise`, `tzinfo` and `bigdecimal`. Tehran time is a fixed UTC+03:30,
27
+ which gives the same dates as the Asia/Tehran zone for every year from 2015
28
+ to 3001, so no system time zone data is needed. `Logic::TEHRAN_LAT` and
29
+ `Logic::TEHRAN_LONG` are now Floats rather than BigDecimals. Naw-Ruz and the
30
+ Twin Holy Days are unchanged for every year from 2015 to 3001.
31
+ - The gemspec sets `rubygems_mfa_required`, so a release can only be pushed
32
+ with multi-factor authentication, and links to the source, changelog and
33
+ issues.
34
+ - The astronomical algorithms from `astro-algo` now live in
35
+ `lib/bahai_date/astro.rb` as `BahaiDate::Astro`. Its only published release
36
+ does not work on modern Ruby and the gem is unmaintained, and it used to
37
+ reopen `Numeric`, `Array` and `DateTime` on load; it no longer does.
38
+ - Removed `require "bundler/setup"` from the library.
39
+ - `Month#add_day` returns the existing day instead of `nil` when called twice.
40
+ - `OccasionFactory.find` returns `nil` for an unknown occasion instead of
41
+ raising `NoMethodError`.
42
+ - Naw-Ruz dates are memoised per year, which makes converting runs of dates
43
+ (and building a `YearCalendar`) far cheaper.
44
+ - The specs check every published month start, Ayyam-i-Ha range, holy day and
45
+ significant date for eras 172-221 against bahai.org itself. Refresh the data
46
+ with `script/collect_published_calendar.js`. They also check Naw-Ruz, the
47
+ Twin Holy Days and Ayyam-i-Ha against the badiDate JavaScript library for
48
+ 172-507 (2015-2351), and agree on every year.
data/README.md CHANGED
@@ -7,7 +7,7 @@ A Ruby gem for conversion between the Gregorian calendar and the Baha'i (or Badi
7
7
 
8
8
  The Baha'i calendar
9
9
  -------------------
10
- In the Baha'i (or Badi) calendar there are 19 months each having 19 days, with 4 or 5 days left aside as intercalery days. Each weekday, day of the month and month of the year have a name, named after the attributes of God (such as Glory, Beauty, etc). The names have been transliterated into English from the original Arabic, and a translation is also provided.
10
+ In the Baha'i (or Badi) calendar there are 19 months each having 19 days, with 4 or 5 days left aside as intercalary days. Each weekday, day of the month and month of the year have a name, named after the attributes of God (such as Glory, Beauty, etc). The names have been transliterated into English from the original Arabic, and a translation is also provided.
11
11
 
12
12
  Each year also has a name, as part of a 19 year cycle called a Vahid (meaning "unity"). Every 19 Vahids (i.e. 361 years) constitute a Kull-i-Shay (meaning "all things").
13
13
 
@@ -18,11 +18,26 @@ More information about this calendar is on the [Wikipedia entry](http://en.wikip
18
18
 
19
19
  Calculations
20
20
  ------------
21
- The source of the algorithms used to determine the vernal equinox and lunar
22
- phases is the book [*Astronomical Algorithms*](http://www.willbell.com/math/mc1.htm) by Jean Meeus, which has become an authority on this subject in computer science circles (for example, [NASA uses it](http://eclipse.gsfc.nasa.gov/phase/phasecat.html)). Some of the algorithms in the book have been implemented in the *astro-algo* ruby
23
- gem (https://rubygems.org/gems/astro-algo), which we use here.
21
+ From 172 B.E. (2015), Naw-Ruz is the day on which the vernal equinox falls in
22
+ Tehran, counting days from sunset to sunset, and the Twin Holy Days are the
23
+ first and second days after the eighth new moon after Naw-Ruz, as the Universal
24
+ House of Justice set out in its message of 10 July 2014. Before 172 B.E. the
25
+ gem uses the earlier fixed dates (Naw-Ruz on 21 March, and the Twin Holy Days
26
+ on 5 'Ilm and 9 Qudrat).
24
27
 
25
- Also, the ruby gem *sunrise* (https://rubygems.org/gems/RubySunrise) is widely used to determine the time for sunrise/sunset at a given location, and we use it here.
28
+ - The vernal equinox and new moons come from the algorithms in Jean Meeus,
29
+ [*Astronomical Algorithms*](http://www.willbell.com/math/mc1.htm), in
30
+ `lib/bahai_date/astro.rb`. They came from the *astro-algo* gem, which is
31
+ unmaintained and no longer works on modern Ruby.
32
+ - Sunset comes from the US Naval Observatory's *Almanac for Computers*
33
+ algorithm, in `lib/bahai_date/sunset.rb`. It came from the *RubySunrise* gem.
34
+
35
+ The gem has no runtime dependencies.
36
+
37
+ The specs check the gem against the calendar bahai.org publishes (172-221
38
+ B.E.) and against the independent [badiDate](https://github.com/janrg/badiDate)
39
+ JavaScript library for every year it covers (172-507 B.E., to 2351). Why dates
40
+ stop at the Gregorian year 3000 is explained in `lib/bahai_date/logic.rb`.
26
41
 
27
42
 
28
43
  Functionality
@@ -32,8 +47,22 @@ A BahaiDate instance can be created either from a Gregorian date or supplying th
32
47
  A calendar can also be obtained using the YearCalendar class and providing a year. It is then populated with details about that year, each month and each day in it.
33
48
 
34
49
 
50
+ Limits
51
+ ------
52
+ - Years 1 to 1157 B.E. are supported, which is Gregorian 21 March 1844 to
53
+ March 3001. Past about 2351 the dates are the algorithms' best estimate:
54
+ the Earth's rotation cannot be predicted precisely, and in some years the
55
+ equinox falls within minutes of sunset in Tehran.
56
+ - A Baha'i day begins at sunset, but this gem converts whole Gregorian dates.
57
+ `BahaiDate.new(date: Date.today)` gives the Baha'i date that begins at
58
+ sunset on the evening before `Date.today`, so after sunset you need the next
59
+ day's date. `Date.today` is also in the server's time zone, not the reader's.
60
+
61
+
35
62
  Installation
36
63
  ------------
64
+ Requires Ruby 3.3 or newer; tested on 3.3, 3.4 and 4.0.
65
+
37
66
  Add this line to your application's Gemfile:
38
67
 
39
68
  `gem 'bahai_date'`
@@ -0,0 +1,406 @@
1
+ # Data tables used by astro.rb, transcribed from Jean Meeus, _Astronomical
2
+ # Algorithms_, 2nd English Edition, Willmann-Bell, Inc., Richmond, Virginia,
3
+ # 1999, via the astro-algo implementation of the same.
4
+ #
5
+ # These values have not been checked against a printed copy of the book -- we
6
+ # don't have one. What is checked: they are unchanged from the astro-algo
7
+ # source, and the algorithms built on them reproduce the worked examples in
8
+ # spec/bahai_date/astro_spec.rb. Page numbers are kept from upstream as a
9
+ # pointer, not as a claim that someone read the page.
10
+ module BahaiDate
11
+ module Astro
12
+ TABLE_49B = [ # page 351
13
+ # new moon full moon E F M M' O
14
+ [0.00002, 0.00002, 0, 0.0, 0.0, 4.0, 0.0],
15
+ [-0.00002, -0.00002, 0, 0.0, 1.0, 3.0, 0.0],
16
+ [-0.00002, -0.00002, 0, -2.0, -1.0, 1.0, 0.0],
17
+ [0.00003, 0.00003, 0, 2.0, -1.0, 1.0, 0.0],
18
+ [-0.00003, -0.00003, 0, 2.0, 1.0, 1.0, 0.0],
19
+ [0.00003, 0.00003, 0, 2.0, 0.0, 2.0, 0.0],
20
+ [0.00003, 0.00003, 0, -2.0, 1.0, 1.0, 0.0],
21
+ [0.00004, 0.00004, 0, 0.0, 3.0, 0.0, 0.0],
22
+ [0.00004, 0.00004, 0, -2.0, 0.0, 2.0, 0.0],
23
+ [-0.00007, -0.00007, 0, 0.0, 2.0, 1.0, 0.0],
24
+ [-0.00017, -0.00017, 0, 0.0, 0.0, 0.0, 1.0],
25
+ [-0.00024, -0.00024, 1, 0.0, -1.0, 2.0, 0.0],
26
+ [0.00038, 0.00038, 1, -2.0, 1.0, 0.0, 0.0],
27
+ [0.00042, 0.00042, 1, 2.0, 1.0, 0.0, 0.0],
28
+ [-0.00042, -0.00042, 0, 0.0, 0.0, 3.0, 0.0],
29
+ [0.00056, 0.00056, 1, 0.0, 1.0, 2.0, 0.0],
30
+ [-0.00057, -0.00057, 0, 2.0, 0.0, 1.0, 0.0],
31
+ [-0.00111, -0.00111, 0, -2.0, 0.0, 1.0, 0.0],
32
+ [0.00208, 0.00209, 2, 0.0, 2.0, 0.0, 0.0],
33
+ [-0.00514, -0.00515, 1, 0.0, 1.0, 1.0, 0.0],
34
+ [0.00739, 0.00734, 1, 0.0, -1.0, 1.0, 0.0],
35
+ [0.01039, 0.01043, 0, 2.0, 0.0, 0.0, 0.0],
36
+ [0.01608, 0.01614, 0, 0.0, 0.0, 2.0, 0.0],
37
+ [0.17241, 0.17302, 1, 0.0, 1.0, 0.0, 0.0],
38
+ [-0.40720, -0.40614, 0, 0.0, 0.0, 1.0, 0.0]
39
+ ]
40
+
41
+ TABLE_49A = [ # page 351
42
+ # k T^2
43
+ [299.77, 0.107408, 0.000325, -0.009173],
44
+ [251.88, 0.016321, 0.000165, 0.0],
45
+ [251.83, 26.651886, 0.000164, 0.0],
46
+ [349.42, 36.412478, 0.000126, 0.0],
47
+ [84.66, 18.206239, 0.000110, 0.0],
48
+ [141.74, 53.303771, 0.000062, 0.0],
49
+ [207.14, 2.453732, 0.000060, 0.0],
50
+ [154.84, 7.306860, 0.000056, 0.0],
51
+ [34.52, 27.261239, 0.000047, 0.0],
52
+ [207.19, 0.121824, 0.000042, 0.0],
53
+ [291.34, 1.844379, 0.000040, 0.0],
54
+ [161.72, 24.198154, 0.000037, 0.0],
55
+ [239.56, 25.513099, 0.000035, 0.0],
56
+ [331.55, 3.592518, 0.000023, 0.0]
57
+ ]
58
+
59
+ TABLE_49C = [ # page 352
60
+ # E F M M' O
61
+ [-0.00002, 0, 0.0, 1.0, 3.0, 0.0],
62
+ [0.00002, 0, 2.0, -1.0, 1.0, 0.0],
63
+ [0.00002, 0, -2.0, 0.0, 2.0, 0.0],
64
+ [0.00003, 0, 0.0, 3.0, 0.0, 0.0],
65
+ [0.00003, 0, -2.0, 1.0, 1.0, 0.0],
66
+ [0.00004, 0, 0.0, -2.0, 1.0, 0.0],
67
+ [-0.00004, 0, 2.0, 1.0, 1.0, 0.0],
68
+ [0.00004, 0, 2.0, 0.0, 2.0, 0.0],
69
+ [-0.00005, 0, -2.0, -1.0, 1.0, 0.0],
70
+ [-0.00017, 0, 0.0, 0.0, 0.0, 1.0],
71
+ [0.00027, 1, 0.0, 1.0, 2.0, 0.0],
72
+ [-0.00028, 2, 0.0, 2.0, 1.0, 0.0],
73
+ [0.00032, 1, -2.0, 1.0, 0.0, 0.0],
74
+ [0.00032, 1, 2.0, 1.0, 0.0, 0.0],
75
+ [-0.00034, 1, 0.0, -1.0, 2.0, 0.0],
76
+ [-0.00040, 0, 0.0, 0.0, 3.0, 0.0],
77
+ [-0.00070, 0, 2.0, 0.0, 1.0, 0.0],
78
+ [-0.00180, 0, -2.0, 0.0, 1.0, 0.0],
79
+ [0.00204, 2, 0.0, 2.0, 0.0, 0.0],
80
+ [0.00454, 1, 0.0, -1.0, 1.0, 0.0],
81
+ [0.00804, 0, 2.0, 0.0, 0.0, 0.0],
82
+ [0.00862, 0, 0.0, 0.0, 2.0, 0.0],
83
+ [-0.01183, 1, 0.0, 1.0, 1.0, 0.0],
84
+ [0.17172, 1, 0.0, 1.0, 0.0, 0.0],
85
+ [-0.62801, 0, 0.0, 0.0, 1.0, 0.0]
86
+ ]
87
+
88
+ TABLE_27C = [ # page 179
89
+ # sum(A cos (B + C*t))
90
+ # A B C
91
+ [8.0, 15.45, 16_859.074],
92
+ [9.0, 227.73, 1_222.114],
93
+ [12.0, 320.81, 34_777.259],
94
+ [12.0, 287.11, 31_931.756],
95
+ [12.0, 95.39, 14_577.848],
96
+ [14.0, 199.76, 31_436.921],
97
+ [16.0, 198.04, 62_894.029],
98
+ [17.0, 288.79, 4_562.452],
99
+ [18.0, 155.12, 67_555.328],
100
+ [29.0, 60.93, 4_443.417],
101
+ [44.0, 325.15, 31_555.956],
102
+ [45.0, 247.54, 29_929.562],
103
+ [50.0, 21.02, 2_281.226],
104
+ [52.0, 297.17, 150.678],
105
+ [58.0, 119.81, 33_718.147],
106
+ [70.0, 243.58, 9_037.513],
107
+ [74.0, 296.72, 3_034.906],
108
+ [77.0, 222.54, 65_928.934],
109
+ [136.0, 171.52, 22_518.443],
110
+ [156.0, 73.14, 45_036.886],
111
+ [182.0, 27.85, 445_267.112],
112
+ [199.0, 342.08, 20.186],
113
+ [203.0, 337.23, 32_964.467],
114
+ [485.0, 324.96, 1_934.136]
115
+ ]
116
+
117
+ TABLE_22A = [
118
+ # D M M' F omega coef of sin
119
+ [2, -1, 0, 2, 2, -3, 0],
120
+ [0, 0, 3, 2, 2, -3, 0],
121
+ [2, -1, -1, 2, 2, -3, 0],
122
+ [0, -1, 1, 2, 2, -3, 0],
123
+ [0, 1, 1, 0, 0, -3, 0],
124
+ [-1, -1, 1, 0, 0, -3, 0],
125
+ [0, 0, -2, 2, 2, -3, 0],
126
+ [0, 0, 1, 2, 0, 3, 0],
127
+ [1, 0, 0, 0, 0, -4, 0],
128
+ [-2, 1, 0, 0, 0, -4, 0],
129
+ [-1, 0, 1, 0, 0, -4, 0],
130
+ [0, 0, 1, -2, 0, 4, 0],
131
+ [-2, 1, 0, 2, 1, 4, 0],
132
+ [-2, 0, 2, 0, 1, 4, 0],
133
+ [0, 0, 2, 2, 1, -5, 0],
134
+ [-2, 0, 0, 0, 1, -5, 0],
135
+ [-2, -1, 0, 2, 1, -5, 0],
136
+ [0, -1, 1, 0, 0, 5, 0],
137
+ [2, 0, 0, 0, 1, -6, 0],
138
+ [2, 0, -2, 0, 1, -6, 0],
139
+ [-2, 0, 1, 2, 1, 6, 0],
140
+ [-2, 0, 2, 2, 2, 6, 0],
141
+ [2, 0, 1, 0, 0, 6, 0],
142
+ [2, 0, 0, 2, 1, -7, 0],
143
+ [0, -1, 0, 2, 2, -7, 0],
144
+ [-2, 1, 1, 0, 0, -7, 0],
145
+ [0, 1, 0, 2, 2, 7, 0],
146
+ [2, 0, 1, 2, 2, -8, 0],
147
+ [2, 0, -1, 2, 1, -10, 0],
148
+ [0, 0, 2, -2, 0, 11, 0],
149
+ [0, -1, 0, 0, 1, -12, 0],
150
+ [-2, 0, 1, 0, 1, -13, 0],
151
+ [0, 1, 0, 0, 1, -15, 0],
152
+ [-2, 2, 0, 2, 2, -16, 0.1],
153
+ [2, 0, -1, 0, 1, 16, 0],
154
+ [0, 2, 0, 0, 0, 17, -0.1],
155
+ [0, 0, -1, 2, 1, 21, 0],
156
+ [-2, 0, 0, 2, 0, -22, 0],
157
+ [0, 0, 0, 2, 0, 26, 0],
158
+ [-2, 0, 1, 2, 2, 29, 0],
159
+ [0, 0, 2, 0, 0, 29, 0],
160
+ [0, 0, 2, 2, 2, -31, 0],
161
+ [2, 0, 0, 2, 2, -38, 0],
162
+ [0, 0, -2, 2, 1, 46, 0],
163
+ [-2, 0, 2, 0, 0, 48, 0],
164
+ [0, 0, 1, 2, 1, -51, 0],
165
+ [0, 0, -1, 0, 1, -58, -0.1],
166
+ [2, 0, -1, 2, 2, -59, 0],
167
+ [0, 0, 1, 0, 1, 63, 0.1],
168
+ [2, 0, 0, 0, 0, 63, 0],
169
+ [0, 0, -1, 2, 2, 123, 0],
170
+ [-2, 0, 0, 2, 1, 129, 0.1],
171
+ [-2, 0, 1, 0, 0, -158, 0],
172
+ [-2, -1, 0, 2, 2, 217, -0.5],
173
+ [0, 0, 1, 2, 2, -301, 0],
174
+ [0, 0, 0, 2, 1, -386, -0.4],
175
+ [-2, 1, 0, 2, 2, -517, 1.2],
176
+ [0, 0, 1, 0, 0, 712, 0.1],
177
+ [0, 1, 0, 0, 0, 1426, -3.4],
178
+ [0, 0, 0, 0, 2, 2062, 0.2],
179
+ [0, 0, 0, 2, 2, -2274, -0.2],
180
+ [-2, 0, 0, 2, 2, -13187, -1.6],
181
+ [0, 0, 0, 0, 1, -171996, -174.2]
182
+ ]
183
+
184
+ EARTH_L0 = [
185
+ # A B C
186
+ [25.0, 3.16, 4_690.48],
187
+ [30.0, 2.74, 1_349.87],
188
+ [30.0, 0.44, 83_996.85],
189
+ [33.0, 0.59, 17_789.85],
190
+ [36.0, 1.78, 6_812.77],
191
+ [36.0, 1.71, 2_352.87],
192
+ [37.0, 2.57, 1_059.38],
193
+ [37.0, 6.04, 10_213.29],
194
+ [39.0, 6.17, 10_447.39],
195
+ [41.0, 2.40, 19_651.05],
196
+ [41.0, 5.37, 8_429.24],
197
+ [49.0, 0.49, 1_194.45],
198
+ [51.0, 0.28, 5_856.48],
199
+ [52.0, 1.33, 1_748.02],
200
+ [52.0, 0.19, 12_139.55],
201
+ [56.0, 3.47, 6_279.55],
202
+ [56.0, 4.39, 14_143.50],
203
+ [57.0, 2.78, 6_286.60],
204
+ [61.0, 1.82, 7_084.90],
205
+ [62.0, 3.98, 8_827.39],
206
+ [70.0, 0.83, 9_437.76],
207
+ [74.0, 4.68, 801.82],
208
+ [74.0, 3.50, 3_154.69],
209
+ [75.0, 1.76, 5_088.63],
210
+ [79.0, 3.04, 12_036.46],
211
+ [80.0, 1.81, 17_260.15],
212
+ [85.0, 3.67, 71_430.70],
213
+ [85.0, 1.30, 6_275.96],
214
+ [86.0, 5.98, 161_000.69],
215
+ [98.0, 0.68, 155.42],
216
+ [99.0, 6.21, 2_146.17],
217
+ [102.0, 4.267, 7.114],
218
+ [102.0, 0.976, 15_720.839],
219
+ [103.0, 0.636, 4_694.003],
220
+ [115.0, 0.645, 0.980],
221
+ [126.0, 1.083, 20.775],
222
+ [132.0, 3.411, 2_942.463],
223
+ [156.0, 0.833, 213.299],
224
+ [202.0, 2.458, 6_069.777],
225
+ [205.0, 1.869, 5_573.143],
226
+ [206.0, 4.806, 2_544.314],
227
+ [243.0, 0.345, 5_486.778],
228
+ [271.0, 0.315, 10_977.079],
229
+ [284.0, 1.899, 796.298],
230
+ [317.0, 5.849, 11_790.629],
231
+ [357.0, 2.920, 0.067],
232
+ [492.0, 4.205, 775.523],
233
+ [505.0, 4.583, 18_849.228],
234
+ [753.0, 2.533, 5_507.553],
235
+ [780.0, 1.179, 5_223.694],
236
+ [857.0, 3.508, 398.149],
237
+ [902.0, 2.045, 26.298],
238
+ [990.0, 5.233, 5_884.927],
239
+ [1_199.0, 1.109_6, 1_577.343_5],
240
+ [1_273.0, 2.037_1, 529.691_0],
241
+ [1_324.0, 0.742_5, 11_506.769_8],
242
+ [2_343.0, 6.135_2, 3_930.209_7],
243
+ [2_676.0, 4.418_1, 7_860.419_4],
244
+ [3_136.0, 3.627_7, 77_713.771_5],
245
+ [3_418.0, 2.828_9, 3.523_1],
246
+ [3_497.0, 2.744_1, 5_753.384_9],
247
+ [34_894.0, 4.626_10, 12_566.151_70],
248
+ [3_341_656.0, 4.669_256_8, 6_283.075_850_0],
249
+ [175_347_046.0, 0.0, 0.0]
250
+ ]
251
+
252
+ EARTH_L1 = [
253
+ [6.0, 4.67, 4_690.48],
254
+ [6.0, 2.65, 9_437.76],
255
+ [8.0, 5.30, 2_352.87],
256
+ [9.0, 5.64, 951.72],
257
+ [9.0, 2.70, 242.73],
258
+ [10.0, 4.24, 1_349.87],
259
+ [10.0, 1.30, 6_286.60],
260
+ [11.0, 0.77, 553.57],
261
+ [12.0, 2.08, 4_694.00],
262
+ [12.0, 5.27, 1_194.45],
263
+ [12.0, 3.26, 5_088.63],
264
+ [12.0, 2.83, 1_748.02],
265
+ [15.0, 1.21, 10_977.08],
266
+ [16.0, 1.43, 2_146.17],
267
+ [16.0, 0.03, 2_544.31],
268
+ [17.0, 2.99, 6_275.96],
269
+ [19.0, 4.97, 213.30],
270
+ [19.0, 1.85, 5_486.78],
271
+ [21.0, 5.34, 0.98],
272
+ [29.0, 2.65, 7.11],
273
+ [36.0, 0.47, 775.52],
274
+ [45.0, 0.40, 796.30],
275
+ [56.0, 2.17, 155.42],
276
+ [59.0, 2.89, 5_223.69],
277
+ [67.0, 4.41, 5_507.55],
278
+ [68.0, 1.87, 398.15],
279
+ [72.0, 1.14, 529.69],
280
+ [93.0, 2.59, 18_849.23],
281
+ [109.0, 2.966, 1_577.344],
282
+ [119.0, 5.796, 26.298],
283
+ [425.0, 1.590, 3.523],
284
+ [4_303.0, 2.635_1, 12_566.151_7],
285
+ [206_059.0, 2.678_235, 6_283.075_850],
286
+ [628_331_966_747.0, 0.0, 0.0]
287
+ ]
288
+
289
+ EARTH_L2 = [
290
+ [2.0, 3.75, 0.98],
291
+ [2.0, 4.38, 5_233.69],
292
+ [3.0, 2.28, 553.57],
293
+ [3.0, 0.31, 398.15],
294
+ [3.0, 6.12, 529.69],
295
+ [3.0, 1.19, 242.73],
296
+ [3.0, 6.05, 5_507.55],
297
+ [3.0, 5.14, 796.30],
298
+ [4.0, 3.44, 5_573.14],
299
+ [4.0, 1.03, 7.11],
300
+ [5.0, 4.66, 1_577.34],
301
+ [7.0, 0.83, 775.52],
302
+ [9.0, 2.06, 77_713.77],
303
+ [10.0, 0.76, 18_849.23],
304
+ [16.0, 3.68, 155.42],
305
+ [16.0, 5.19, 26.30],
306
+ [27.0, 0.05, 3.52],
307
+ [309.0, 0.867, 12_566.152],
308
+ [8_720.0, 1.072_1, 6_283.075_8],
309
+ [52_919.0, 0.0, 0.0]
310
+ ]
311
+
312
+ EARTH_L3 = [
313
+ [1.0, 5.97, 242.73],
314
+ [1.0, 5.30, 18_849.23],
315
+ [1.0, 4.72, 3.52],
316
+ [3.0, 5.20, 155.42],
317
+ [17.0, 5.49, 12_566.15],
318
+ [35.0, 0.0, 0.0],
319
+ [289.0, 5.844, 6_283.076]
320
+ ]
321
+
322
+ EARTH_L4 = [
323
+ [1.0, 3.84, 12_566.15],
324
+ [8.0, 4.13, 6_283.08],
325
+ [114.0, 3.142, 0.0]
326
+ ]
327
+
328
+ EARTH_L5 = [
329
+ [1.0, 3.14, 0.0]
330
+ ]
331
+
332
+ EARTH_R0 = [
333
+ [26, 4.59, 10_447.39],
334
+ [28, 1.90, 6_279.55],
335
+ [28, 1.21, 6_286.60],
336
+ [32, 1.78, 398.15],
337
+ [32, 0.18, 5_088.63],
338
+ [33, 0.24, 7_084.90],
339
+ [35, 1.84, 2_942.46],
340
+ [36, 1.67, 12_036.46],
341
+ [37, 4.90, 12_139.55],
342
+ [37, 0.83, 19_651.05],
343
+ [38, 2.39, 8_827.39],
344
+ [39, 5.36, 4_694.00],
345
+ [43, 6.01, 6_275.96],
346
+ [45, 5.54, 9_437.76],
347
+ [47, 2.58, 775.52],
348
+ [49, 3.25, 2_544.31],
349
+ [56, 5.24, 71_430.70],
350
+ [57, 2.01, 83_996.85],
351
+ [63, 0.92, 529.69],
352
+ [65, 0.27, 17_260.15],
353
+ [86, 1.27, 161_000.69],
354
+ [86, 5.69, 15_720.84],
355
+ [98, 0.89, 6_069.78],
356
+ [110, 5.055, 5_486.778],
357
+ [175, 3.012, 18_849.228],
358
+ [186, 5.022, 10_977.079],
359
+ [212, 5.847, 1_577.344],
360
+ [243, 4.273, 11_790.629],
361
+ [307, 0.299, 5_573.143],
362
+ [329, 5.900, 5_223.694],
363
+ [346, 0.964, 5_507.553],
364
+ [472, 3.661, 5_884.927],
365
+ [542, 4.564, 3_930.210],
366
+ [925, 5.453, 11_506.770],
367
+ [1_576, 2.846_9, 7_860.419_4],
368
+ [1_628, 1.173_9, 5_753.384_9],
369
+ [3_084, 5.198_5, 77_713.771_5],
370
+ [13_956, 3.055_25, 12_566.151_70],
371
+ [1_670_700, 3.098_463_5, 6_283.075_850_0],
372
+ [100_013_989, 0, 0]
373
+ ]
374
+
375
+ EARTH_R1 = [
376
+ [9, 0.27, 5_486.78],
377
+ [9, 1.42, 6_275.96],
378
+ [10, 5.91, 10_977.08],
379
+ [18, 1.42, 1_577.34],
380
+ [25, 1.32, 5_223.69],
381
+ [31, 2.84, 5_507.55],
382
+ [32, 1.02, 18_849.23],
383
+ [702, 3.142, 0],
384
+ [1_721, 1.064_4, 12_566.151_7],
385
+ [103_019, 1.107_490, 6_283.075_850]
386
+ ]
387
+
388
+ EARTH_R2 = [
389
+ [3, 5.47, 18_849.23],
390
+ [6, 1.87, 5_573.14],
391
+ [9, 3.63, 77_713.77],
392
+ [12, 3.14, 0],
393
+ [124, 5.579, 12_566.152],
394
+ [4_359, 5.784_6, 6_283.075_8]
395
+ ]
396
+
397
+ EARTH_R3 = [
398
+ [7, 3.92, 12_566.15],
399
+ [145, 4.273, 6_283.076]
400
+ ]
401
+
402
+ EARTH_R4 = [
403
+ [4, 2.56, 6_283.08]
404
+ ]
405
+ end
406
+ end