eph_bpn 0.1.5 → 0.1.6

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
2
  SHA1:
3
- metadata.gz: bf715ddae9988943e99bc8c6dbad0713c20d88e9
4
- data.tar.gz: 73dac6a43716386ccfc84ee11142998f11aa9ad2
3
+ metadata.gz: 5cbf47a5bddaeb1d68c3832f3aa216834f4f6f00
4
+ data.tar.gz: 2b64954cc3c5193876ce94545f8a29d1fdff049a
5
5
  SHA512:
6
- metadata.gz: 7ea7d232bbbde52baaeec659f5109a17137905c40283e75c84a841b4f6dd87491bc9b51198656959092c553b7e4db4ab1ecf8b825656c74c1d19131bc2395e9b
7
- data.tar.gz: 692d2287b43074a914834ab7f267a9b2e10516217a99cce99c69975e2f8f52b1e9f4d7e2791316a96f9878221ef69a83ce8a0cd14548c2e22c253da2a32f0643
6
+ metadata.gz: b7a6467de7cf24a23a48a932cce6285d91eaaae4dba5378b460297d9d0031ccc432ec86c4b030596fd779b34ff92df4f4eeb4e300c1fab9404881f0dd6093dc0
7
+ data.tar.gz: 5a3a71895bf698d421ab5af62b6d6a1a91466617a146395c75cbb763298c1ece2c121f8551a86a873d45c8e86678a90b0045fc6200102ec6f54d05a5420b59a4
@@ -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
- r = r_z(-dpsi)
228
- r = r_x(-deps, r)
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.reverse.each do |x|
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.reverse.each do |x|
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 +
@@ -1,3 +1,3 @@
1
1
  module EphBpn
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eph_bpn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - komasaru