eph_bpn 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eph_bpn/compute.rb +11 -4
- data/lib/eph_bpn/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5cbf47a5bddaeb1d68c3832f3aa216834f4f6f00
|
4
|
+
data.tar.gz: 2b64954cc3c5193876ce94545f8a29d1fdff049a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7a6467de7cf24a23a48a932cce6285d91eaaae4dba5378b460297d9d0031ccc432ec86c4b030596fd779b34ff92df4f4eeb4e300c1fab9404881f0dd6093dc0
|
7
|
+
data.tar.gz: 5a3a71895bf698d421ab5af62b6d6a1a91466617a146395c75cbb763298c1ece2c121f8551a86a873d45c8e86678a90b0045fc6200102ec6f54d05a5420b59a4
|
data/lib/eph_bpn/compute.rb
CHANGED
@@ -200,6 +200,7 @@ module EphBpn
|
|
200
200
|
( -0.000026452 + \
|
201
201
|
( -0.0000000148) \
|
202
202
|
* @jc) * @jc) * @jc) * @jc) * @jc) * Const::AS2R
|
203
|
+
p gamma, phi, psi
|
203
204
|
r = r_z(gamma)
|
204
205
|
r = r_x(phi, r)
|
205
206
|
r = r_z(-psi, r)
|
@@ -224,8 +225,10 @@ module EphBpn
|
|
224
225
|
dpsi, deps = dpsi_ls + dpsi_pl, deps_ls + deps_pl
|
225
226
|
dpsi += dpsi * (0.4697e-6 + fj2)
|
226
227
|
deps += deps * fj2
|
227
|
-
|
228
|
-
r = r_x(
|
228
|
+
p dpsi, deps
|
229
|
+
r = r_x(@eps)
|
230
|
+
r = r_z(-dpsi, r)
|
231
|
+
r = r_x(-@eps-deps, r)
|
229
232
|
return r
|
230
233
|
rescue => e
|
231
234
|
raise
|
@@ -246,7 +249,9 @@ module EphBpn
|
|
246
249
|
f = compute_f_iers2003(@jc)
|
247
250
|
d = compute_d_mhb2000(@jc)
|
248
251
|
om = compute_om_iers2003(@jc)
|
249
|
-
Const::NUT_LS.
|
252
|
+
Const::NUT_LS.map do |x|
|
253
|
+
x[0, 5] + x[5..-1].map { |y| y.to_s.sub(/\./, "").to_i }
|
254
|
+
end.reverse.each do |x|
|
250
255
|
arg = (x[0] * l + x[1] * lp + x[2] * f +
|
251
256
|
x[3] * d + x[4] * om) % Const::PI2
|
252
257
|
sarg, carg = Math.sin(arg), Math.cos(arg)
|
@@ -282,7 +287,9 @@ module EphBpn
|
|
282
287
|
lsa = compute_lsa_iers2003(@jc)
|
283
288
|
lur = compute_lur_iers2003(@jc)
|
284
289
|
lne = compute_lne_mhb2000(@jc)
|
285
|
-
Const::NUT_PL.
|
290
|
+
Const::NUT_PL.map do |x|
|
291
|
+
x[0, 14] + x[14..-1].map { |y| y.to_s.sub(/\./, "").to_i }
|
292
|
+
end.reverse.each do |x|
|
286
293
|
arg = (x[ 0] * l + x[ 2] * f + x[ 3] * d + x[ 4] * om +
|
287
294
|
x[ 5] * lme + x[ 6] * lve + x[ 7] * lea + x[ 8] * lma +
|
288
295
|
x[ 9] * lju + x[10] * lsa + x[11] * lur + x[12] * lne +
|
data/lib/eph_bpn/version.rb
CHANGED