equationoftime 4.0.0 → 4.1.1
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 +4 -4
- data/.gitignore +8 -3
- data/Gemfile.lock +48 -0
- data/README.md +22 -19
- data/Rakefile +14 -7
- data/equationoftime.gemspec +9 -6
- data/ext/ceot/ceot.c +52 -0
- data/ext/ceot/eot.c +79 -0
- data/ext/ceot/eot.h +8 -0
- data/ext/ceot/extconf.rb +5 -0
- data/lib/eot.rb +2 -1
- data/lib/eot/angles.rb +44 -43
- data/lib/eot/init.rb +13 -6
- data/lib/eot/version.rb +1 -1
- data/wiki.md +6 -7
- metadata +26 -255
- data/.settings/org.eclipse.ltk.core.refactoring.prefs +0 -2
- data/Makefile +0 -238
- data/analemma_data.yml +0 -2925
- data/examples/Equation_of_Time.jpg +0 -0
- data/examples/analemma_data_generator.rb +0 -53
- data/examples/celes_parts/.RUBYARCHDIR.time +0 -0
- data/examples/celes_parts/.cproject +0 -56
- data/examples/celes_parts/.project +0 -78
- data/examples/celes_parts/a2af.c +0 -120
- data/examples/celes_parts/a2tf.c +0 -116
- data/examples/celes_parts/af2a.c +0 -107
- data/examples/celes_parts/anp.c +0 -82
- data/examples/celes_parts/anpm.c +0 -82
- data/examples/celes_parts/bi00.c +0 -116
- data/examples/celes_parts/bp00.c +0 -173
- data/examples/celes_parts/bp06.c +0 -136
- data/examples/celes_parts/bpn2xy.c +0 -100
- data/examples/celes_parts/c2i00a.c +0 -139
- data/examples/celes_parts/c2i00b.c +0 -139
- data/examples/celes_parts/c2i06a.c +0 -136
- data/examples/celes_parts/c2ibpn.c +0 -142
- data/examples/celes_parts/c2ixy.c +0 -131
- data/examples/celes_parts/c2ixys.c +0 -123
- data/examples/celes_parts/c2s.c +0 -96
- data/examples/celes_parts/c2t00a.c +0 -154
- data/examples/celes_parts/c2t00b.c +0 -150
- data/examples/celes_parts/c2t06a.c +0 -152
- data/examples/celes_parts/c2tcio.c +0 -122
- data/examples/celes_parts/c2teqx.c +0 -122
- data/examples/celes_parts/c2tpe.c +0 -167
- data/examples/celes_parts/c2txy.c +0 -159
- data/examples/celes_parts/cal2jd.c +0 -139
- data/examples/celes_parts/celes_core.c +0 -2522
- data/examples/celes_parts/cp.c +0 -80
- data/examples/celes_parts/cpv.c +0 -82
- data/examples/celes_parts/cr.c +0 -83
- data/examples/celes_parts/d2dtf.c +0 -206
- data/examples/celes_parts/d2tf.c +0 -160
- data/examples/celes_parts/dat.c +0 -289
- data/examples/celes_parts/depend +0 -25
- data/examples/celes_parts/dtdb.c +0 -1213
- data/examples/celes_parts/dtf2d.c +0 -196
- data/examples/celes_parts/ee00.c +0 -128
- data/examples/celes_parts/ee00a.c +0 -135
- data/examples/celes_parts/ee00b.c +0 -141
- data/examples/celes_parts/ee06a.c +0 -122
- data/examples/celes_parts/eect00.c +0 -282
- data/examples/celes_parts/eform.c +0 -147
- data/examples/celes_parts/eo06a.c +0 -131
- data/examples/celes_parts/eors.c +0 -108
- data/examples/celes_parts/epb.c +0 -96
- data/examples/celes_parts/epb2jd.c +0 -91
- data/examples/celes_parts/epj.c +0 -93
- data/examples/celes_parts/epj2jd.c +0 -91
- data/examples/celes_parts/epv00.c +0 -2589
- data/examples/celes_parts/eqeq94.c +0 -131
- data/examples/celes_parts/era00.c +0 -136
- data/examples/celes_parts/extconf.rb +0 -4
- data/examples/celes_parts/fad03.c +0 -103
- data/examples/celes_parts/fae03.c +0 -102
- data/examples/celes_parts/faf03.c +0 -106
- data/examples/celes_parts/faju03.c +0 -102
- data/examples/celes_parts/fal03.c +0 -103
- data/examples/celes_parts/falp03.c +0 -103
- data/examples/celes_parts/fama03.c +0 -102
- data/examples/celes_parts/fame03.c +0 -102
- data/examples/celes_parts/fane03.c +0 -99
- data/examples/celes_parts/faom03.c +0 -104
- data/examples/celes_parts/fapa03.c +0 -103
- data/examples/celes_parts/fasa03.c +0 -102
- data/examples/celes_parts/faur03.c +0 -99
- data/examples/celes_parts/fave03.c +0 -102
- data/examples/celes_parts/fk52h.c +0 -143
- data/examples/celes_parts/fk5hip.c +0 -126
- data/examples/celes_parts/fk5hz.c +0 -160
- data/examples/celes_parts/fw2m.c +0 -134
- data/examples/celes_parts/fw2xy.c +0 -120
- data/examples/celes_parts/gc2gd.c +0 -134
- data/examples/celes_parts/gc2gde.c +0 -200
- data/examples/celes_parts/gd2gc.c +0 -134
- data/examples/celes_parts/gd2gce.c +0 -138
- data/examples/celes_parts/gmst00.c +0 -145
- data/examples/celes_parts/gmst06.c +0 -136
- data/examples/celes_parts/gmst82.c +0 -151
- data/examples/celes_parts/gst00a.c +0 -138
- data/examples/celes_parts/gst00b.c +0 -146
- data/examples/celes_parts/gst06.c +0 -140
- data/examples/celes_parts/gst06a.c +0 -131
- data/examples/celes_parts/gst94.c +0 -131
- data/examples/celes_parts/h2fk5.c +0 -148
- data/examples/celes_parts/hfk5z.c +0 -175
- data/examples/celes_parts/ir.c +0 -83
- data/examples/celes_parts/jd2cal.c +0 -155
- data/examples/celes_parts/jdcalf.c +0 -161
- data/examples/celes_parts/num00a.c +0 -121
- data/examples/celes_parts/num00b.c +0 -121
- data/examples/celes_parts/num06a.c +0 -125
- data/examples/celes_parts/numat.c +0 -109
- data/examples/celes_parts/nut00a.c +0 -2047
- data/examples/celes_parts/nut00b.c +0 -372
- data/examples/celes_parts/nut06a.c +0 -153
- data/examples/celes_parts/nut80.c +0 -325
- data/examples/celes_parts/nutm80.c +0 -117
- data/examples/celes_parts/obl06.c +0 -118
- data/examples/celes_parts/obl80.c +0 -118
- data/examples/celes_parts/p06e.c +0 -321
- data/examples/celes_parts/p2pv.c +0 -83
- data/examples/celes_parts/p2s.c +0 -91
- data/examples/celes_parts/pap.c +0 -139
- data/examples/celes_parts/pas.c +0 -96
- data/examples/celes_parts/pb06.c +0 -144
- data/examples/celes_parts/pdp.c +0 -84
- data/examples/celes_parts/pfw06.c +0 -165
- data/examples/celes_parts/plan94.c +0 -514
- data/examples/celes_parts/pm.c +0 -83
- data/examples/celes_parts/pmat00.c +0 -118
- data/examples/celes_parts/pmat06.c +0 -122
- data/examples/celes_parts/pmat76.c +0 -141
- data/examples/celes_parts/pmp.c +0 -85
- data/examples/celes_parts/pn.c +0 -109
- data/examples/celes_parts/pn00.c +0 -177
- data/examples/celes_parts/pn00a.c +0 -162
- data/examples/celes_parts/pn00b.c +0 -162
- data/examples/celes_parts/pn06.c +0 -187
- data/examples/celes_parts/pn06a.c +0 -152
- data/examples/celes_parts/pnm00a.c +0 -121
- data/examples/celes_parts/pnm00b.c +0 -121
- data/examples/celes_parts/pnm06a.c +0 -124
- data/examples/celes_parts/pnm80.c +0 -126
- data/examples/celes_parts/pom00.c +0 -115
- data/examples/celes_parts/ppp.c +0 -85
- data/examples/celes_parts/ppsp.c +0 -94
- data/examples/celes_parts/pr00.c +0 -142
- data/examples/celes_parts/prec76.c +0 -148
- data/examples/celes_parts/pv2p.c +0 -81
- data/examples/celes_parts/pv2s.c +0 -144
- data/examples/celes_parts/pvdpv.c +0 -102
- data/examples/celes_parts/pvm.c +0 -86
- data/examples/celes_parts/pvmpv.c +0 -87
- data/examples/celes_parts/pvppv.c +0 -87
- data/examples/celes_parts/pvstar.c +0 -207
- data/examples/celes_parts/pvu.c +0 -93
- data/examples/celes_parts/pvup.c +0 -88
- data/examples/celes_parts/pvxpv.c +0 -107
- data/examples/celes_parts/pxp.c +0 -94
- data/examples/celes_parts/rm2v.c +0 -111
- data/examples/celes_parts/rv2m.c +0 -118
- data/examples/celes_parts/rx.c +0 -110
- data/examples/celes_parts/rxp.c +0 -99
- data/examples/celes_parts/rxpv.c +0 -86
- data/examples/celes_parts/rxr.c +0 -99
- data/examples/celes_parts/ry.c +0 -110
- data/examples/celes_parts/rz.c +0 -110
- data/examples/celes_parts/s00.c +0 -371
- data/examples/celes_parts/s00a.c +0 -143
- data/examples/celes_parts/s00b.c +0 -143
- data/examples/celes_parts/s06.c +0 -368
- data/examples/celes_parts/s06a.c +0 -145
- data/examples/celes_parts/s2c.c +0 -85
- data/examples/celes_parts/s2p.c +0 -88
- data/examples/celes_parts/s2pv.c +0 -103
- data/examples/celes_parts/s2xpv.c +0 -87
- data/examples/celes_parts/sepp.c +0 -105
- data/examples/celes_parts/seps.c +0 -93
- data/examples/celes_parts/sofa.h +0 -379
- data/examples/celes_parts/sofam.h +0 -155
- data/examples/celes_parts/sp00.c +0 -118
- data/examples/celes_parts/starpm.c +0 -205
- data/examples/celes_parts/starpv.c +0 -264
- data/examples/celes_parts/sxp.c +0 -84
- data/examples/celes_parts/sxpv.c +0 -85
- data/examples/celes_parts/taitt.c +0 -110
- data/examples/celes_parts/taiut1.c +0 -112
- data/examples/celes_parts/taiutc.c +0 -182
- data/examples/celes_parts/tcbtdb.c +0 -132
- data/examples/celes_parts/tcgtt.c +0 -109
- data/examples/celes_parts/tdbtcb.c +0 -137
- data/examples/celes_parts/tdbtt.c +0 -122
- data/examples/celes_parts/test_celes.rb +0 -48
- data/examples/celes_parts/tf2a.c +0 -107
- data/examples/celes_parts/tf2d.c +0 -107
- data/examples/celes_parts/tr.c +0 -93
- data/examples/celes_parts/trxp.c +0 -93
- data/examples/celes_parts/trxpv.c +0 -93
- data/examples/celes_parts/tttai.c +0 -110
- data/examples/celes_parts/tttcg.c +0 -112
- data/examples/celes_parts/tttdb.c +0 -121
- data/examples/celes_parts/ttut1.c +0 -110
- data/examples/celes_parts/ut1tai.c +0 -111
- data/examples/celes_parts/ut1tt.c +0 -110
- data/examples/celes_parts/ut1utc.c +0 -193
- data/examples/celes_parts/utctai.c +0 -163
- data/examples/celes_parts/utcut1.c +0 -151
- data/examples/celes_parts/xy06.c +0 -2758
- data/examples/celes_parts/xys00a.c +0 -133
- data/examples/celes_parts/xys00b.c +0 -133
- data/examples/celes_parts/xys06a.c +0 -133
- data/examples/celes_parts/zp.c +0 -77
- data/examples/celes_parts/zpv.c +0 -79
- data/examples/celes_parts/zr.c +0 -83
- data/examples/check_date_type.rb +0 -55
- data/examples/compare_geoc_long_ra.rb +0 -39
- data/examples/data_table_for_astro_dog.rb +0 -40
- data/examples/earth_rotation.rb +0 -38
- data/examples/eot.c +0 -15
- data/examples/eot.h +0 -2
- data/examples/eot_methods_list.rb +0 -43
- data/examples/eot_plot.r +0 -57
- data/examples/eot_suntimes.rb +0 -144
- data/examples/equation_of_time.py +0 -186
- data/examples/extconf.rb +0 -2
- data/examples/figure_1.jpg +0 -0
- data/examples/file_converter.rb +0 -31
- data/examples/from_readme.rb +0 -10
- data/examples/geo_locator.rb +0 -12
- data/examples/getjd.rb +0 -45
- data/examples/gmst_gast_non_sofa.rb +0 -404
- data/examples/input_suntimes.rb +0 -21
- data/examples/julian_day_formula.rb +0 -29
- data/examples/julian_day_formula.txt +0 -12
- data/examples/my_time_conversion.rb +0 -21
- data/examples/nutation_series.txt +0 -678
- data/examples/nutation_series.yaml +0 -14239
- data/examples/nutation_table5_3a.txt +0 -682
- data/examples/nutation_table5_3a.yaml +0 -9532
- data/examples/ptime.rb +0 -162
- data/examples/rbeot.c +0 -24
- data/examples/suntimes.rb +0 -28
- data/examples/suntimes_test.rb +0 -47
- data/examples/test_eot.rb +0 -17
- data/examples/test_poly_eval.rb +0 -27
- data/examples/time_scales.rb +0 -26
- data/examples/times_year.rb +0 -50
- data/examples/usage_example.rb +0 -23
- data/examples/use_angles.rb +0 -219
- data/rise_set_data.yml +0 -1461
- data/tests/minitest/aliased_angles_spec.rb +0 -241
- data/tests/minitest/aliased_displays_spec.rb +0 -108
- data/tests/minitest/aliased_utilities_spec.rb +0 -38
- data/tests/minitest/angles_spec.rb +0 -266
- data/tests/minitest/constants_spec.rb +0 -21
- data/tests/minitest/delta_epsilon_spec.rb +0 -32
- data/tests/minitest/displays_spec.rb +0 -113
- data/tests/minitest/geo_spec.rb +0 -40
- data/tests/minitest/init_spec.rb +0 -46
- data/tests/minitest/nutation_spec.rb +0 -39
- data/tests/minitest/times_spec.rb +0 -139
- data/tests/minitest/utilities_spec.rb +0 -37
- data/tests/spec_config.rb +0 -3
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
# aliased_angles_spec.rb
|
|
2
|
-
#
|
|
3
|
-
# comment out next two lines and uncomment below for rpec tests.
|
|
4
|
-
gem 'minitest'
|
|
5
|
-
require 'minitest/autorun'
|
|
6
|
-
# require_relative '../spec_config'
|
|
7
|
-
|
|
8
|
-
lib = File.expand_path('../../../lib', __FILE__)
|
|
9
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
10
|
-
require 'eot'
|
|
11
|
-
|
|
12
|
-
Eot_aliased_angles = Eot.new()
|
|
13
|
-
|
|
14
|
-
describe 'tests ajd of 2456885.0' do
|
|
15
|
-
|
|
16
|
-
before(:each) do
|
|
17
|
-
Eot_aliased_angles.ajd = 2456885.0
|
|
18
|
-
ajd = Eot_aliased_angles.ajd
|
|
19
|
-
# somtimes need date to check values somewhere else
|
|
20
|
-
Eot_aliased_angles.date = Eot_aliased_angles.ajd_to_datetime(ajd)
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
it 'expected 2456885.0 for Eot_aliased_angles.ajd'do
|
|
24
|
-
assert_equal 2456885.0, Eot_aliased_angles.ajd
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
it 'expected "2014-08-15T12:00:00+00:00" for Eot_aliased_angles.date'.to_s do
|
|
28
|
-
assert_equal "2014-08-15T12:00:00+00:00", Eot_aliased_angles.date.to_s
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
it 'expected 220.63461047270653 for Eot_aliased_angles.ma'do
|
|
32
|
-
assert_equal 220.63461047270653, Eot_aliased_angles.ma * Eot::R2D
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
it 'expected 142.59259890360846 returned by Eot_aliased_angles.apparent_longitude()? ' do
|
|
36
|
-
assert_equal 142.59259890360846, Eot_aliased_angles.apparent_longitude() * Eot::R2D
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
it 'expected -0.7943361570447087 returned by Eot_aliased_angles.cosine_apparent_longitude()? ' do
|
|
40
|
-
assert_equal -0.7943361570447087, Eot_aliased_angles.cosine_apparent_longitude()
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
it 'expected -0.7943772759574979 returned by Eot_aliased_angles.cosine_true_longitude()? ' do
|
|
44
|
-
assert_equal -0.7943772759574979, Eot_aliased_angles.cosine_true_longitude()
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
it 'expected 0.9175115346811911 returned by Eot_aliased_angles.cosine_true_obliquity()? ' do
|
|
48
|
-
assert_equal 0.9175115346811911, Eot_aliased_angles.cosine_true_obliquity()
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
it 'expected 13.98097819689927 returned by Eot_aliased_angles.declination()? ' do
|
|
52
|
-
assert_equal 13.98097819689927, Eot_aliased_angles.declination() * Eot::R2D
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
it 'expected -2.3470147361251383 returned by Eot_aliased_angles.delta_t_ecliptic()? ' do
|
|
56
|
-
assert_equal -2.3470147361251383, Eot_aliased_angles.delta_t_ecliptic() * Eot::R2D
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
it 'expected 1.2268888346559275 returned by Eot_aliased_angles.delta_t_elliptic()? ' do
|
|
60
|
-
assert_equal 1.2268888346559275, Eot_aliased_angles.delta_t_elliptic() * Eot::R2D
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
it 'expected 0.016702468499021204 returned by Eot_aliased_angles.eccentricity_earth_orbit()? ' do
|
|
64
|
-
assert_equal 0.016702468499021204, Eot_aliased_angles.eccentricity_earth_orbit()
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
it 'expected -1.2268888346559395 returned by Eot_aliased_angles.equation_of_center()? ' do
|
|
68
|
-
assert_equal -1.2268888346559395, Eot_aliased_angles.equation_of_center() * Eot::R2D
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
it 'expected 143.82336613827107 returned by Eot_aliased_angles.geometric_mean_longitude()? ' do
|
|
72
|
-
assert_equal 143.82336613827107, Eot_aliased_angles.geometric_mean_longitude() * Eot::R2D
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
it 'expected 109.68262604883732 returned by Eot_aliased_angles.horizon_angle()? ' do
|
|
76
|
-
assert_equal 109.68262604883732, Eot_aliased_angles.horizon_angle() * Eot::R2D
|
|
77
|
-
end
|
|
78
|
-
|
|
79
|
-
it 'expected 220.63461047270653 returned by Eot_aliased_angles.mean_anomaly()? ' do
|
|
80
|
-
assert_equal 220.63461047270653, Eot_aliased_angles.mean_anomaly() * Eot::R2D
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
it 'expected 143.81755546193716 returned by Eot_aliased_angles.mean_longitude_aries()? ' do
|
|
84
|
-
assert_equal 143.81755546193716, Eot_aliased_angles.mean_longitude_aries() * Eot::R2D
|
|
85
|
-
end
|
|
86
|
-
|
|
87
|
-
it 'expected 23.437377335837343 returned by Eot_aliased_angles.mean_obliquity()? ' do
|
|
88
|
-
assert_equal 23.437377335837343, Eot_aliased_angles.mean_obliquity() * Eot::R2D
|
|
89
|
-
end
|
|
90
|
-
|
|
91
|
-
it 'expected 23.437377335837343 returned by Eot_aliased_angles.mean_obliquity_of_ecliptic()? ' do
|
|
92
|
-
assert_equal 23.437377335837343, Eot_aliased_angles.mean_obliquity_of_ecliptic() * Eot::R2D
|
|
93
|
-
end
|
|
94
|
-
|
|
95
|
-
it 'expected 23.43504551637491 returned by Eot_aliased_angles.obliquity_correction()? ' do
|
|
96
|
-
assert_equal 23.43504551637491, Eot_aliased_angles.obliquity_correction() * Eot::R2D
|
|
97
|
-
end
|
|
98
|
-
|
|
99
|
-
it 'expected 144.94349203974028 returned by Eot_aliased_angles.right_ascension()? ' do
|
|
100
|
-
assert_equal 144.94349203974028, Eot_aliased_angles.right_ascension() * Eot::R2D
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
it 'expected 0.6074784519729435 returned by Eot_aliased_angles.sine_apparent_longitude()? ' do
|
|
104
|
-
assert_equal 0.6074784519729435, Eot_aliased_angles.sine_apparent_longitude()
|
|
105
|
-
end
|
|
106
|
-
|
|
107
|
-
it 'expected 0.6074246812917181 returned by Eot_aliased_angles.sine_true_longitude()? ' do
|
|
108
|
-
assert_equal 0.6074246812917181, Eot_aliased_angles.sine_true_longitude()
|
|
109
|
-
end
|
|
110
|
-
|
|
111
|
-
it 'expected 219.40772163805062 returned by Eot_aliased_angles.true_anomaly()? ' do
|
|
112
|
-
assert_equal 219.40772163805062, Eot_aliased_angles.true_anomaly() * Eot::R2D
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
it 'expected 142.59647730361513 returned by Eot_aliased_angles.true_longitude()? ' do
|
|
116
|
-
assert_equal 142.59647730361513, Eot_aliased_angles.true_longitude() * Eot::R2D
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
it 'expected 143.81952716284977 returned by Eot_aliased_angles.true_longitude_aries()? ' do
|
|
120
|
-
assert_equal 143.81952716284977, Eot_aliased_angles.true_longitude_aries() * Eot::R2D
|
|
121
|
-
end
|
|
122
|
-
|
|
123
|
-
it 'expected 23.43504551637491 returned by Eot_aliased_angles.true_obliquity()? ' do
|
|
124
|
-
assert_equal 23.43504551637491, Eot_aliased_angles.true_obliquity() * Eot::R2D
|
|
125
|
-
end
|
|
126
|
-
end
|
|
127
|
-
|
|
128
|
-
describe 'tests ajd of 2455055.5' do
|
|
129
|
-
|
|
130
|
-
before(:each) do
|
|
131
|
-
ajd = 2455055.0
|
|
132
|
-
Eot_aliased_angles.ajd = ajd
|
|
133
|
-
# check date for this ajd when needed.
|
|
134
|
-
Eot_aliased_angles.date = Eot_aliased_angles.ajd_to_datetime(ajd)
|
|
135
|
-
end
|
|
136
|
-
|
|
137
|
-
it 'expected 2455055.0, returned by Eot_aliased_angles.' do
|
|
138
|
-
assert_equal 2455055.0, Eot_aliased_angles.ajd
|
|
139
|
-
end
|
|
140
|
-
|
|
141
|
-
it 'expected "2009-08-11T12:00:00+00:00", returned by Eot_aliased_angles.date.to_s' do
|
|
142
|
-
assert_equal "2009-08-11T12:00:00+00:00", Eot_aliased_angles.date.to_s
|
|
143
|
-
end
|
|
144
|
-
|
|
145
|
-
it 'expected 216.98609672458667, returned by Eot_aliased_angles.ma' do
|
|
146
|
-
assert_equal 216.98609672458667, Eot_aliased_angles.ma * Eot::R2D
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
it 'expected 216.98609672458667 Eot_aliased_angles.ma returned by Eot_angles.mean_anomaly()' do
|
|
150
|
-
assert_equal 216.98609672458667, Eot_aliased_angles.mean_anomaly() * Eot::R2D
|
|
151
|
-
end
|
|
152
|
-
|
|
153
|
-
it 'expected 138.95453031577227 returned by Eot_aliased_angles.apparent_longitude()? ' do
|
|
154
|
-
assert_equal 138.95453031577227, Eot_aliased_angles.apparent_longitude() * Eot::R2D
|
|
155
|
-
end
|
|
156
|
-
|
|
157
|
-
it 'expected -0.7541886969974998 returned by Eot_aliased_angles.cosine_apparent_longitude()? ' do
|
|
158
|
-
assert_equal -0.7541886969974998, Eot_aliased_angles.cosine_apparent_longitude()
|
|
159
|
-
end
|
|
160
|
-
|
|
161
|
-
it 'expected -0.7542060769936675 returned by Eot_aliased_angles.cosine_true_longitude()? ' do
|
|
162
|
-
assert_equal -0.7542060769936675, Eot_aliased_angles.cosine_true_longitude()
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
it 'expected 0.9174818088112336 returned by Eot_aliased_angles.cosine_true_obliquity()? ' do
|
|
166
|
-
assert_equal 0.9174818088112336, Eot_aliased_angles.cosine_true_obliquity()
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
it 'expected 15.141505645852742 returned by Eot_aliased_angles.declination()? ' do
|
|
170
|
-
assert_equal 15.141505645852742, Eot_aliased_angles.declination() * Eot::R2D
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
it 'expected -2.4249052816675642 returned by Eot_aliased_angles.delta_t_ecliptic()? ' do
|
|
174
|
-
assert_equal -2.4249052816675642, Eot_aliased_angles.delta_t_ecliptic() * Eot::R2D
|
|
175
|
-
end
|
|
176
|
-
|
|
177
|
-
it 'expected 1.1326466587390922 returned by Eot_aliased_angles.delta_t_elliptic()? ' do
|
|
178
|
-
assert_equal 1.1326466587390922, Eot_aliased_angles.delta_t_elliptic() * Eot::R2D
|
|
179
|
-
end
|
|
180
|
-
|
|
181
|
-
it 'expected 0.016704576164208475 returned by Eot_aliased_angles.eccentricity_earth_orbit()? ' do
|
|
182
|
-
assert_equal 0.016704576164208475, Eot_aliased_angles.eccentricity_earth_orbit()
|
|
183
|
-
end
|
|
184
|
-
|
|
185
|
-
it 'expected -1.132646658739101 returned by Eot_aliased_angles.equation_of_center()? ' do
|
|
186
|
-
assert_equal -1.132646658739101, Eot_aliased_angles.equation_of_center() * Eot::R2D
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
it 'expected 140.08869346549056 returned by Eot_aliased_angles.geometric_mean_longitude()? ' do
|
|
190
|
-
assert_equal 140.08869346549056, Eot_aliased_angles.geometric_mean_longitude() * Eot::R2D
|
|
191
|
-
end
|
|
192
|
-
|
|
193
|
-
it 'expected 111.35205810460306 returned by Eot_aliased_angles.horizon_angle()? ' do
|
|
194
|
-
assert_equal 111.35205810460306, Eot_aliased_angles.horizon_angle() * Eot::R2D
|
|
195
|
-
end
|
|
196
|
-
|
|
197
|
-
it 'expected 216.98609672458667 returned by Eot_aliased_angles.mean_anomaly()? ' do
|
|
198
|
-
assert_equal 216.98609672458667, Eot_aliased_angles.mean_anomaly() * Eot::R2D
|
|
199
|
-
end
|
|
200
|
-
|
|
201
|
-
it 'expected 140.08287430391974 returned by Eot_aliased_angles.mean_longitude_aries()? ' do
|
|
202
|
-
assert_equal 140.08287430391974, Eot_aliased_angles.mean_longitude_aries() * Eot::R2D
|
|
203
|
-
end
|
|
204
|
-
|
|
205
|
-
it 'expected 23.43802918164109 returned by Eot_aliased_angles.mean_obliquity()? ' do
|
|
206
|
-
assert_equal 23.43802918164109, Eot_aliased_angles.mean_obliquity() * Eot::R2D
|
|
207
|
-
end
|
|
208
|
-
|
|
209
|
-
it 'expected 23.439327590332425 returned by Eot_aliased_angles.obliquity_correction()? ' do
|
|
210
|
-
assert_equal 23.439327590332425, Eot_aliased_angles.obliquity_correction() * Eot::R2D
|
|
211
|
-
end
|
|
212
|
-
|
|
213
|
-
it 'expected 141.38095208841904 returned by Eot_aliased_angles.right_ascension()? ' do
|
|
214
|
-
assert_equal 141.38095208841904, Eot_aliased_angles.right_ascension() * Eot::R2D
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
it 'expected 0.6566577566139103 returned by Eot_aliased_angles.sine_apparent_longitude()? ' do
|
|
218
|
-
assert_equal 0.6566577566139103, Eot_aliased_angles.sine_apparent_longitude()
|
|
219
|
-
end
|
|
220
|
-
|
|
221
|
-
it 'expected 0.6566377946979767 returned by Eot_aliased_angles.sine_true_longitude()? ' do
|
|
222
|
-
assert_equal 0.6566377946979767, Eot_aliased_angles.sine_true_longitude()
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
it 'expected 215.85345006584757 returned by Eot_aliased_angles.true_anomaly()? ' do
|
|
226
|
-
assert_equal 215.85345006584757, Eot_aliased_angles.true_anomaly() * Eot::R2D
|
|
227
|
-
end
|
|
228
|
-
|
|
229
|
-
it 'expected 138.9560468067515 returned by Eot_aliased_angles.true_longitude()? ' do
|
|
230
|
-
assert_equal 138.9560468067515, Eot_aliased_angles.true_longitude() * Eot::R2D
|
|
231
|
-
end
|
|
232
|
-
|
|
233
|
-
it 'expected 140.0868895077245 returned by Eot_aliased_angles.true_longitude_aries()? ' do
|
|
234
|
-
assert_equal 140.0868895077245, Eot_aliased_angles.true_longitude_aries() * Eot::R2D
|
|
235
|
-
end
|
|
236
|
-
|
|
237
|
-
it 'expected 23.439327590332425 returned by Eot_aliased_angles.true_obliquity()? ' do
|
|
238
|
-
assert_equal 23.439327590332425, Eot_aliased_angles.true_obliquity() * Eot::R2D
|
|
239
|
-
end
|
|
240
|
-
|
|
241
|
-
end
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
# aliased_displays_spec.rb
|
|
2
|
-
#
|
|
3
|
-
# comment out next two lines and uncomment below for rpec tests.
|
|
4
|
-
gem 'minitest'
|
|
5
|
-
require 'minitest/autorun'
|
|
6
|
-
# require_relative '../spec_config'
|
|
7
|
-
|
|
8
|
-
lib = File.expand_path('../../../lib', __FILE__)
|
|
9
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
10
|
-
require 'eot'
|
|
11
|
-
|
|
12
|
-
Eot_aliased_displays = Eot.new
|
|
13
|
-
|
|
14
|
-
describe 'Eot_aliased_displays using ajd of 2456885.0' do
|
|
15
|
-
|
|
16
|
-
before(:each) do
|
|
17
|
-
ajd = 2456885.0
|
|
18
|
-
Eot_aliased_displays.ajd = ajd
|
|
19
|
-
|
|
20
|
-
# check date for this ajd when needed.
|
|
21
|
-
Eot_aliased_displays.date = Eot_aliased_displays.ajd_to_datetime(ajd)
|
|
22
|
-
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
it 'expected 2456885.0 , returned by Eot_aliased_displays.' do
|
|
26
|
-
assert_equal 2456885.0, Eot_aliased_displays.ajd
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
it 'expected "2014-08-15T12:00:00+00:00", returned by Eot_aliased_displays.date.to_s' do
|
|
30
|
-
assert_equal "2014-08-15T12:00:00+00:00", Eot_aliased_displays.date.to_s
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
it 'expected 220.63461047270653, returned by Eot_aliased_displays.' do
|
|
34
|
-
assert_equal 220.63461047270653, Eot_aliased_displays.ma * Eot::R2D
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
it 'expected "+142:35:33.356" returned by Eot_aliased_displays.apparent_longitude_string()? ' do
|
|
38
|
-
assert_equal "+142:35:33.356", Eot_aliased_displays.apparent_longitude_string()
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
it 'expected "+013:58:51.521" returned by Eot_aliased_displays.declination_string()? ' do
|
|
42
|
-
assert_equal "+013:58:51.521", Eot_aliased_displays.declination_string()
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
it 'expected "-04m, 28.9s" returned by Eot_aliased_displays.display_equation_of_time()? ' do
|
|
46
|
-
assert_equal "-04m, 28.9s", Eot_aliased_displays.display_equation_of_time()
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
it 'expected "12:00:00.000" returned by Eot_aliased_displays.display_time_string()? ' do
|
|
50
|
-
assert_equal "12:00:00.000", Eot_aliased_displays.display_time_string()
|
|
51
|
-
assert_equal "12:00:00.000", Eot_aliased_displays.display_time_string(nil)
|
|
52
|
-
assert_equal "12:00:00.000", Eot_aliased_displays.display_time_string(0)
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
it 'expected "12:00:00.000" returned by Eot_aliased_displays.display_time_string(Eot_aliased_displays.date)? ' do
|
|
56
|
-
assert_equal "12:00:00.000", Eot_aliased_displays.display_time_string(Eot_aliased_displays.date)
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
it 'expected "2000-01-01" returned by Eot_aliased_displays.jd_to_date_string()? ' do
|
|
60
|
-
assert_equal "2000-01-01", Eot_aliased_displays.jd_to_date_string()
|
|
61
|
-
assert_equal "2000-01-01", Eot_aliased_displays.jd_to_date_string(nil)
|
|
62
|
-
assert_equal "2000-01-01", Eot_aliased_displays.jd_to_date_string(0)
|
|
63
|
-
end
|
|
64
|
-
|
|
65
|
-
it 'expected "2014-08-15" returned by Eot_aliased_displays.jd_to_date_string(Eot_aliased_displays.ajd)? ' do
|
|
66
|
-
assert_equal "2014-08-15", Eot_aliased_displays.jd_to_date_string(Eot_aliased_displays.ajd)
|
|
67
|
-
end
|
|
68
|
-
|
|
69
|
-
it 'expected "12:00:00" returned by Eot_aliased_displays.julian_period_day_fraction_to_time()? ' do
|
|
70
|
-
assert_equal "12:00:00", Eot_aliased_displays.julian_period_day_fraction_to_time()
|
|
71
|
-
assert_equal "12:00:00", Eot_aliased_displays.julian_period_day_fraction_to_time(nil)
|
|
72
|
-
assert_equal "12:00:00", Eot_aliased_displays.julian_period_day_fraction_to_time(0)
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
it 'expected "+220:38:04.597" returned by Eot_aliased_displays.mean_anomaly_string()? ' do
|
|
76
|
-
assert_equal "+220:38:04.597", Eot_aliased_displays.mean_anomaly_string()
|
|
77
|
-
end
|
|
78
|
-
|
|
79
|
-
it 'expected "+144:56:36.571" returned by Eot_aliased_displays.right_ascension_string()? ' do
|
|
80
|
-
assert_equal "+144:56:36.571", Eot_aliased_displays.right_ascension_string()
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
it 'expected "+219:24:27.797" returned by Eot_aliased_displays.true_anomaly_string()? ' do
|
|
84
|
-
assert_equal "+219:24:27.797", Eot_aliased_displays.true_anomaly_string()
|
|
85
|
-
end
|
|
86
|
-
|
|
87
|
-
it 'expected "+142:35:47.3184" returned by Eot_aliased_displays.true_longitude_string()? ' do
|
|
88
|
-
assert_equal "+142:35:47.318", Eot_aliased_displays.true_longitude_string()
|
|
89
|
-
end
|
|
90
|
-
|
|
91
|
-
it 'expected "+023:26:06.163" returned by Eot_aliased_displays.true_obliquity_string()? ' do
|
|
92
|
-
assert_equal "+023:26:06.163", Eot_aliased_displays.true_obliquity_string()
|
|
93
|
-
end
|
|
94
|
-
|
|
95
|
-
end
|
|
96
|
-
|
|
97
|
-
describe 'Eot aliased displays explicit values' do
|
|
98
|
-
|
|
99
|
-
it 'expected "16:40:40.800" returned by Eot_aliased_displays.display_time_string(16.6780)? ' do
|
|
100
|
-
assert_equal "16:40:40.800", Eot_aliased_displays.display_time_string(16.6780)
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
it 'expected "17:59:16.800" returned by Eot_aliased_displays.display_time_string(17988)? ' do
|
|
104
|
-
Eot_aliased_displays.date = Date.today.to_s
|
|
105
|
-
assert_equal "17:59:16.800", Eot_aliased_displays.display_time_string(17.988)
|
|
106
|
-
end
|
|
107
|
-
|
|
108
|
-
end
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# aliased_utilities_spec.rb
|
|
2
|
-
#
|
|
3
|
-
# comment out next two lines and uncomment below for rpec tests.
|
|
4
|
-
gem 'minitest'
|
|
5
|
-
require 'minitest/autorun'
|
|
6
|
-
# require_relative '../spec_config'
|
|
7
|
-
|
|
8
|
-
lib = File.expand_path('../../../lib', __FILE__)
|
|
9
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
10
|
-
require 'eot'
|
|
11
|
-
|
|
12
|
-
Eot_aliased_utilities = Eot.new
|
|
13
|
-
|
|
14
|
-
describe 'tests ajd of 2456885.0' do
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
before(:each) do
|
|
18
|
-
ajd = 2456885.0
|
|
19
|
-
Eot_aliased_utilities.ajd = ajd
|
|
20
|
-
# check date for this ajd when needed.
|
|
21
|
-
Eot_aliased_utilities.date = Eot_aliased_utilities.ajd_to_datetime(ajd)
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
it 'expected 2456885.0 for Eot_aliased_utilities.ajd'do
|
|
25
|
-
assert_equal 2456885.0, Eot_aliased_utilities.ajd
|
|
26
|
-
end
|
|
27
|
-
|
|
28
|
-
it 'expected 220.63461047270653 for Eot_aliased_utilities.ma'do
|
|
29
|
-
assert_equal 220.63461047270653, Eot_aliased_utilities.ma * Eot::R2D
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
it 'expected 0.0 returned by Eot_aliased_utilities.truncate() ' do
|
|
33
|
-
assert_equal 0.0, Eot_aliased_utilities.truncate()
|
|
34
|
-
assert_equal 0.0, Eot_aliased_utilities.truncate(nil)
|
|
35
|
-
assert_equal 0.0, Eot_aliased_utilities.truncate(0)
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
end
|
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
# angles_spec.rb
|
|
2
|
-
#
|
|
3
|
-
# comment out next two lines and uncomment below for rpec tests.
|
|
4
|
-
gem 'minitest'
|
|
5
|
-
require 'minitest/autorun'
|
|
6
|
-
# require_relative '../spec_config'
|
|
7
|
-
|
|
8
|
-
lib = File.expand_path('../../../lib', __FILE__)
|
|
9
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
10
|
-
require 'eot'
|
|
11
|
-
|
|
12
|
-
Eot_angles = Eot.new
|
|
13
|
-
|
|
14
|
-
describe 'Tests ajd of 2456885.0' do
|
|
15
|
-
|
|
16
|
-
before(:each) do
|
|
17
|
-
ajd = 2456885.0
|
|
18
|
-
Eot_angles.ajd = ajd
|
|
19
|
-
# check date for this ajd when needed.
|
|
20
|
-
Eot_angles.date = Eot_angles.ajd_to_datetime(ajd)
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
it 'expected 2456885.0 for Eot_angles.ajd'do
|
|
24
|
-
assert_equal 2456885.0, Eot_angles.ajd
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
it 'expected "2014-08-15T12:00:00+00:00" for Eot_angles.date'.to_s do
|
|
28
|
-
assert_equal "2014-08-15T12:00:00+00:00", Eot_angles.date.to_s
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
it 'expected 220.63461047270653 for Eot_angles.ma'do
|
|
32
|
-
assert_equal 220.63461047270653, Eot_angles.ma * Eot::R2D
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
it 'expected 142.59259890360846 from Eot_angles.al_Sun()? ' do
|
|
36
|
-
assert_equal 142.59259890360846, Eot_angles.al_Sun() * Eot::R2D
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
it 'expected -1.2268888346559395 from Eot_angles.centre()? ' do
|
|
40
|
-
assert_equal -1.2268888346559395, Eot_angles.center() * Eot::R2D
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
it 'expected -0.7943361570447087 from Eot_angles.cosine_al_Sun()? ' do
|
|
44
|
-
assert_equal -0.7943361570447087, Eot_angles.cosine_al_Sun()
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
it 'expected -0.7943772759574979 from Eot_angles.cosine_tl_Sun()? ' do
|
|
48
|
-
assert_equal -0.7943772759574979, Eot_angles.cosine_tl_Sun()
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
it 'expected 0.9175115346811911 from Eot_angles.cosine_to_Earth()? ' do
|
|
52
|
-
assert_equal 0.9175115346811911, Eot_angles.cosine_to_Earth()
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
it 'expected 13.98097819689927 from Eot_angles.dec_Sun()? ' do
|
|
56
|
-
assert_equal 13.98097819689927, Eot_angles.dec_Sun() * Eot::R2D
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
it 'expected -0.0023318194624360874 from Eot_angles.delta_epsilon()? ' do
|
|
60
|
-
assert_equal -0.0023318194624360874, Eot_angles.delta_epsilon() * Eot::R2D
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
it 'expected -2.3470147361251383 from Eot_angles.delta_oblique()? ' do
|
|
64
|
-
assert_equal -2.3470147361251383, Eot_angles.delta_oblique() * Eot::R2D
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
it 'expected 1.2268888346559275 from Eot_angles.delta_orbit()? ' do
|
|
68
|
-
assert_equal 1.2268888346559275, Eot_angles.delta_orbit() * Eot::R2D
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
it 'expected 0.0021493011786421477 from Eot_angles.delta_psi()? ' do
|
|
72
|
-
assert_equal 0.0021493011786421477, Eot_angles.delta_psi() * Eot::R2D
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
it 'expected 0.016702468499021204 from Eot_angles.eccentricity_Earth()? ' do
|
|
76
|
-
assert_equal 0.016702468499021204, Eot_angles.eccentricity_Earth()
|
|
77
|
-
end
|
|
78
|
-
|
|
79
|
-
it 'expected 0.0019720086229080497 from Eot_angles.eq_of_equinox()? ' do
|
|
80
|
-
assert_equal 0.0019720086229080497, Eot_angles.eq_of_equinox() * Eot::R2D
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
it 'expected -1.1201259014692109 from Eot_angles.eot()? ' do
|
|
84
|
-
assert_equal -1.1201259014692109, Eot_angles.eot() * Eot::R2D
|
|
85
|
-
end
|
|
86
|
-
|
|
87
|
-
it 'expected 143.82336613827107 from Eot_angles.gml_Sun()? ' do
|
|
88
|
-
assert_equal 143.82336613827107, Eot_angles.gml_Sun() * Eot::R2D
|
|
89
|
-
end
|
|
90
|
-
|
|
91
|
-
it 'expected 109.68262604883732 from Eot_angles.ha_Sun()? ' do
|
|
92
|
-
assert_equal 109.68262604883732, Eot_angles.ha_Sun() * Eot::R2D
|
|
93
|
-
end
|
|
94
|
-
|
|
95
|
-
it 'expected 220.63461047270653 from Eot_angles.ma_Sun()? ' do
|
|
96
|
-
assert_equal 220.63461047270653, Eot_angles.ma_Sun() * Eot::R2D
|
|
97
|
-
end
|
|
98
|
-
|
|
99
|
-
it 'expected 143.81755546193716 from Eot_angles.ml_Aries()? ' do
|
|
100
|
-
assert_equal 143.81755546193716, Eot_angles.ml_Aries() * Eot::R2D
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
it 'expected 23.437377335837343 from Eot_angles.mo_Earth()? ' do
|
|
104
|
-
assert_equal 23.437377335837343, Eot_angles.mo_Earth() * Eot::R2D
|
|
105
|
-
end
|
|
106
|
-
|
|
107
|
-
it 'expected -157.728505037307 from Eot_angles.omega()? ' do
|
|
108
|
-
assert_equal -157.728505037307, Eot_angles.omega() * Eot::R2D
|
|
109
|
-
end
|
|
110
|
-
|
|
111
|
-
it 'expected 144.94349203974028 from Eot_angles.ra_Sun()? ' do
|
|
112
|
-
assert_equal 144.94349203974028, Eot_angles.ra_Sun() * Eot::R2D
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
it 'expected 0.6074784519729435 from Eot_angles.sine_al_Sun()? ' do
|
|
116
|
-
assert_equal 0.6074784519729435, Eot_angles.sine_al_Sun()
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
it 'expected 0.6074246812917181 from Eot_angles.sine_tl_Sun()? ' do
|
|
120
|
-
assert_equal 0.6074246812917181, Eot_angles.sine_tl_Sun()
|
|
121
|
-
end
|
|
122
|
-
|
|
123
|
-
it 'expected 219.40772163805062 from Eot_angles.ta_Sun()? ' do
|
|
124
|
-
assert_equal 219.40772163805062, Eot_angles.ta_Sun() * Eot::R2D
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
it 'expected 143.81952716284977 from Eot_angles.tl_Aries()? ' do
|
|
128
|
-
assert_equal 143.81952716284977, Eot_angles.tl_Aries() * Eot::R2D
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
it 'expected 142.59647730361513 from Eot_angles.tl_Sun()? ' do
|
|
132
|
-
assert_equal 142.59647730361513, Eot_angles.tl_Sun() * Eot::R2D
|
|
133
|
-
end
|
|
134
|
-
|
|
135
|
-
it 'expected 23.43504551637491 from Eot_angles.to_Earth()? ' do
|
|
136
|
-
assert_equal 23.43504551637491, Eot_angles.to_Earth() * Eot::R2D
|
|
137
|
-
end
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
describe 'Tests ajd of 2455055.5 ' do
|
|
143
|
-
|
|
144
|
-
before(:each) do
|
|
145
|
-
ajd = 2455055.0
|
|
146
|
-
Eot_angles.ajd = ajd
|
|
147
|
-
# check date for this ajd when needed.
|
|
148
|
-
Eot_angles.date = Eot_angles.ajd_to_datetime(ajd)
|
|
149
|
-
end
|
|
150
|
-
|
|
151
|
-
it 'expected 2455055.0, from Eot_angles.' do
|
|
152
|
-
assert_equal 2455055.0, Eot_angles.ajd
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
it 'expected "2009-08-11T12:00:00+00:00", from Eot_angles.date.to_s' do
|
|
156
|
-
assert_equal "2009-08-11T12:00:00+00:00", Eot_angles.date.to_s
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
it 'expected 216.98609672458667, from Eot_angles.' do
|
|
160
|
-
assert_equal 216.98609672458667, Eot_angles.ma * Eot::R2D
|
|
161
|
-
end
|
|
162
|
-
|
|
163
|
-
it 'expected 138.95453031577227 from Eot_angles.al_Sun()? ' do
|
|
164
|
-
assert_equal 138.95453031577227, Eot_angles.al_Sun() * Eot::R2D
|
|
165
|
-
end
|
|
166
|
-
|
|
167
|
-
it 'expected -1.132646658739101 from Eot_angles.centre()? ' do
|
|
168
|
-
assert_equal -1.132646658739101, Eot_angles.center() * Eot::R2D
|
|
169
|
-
end
|
|
170
|
-
|
|
171
|
-
it 'expected -0.7541886969974998 from Eot_angles.cosine_al_Sun()? ' do
|
|
172
|
-
assert_equal -0.7541886969974998, Eot_angles.cosine_al_Sun()
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
it 'expected -0.7542060769936675 from Eot_angles.cosine_tl_Sun()? ' do
|
|
176
|
-
assert_equal -0.7542060769936675, Eot_angles.cosine_tl_Sun()
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
it 'expected 0.9174818088112336 from Eot_angles.cosine_to_Earth()? ' do
|
|
180
|
-
assert_equal 0.9174818088112336, Eot_angles.cosine_to_Earth()
|
|
181
|
-
end
|
|
182
|
-
|
|
183
|
-
it 'expected 15.141505645852742 from Eot_angles.dec_Sun()? ' do
|
|
184
|
-
assert_equal 15.141505645852742, Eot_angles.dec_Sun() * Eot::R2D
|
|
185
|
-
end
|
|
186
|
-
|
|
187
|
-
it 'expected 0.0012984086913317787 from Eot_angles.delta_epsilon()? ' do
|
|
188
|
-
assert_equal 0.0012984086913317787, Eot_angles.delta_epsilon() * Eot::R2D
|
|
189
|
-
end
|
|
190
|
-
|
|
191
|
-
it 'expected -2.4249052816675642 from Eot_angles.delta_oblique()? ' do
|
|
192
|
-
assert_equal -2.4249052816675642, Eot_angles.delta_oblique() * Eot::R2D
|
|
193
|
-
end
|
|
194
|
-
|
|
195
|
-
it 'expected 1.1326466587390922 from Eot_angles.delta_orbit()? ' do
|
|
196
|
-
assert_equal 1.1326466587390922, Eot_angles.delta_orbit() * Eot::R2D
|
|
197
|
-
end
|
|
198
|
-
|
|
199
|
-
it 'expected 0.0043770202752654004 from Eot_angles.delta_psi()? ' do
|
|
200
|
-
assert_equal 0.0043770202752654004, Eot_angles.delta_psi() * Eot::R2D
|
|
201
|
-
end
|
|
202
|
-
|
|
203
|
-
it 'expected 0.016704576164208475 from Eot_angles.eccentricity_Earth()? ' do
|
|
204
|
-
assert_equal 0.016704576164208475, Eot_angles.eccentricity_Earth()
|
|
205
|
-
end
|
|
206
|
-
|
|
207
|
-
it 'expected 0.004015836479353944 from Eot_angles.eq_of_equinox()? ' do
|
|
208
|
-
assert_equal 0.004015836479353944, Eot_angles.eq_of_equinox() * Eot::R2D
|
|
209
|
-
end
|
|
210
|
-
|
|
211
|
-
it 'expected -1.2922586229284718 from Eot_angles.eot()? ' do
|
|
212
|
-
assert_equal -1.2922586229284718, Eot_angles.eot() * Eot::R2D
|
|
213
|
-
end
|
|
214
|
-
|
|
215
|
-
it 'expected 140.08869346549056 from Eot_angles.gml_Sun()? ' do
|
|
216
|
-
assert_equal 140.08869346549056, Eot_angles.gml_Sun() * Eot::R2D
|
|
217
|
-
end
|
|
218
|
-
|
|
219
|
-
it 'expected 111.35205810460306 from Eot_angles.ha_Sun()? ' do
|
|
220
|
-
assert_equal 111.35205810460306, Eot_angles.ha_Sun() * Eot::R2D
|
|
221
|
-
end
|
|
222
|
-
|
|
223
|
-
it 'expected 216.98609672458667 from Eot_angles.ma_Sun()? ' do
|
|
224
|
-
assert_equal 216.98609672458667, Eot_angles.ma_Sun() * Eot::R2D
|
|
225
|
-
end
|
|
226
|
-
|
|
227
|
-
it 'expected 140.08287430391974 from Eot_angles.ml_Aries()? ' do
|
|
228
|
-
assert_equal 140.08287430391974, Eot_angles.ml_Aries() * Eot::R2D
|
|
229
|
-
end
|
|
230
|
-
|
|
231
|
-
it 'expected 23.43802918164109 from Eot_angles.mo_Earth()? ' do
|
|
232
|
-
assert_equal 23.43802918164109, Eot_angles.mo_Earth() * Eot::R2D
|
|
233
|
-
end
|
|
234
|
-
|
|
235
|
-
it 'expected -60.823140522846394 from Eot_angles.omega()? ' do
|
|
236
|
-
assert_equal -60.823140522846394, Eot_angles.omega() * Eot::R2D
|
|
237
|
-
end
|
|
238
|
-
|
|
239
|
-
it 'expected 141.38095208841904 from Eot_angles.ra_Sun()? ' do
|
|
240
|
-
assert_equal 141.38095208841904, Eot_angles.ra_Sun() * Eot::R2D
|
|
241
|
-
end
|
|
242
|
-
|
|
243
|
-
it 'expected 0.6566577566139103 from Eot_angles.sine_al_Sun()? ' do
|
|
244
|
-
assert_equal 0.6566577566139103, Eot_angles.sine_al_Sun()
|
|
245
|
-
end
|
|
246
|
-
|
|
247
|
-
it 'expected 0.6566377946979767 from Eot_angles.sine_tl_Sun()? ' do
|
|
248
|
-
assert_equal 0.6566377946979767, Eot_angles.sine_tl_Sun()
|
|
249
|
-
end
|
|
250
|
-
|
|
251
|
-
it 'expected 215.85345006584757 from Eot_angles.ta_Sun()? ' do
|
|
252
|
-
assert_equal 215.85345006584757, Eot_angles.ta_Sun() * Eot::R2D
|
|
253
|
-
end
|
|
254
|
-
|
|
255
|
-
it 'expected 140.0868895077245 from Eot_angles.tl_Aries()? ' do
|
|
256
|
-
assert_equal 140.0868895077245, Eot_angles.tl_Aries() * Eot::R2D
|
|
257
|
-
end
|
|
258
|
-
|
|
259
|
-
it 'expected 138.9560468067515 from Eot_angles.tl_Sun()? ' do
|
|
260
|
-
assert_equal 138.9560468067515, Eot_angles.tl_Sun() * Eot::R2D
|
|
261
|
-
end
|
|
262
|
-
|
|
263
|
-
it 'expected 23.439327590332425 from Eot_angles.to_Earth()? ' do
|
|
264
|
-
assert_equal 23.439327590332425, Eot_angles.to_Earth() * Eot::R2D
|
|
265
|
-
end
|
|
266
|
-
end
|