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 +4 -4
- data/lib/mk_cal_jpl/compute.rb +7 -7
- data/lib/mk_cal_jpl/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 985c87d9a5b13ba30c1db4548a950d089cfea96e
|
4
|
+
data.tar.gz: 4dbdb7178f2e4aee366fcdf21ce27efb273be724
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86f01efeaa76fad2e3fcd357aed6e7afe8aa27534d8dffd83bee5ed7859d9b02f1f532df4e7dc124d213ab432d4723245762cfe6b19aaec5c2708faa62efb93a
|
7
|
+
data.tar.gz: 86a1d1cf3c00c0ad6cb3f7b4a9e1b98b634d593996d0365a8b24b62d05df481b6b90b49a4153f146b0babb94ac727d6c3ebe25de5304a6aa0c9b8b5bef86a7ee
|
data/lib/mk_cal_jpl/compute.rb
CHANGED
@@ -342,7 +342,7 @@ module MkCalJpl
|
|
342
342
|
# @return: moonage
|
343
343
|
#=========================================================================
|
344
344
|
def compute_moonage(jd)
|
345
|
-
return jd - compute_saku(jd
|
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
|
573
|
-
delta_t2
|
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
|
576
|
-
tm2
|
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 +
|
596
|
+
return tm2 + tm1 + Const::JST_D
|
597
597
|
end
|
598
598
|
|
599
599
|
#=========================================================================
|
data/lib/mk_cal_jpl/version.rb
CHANGED
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.
|
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:
|
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.
|
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.
|