mk_cal_jpl 0.1.1 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d8065593de430f0d8fe8b00401961e5a129a0e5e
4
- data.tar.gz: 512cc236da83dc3d21c56dc8d575353929f0bc1a
3
+ metadata.gz: 985c87d9a5b13ba30c1db4548a950d089cfea96e
4
+ data.tar.gz: 4dbdb7178f2e4aee366fcdf21ce27efb273be724
5
5
  SHA512:
6
- metadata.gz: 6308ecd13ee4ff571c63918dd98ba6d3fb4cee3586c120a558b43ab57e3769ff6fe33e81301f539abbd9f583a6561bb5de1afbe1da19f71740aee31de7457a54
7
- data.tar.gz: 0f6dea9752b09001b72efc207dc854f45421e62d7e1999020da2828ac422d658dd16cd142daabac321044390eb2530f70048a5eac477f6d6d1a10b2e669a9236
6
+ metadata.gz: 86f01efeaa76fad2e3fcd357aed6e7afe8aa27534d8dffd83bee5ed7859d9b02f1f532df4e7dc124d213ab432d4723245762cfe6b19aaec5c2708faa62efb93a
7
+ data.tar.gz: 86a1d1cf3c00c0ad6cb3f7b4a9e1b98b634d593996d0365a8b24b62d05df481b6b90b49a4153f146b0babb94ac727d6c3ebe25de5304a6aa0c9b8b5bef86a7ee
@@ -342,7 +342,7 @@ module MkCalJpl
342
342
  # @return: moonage
343
343
  #=========================================================================
344
344
  def compute_moonage(jd)
345
- return jd - compute_saku(jd - Const::JST_D)
345
+ return jd - compute_saku(jd)
346
346
  end
347
347
 
348
348
  #=========================================================================
@@ -569,11 +569,11 @@ module MkCalJpl
569
569
  delta_rm = norm_angle(delta_rm)
570
570
  end
571
571
  # 時刻引数の補正値 Δt
572
- delta_t1 = (delta_rm * 29.530589 / 360.0).truncate
573
- delta_t2 = delta_rm * 29.530589 / 360.0 - delta_t1
572
+ delta_t1 = (delta_rm * 29.530589 / 360.0).truncate
573
+ delta_t2 = delta_rm * 29.530589 / 360.0 - delta_t1
574
574
  # 時刻引数の補正
575
- tm1 = tm1 - delta_t1
576
- tm2 = tm2 - delta_t2
575
+ tm1 -= delta_t1
576
+ tm2 -= delta_t2
577
577
  if tm2 < 0
578
578
  tm2 += 1
579
579
  tm1 -= 1
@@ -584,7 +584,7 @@ module MkCalJpl
584
584
  tm2 = 0
585
585
  # 初期値を補正したにも関わらず、振動を続ける場合には初期値を答えとして
586
586
  # 返して強制的にループを抜け出して異常終了させる。
587
- elsif lc > 30 && (delta_t1+delta_t2).abs > (1.0 / 86400.0)
587
+ elsif lc > 30 && (delta_t1 + delta_t2).abs > (1.0 / 86400.0)
588
588
  tm1 = jd
589
589
  tm2 = 0
590
590
  break
@@ -593,7 +593,7 @@ module MkCalJpl
593
593
  end
594
594
  # 時刻引数を合成、DT ==> JST 変換を行い、戻り値とする
595
595
  # (補正時刻=0.0sec と仮定して計算)
596
- return tm2 + tm1 + 9 / 24.0
596
+ return tm2 + tm1 + Const::JST_D
597
597
  end
598
598
 
599
599
  #=========================================================================
@@ -1,3 +1,3 @@
1
1
  module MkCalJpl
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mk_cal_jpl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - komasaru
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-17 00:00:00.000000000 Z
11
+ date: 2017-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mk_apos
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  requirements: []
129
129
  rubyforge_project:
130
- rubygems_version: 2.6.6
130
+ rubygems_version: 2.6.8
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Calendar library including Japan's old-calendar, using JPL DE430.