astronoby 0.9.0 → 0.11.0
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/.ruby-version +1 -1
- data/CHANGELOG.md +235 -0
- data/README.md +19 -1
- data/UPGRADING.md +270 -0
- data/docs/README.md +105 -16
- data/docs/altitude_crossings.md +92 -0
- data/docs/angles.md +1 -0
- data/docs/configuration.md +28 -17
- data/docs/coordinates.md +72 -12
- data/docs/deep_sky_bodies.md +46 -1
- data/docs/ephem.md +5 -2
- data/docs/equinoxes_solstices_times.md +4 -3
- data/docs/glossary.md +99 -1
- data/docs/iers.md +40 -0
- data/docs/instant.md +33 -21
- data/docs/lunar_eclipses.md +208 -0
- data/docs/lunar_observation.md +87 -0
- data/docs/moon_phases.md +4 -1
- data/docs/observer.md +20 -6
- data/docs/planetary_phenomena.md +78 -0
- data/docs/reference_frames.md +192 -34
- data/docs/rise_transit_set_times.md +6 -4
- data/docs/solar_system_bodies.md +26 -4
- data/docs/twilight_times.md +43 -24
- data/lib/astronoby/angle.rb +63 -2
- data/lib/astronoby/angles/dms.rb +18 -1
- data/lib/astronoby/angles/hms.rb +14 -1
- data/lib/astronoby/angular_velocity.rb +21 -0
- data/lib/astronoby/bodies/deep_sky_object.rb +6 -1
- data/lib/astronoby/bodies/deep_sky_object_position.rb +35 -38
- data/lib/astronoby/bodies/earth.rb +7 -44
- data/lib/astronoby/bodies/jupiter.rb +10 -0
- data/lib/astronoby/bodies/mars.rb +10 -0
- data/lib/astronoby/bodies/mercury.rb +10 -0
- data/lib/astronoby/bodies/moon.rb +158 -32
- data/lib/astronoby/bodies/neptune.rb +10 -0
- data/lib/astronoby/bodies/saturn.rb +10 -0
- data/lib/astronoby/bodies/solar_system_body.rb +240 -61
- data/lib/astronoby/bodies/sun.rb +79 -4
- data/lib/astronoby/bodies/uranus.rb +10 -0
- data/lib/astronoby/bodies/venus.rb +10 -0
- data/lib/astronoby/body.rb +6 -0
- data/lib/astronoby/cache.rb +13 -0
- data/lib/astronoby/center.rb +84 -0
- data/lib/astronoby/constants.rb +1 -2
- data/lib/astronoby/constellation.rb +9 -1
- data/lib/astronoby/constellations/data.rb +1 -1
- data/lib/astronoby/coordinates/ecliptic.rb +10 -1
- data/lib/astronoby/coordinates/equatorial.rb +79 -13
- data/lib/astronoby/coordinates/geodetic.rb +102 -0
- data/lib/astronoby/coordinates/horizontal.rb +13 -1
- data/lib/astronoby/delta_t.rb +44 -0
- data/lib/astronoby/distance.rb +35 -0
- data/lib/astronoby/duration.rb +116 -0
- data/lib/astronoby/earth_rotation.rb +70 -0
- data/lib/astronoby/equinox_solstice.rb +31 -8
- data/lib/astronoby/errors.rb +11 -0
- data/lib/astronoby/events/altitude_crossing.rb +29 -0
- data/lib/astronoby/events/altitude_crossing_calculator.rb +511 -0
- data/lib/astronoby/events/altitude_extreme.rb +31 -0
- data/lib/astronoby/events/conjunction.rb +51 -0
- data/lib/astronoby/events/conjunction_opposition_calculator.rb +84 -0
- data/lib/astronoby/events/extremum_calculator.rb +23 -176
- data/lib/astronoby/events/greatest_elongation.rb +58 -0
- data/lib/astronoby/events/greatest_elongation_calculator.rb +56 -0
- data/lib/astronoby/events/lunar_eclipse.rb +111 -0
- data/lib/astronoby/events/lunar_eclipse_calculator.rb +397 -0
- data/lib/astronoby/events/lunar_eclipse_geometry.rb +115 -0
- data/lib/astronoby/events/lunar_eclipse_phase.rb +45 -0
- data/lib/astronoby/events/lunar_eclipse_visibility.rb +296 -0
- data/lib/astronoby/events/opposition.rb +19 -0
- data/lib/astronoby/events/rise_transit_set_calculator.rb +9 -13
- data/lib/astronoby/events/rise_transit_set_event.rb +12 -1
- data/lib/astronoby/events/rise_transit_set_events.rb +12 -1
- data/lib/astronoby/events/twilight_calculator.rb +37 -147
- data/lib/astronoby/events/twilight_event.rb +24 -6
- data/lib/astronoby/events/twilight_events.rb +26 -6
- data/lib/astronoby/extremum_finder.rb +148 -0
- data/lib/astronoby/horizon.rb +40 -0
- data/lib/astronoby/horizontal_transformation.rb +112 -0
- data/lib/astronoby/instant.rb +56 -16
- data/lib/astronoby/libration.rb +25 -0
- data/lib/astronoby/mean_obliquity.rb +8 -0
- data/lib/astronoby/moon_orientation_ephemeris.rb +69 -0
- data/lib/astronoby/moon_physical_ephemeris.rb +263 -0
- data/lib/astronoby/nutation.rb +10 -20
- data/lib/astronoby/observer.rb +67 -49
- data/lib/astronoby/orientation.rb +107 -0
- data/lib/astronoby/position.rb +16 -0
- data/lib/astronoby/precession.rb +62 -61
- data/lib/astronoby/reference_frame.rb +80 -9
- data/lib/astronoby/reference_frames/apparent.rb +43 -12
- data/lib/astronoby/reference_frames/astrometric.rb +14 -1
- data/lib/astronoby/reference_frames/geometric.rb +7 -1
- data/lib/astronoby/reference_frames/mean_of_date.rb +19 -1
- data/lib/astronoby/reference_frames/teme.rb +159 -0
- data/lib/astronoby/reference_frames/topocentric.rb +36 -4
- data/lib/astronoby/refraction.rb +26 -5
- data/lib/astronoby/root_finder.rb +90 -0
- data/lib/astronoby/rotation.rb +49 -0
- data/lib/astronoby/time/greenwich_apparent_sidereal_time.rb +19 -8
- data/lib/astronoby/time/greenwich_mean_sidereal_time.rb +44 -5
- data/lib/astronoby/time/greenwich_sidereal_time.rb +21 -0
- data/lib/astronoby/time/local_apparent_sidereal_time.rb +21 -0
- data/lib/astronoby/time/local_mean_sidereal_time.rb +21 -0
- data/lib/astronoby/time/local_sidereal_time.rb +24 -0
- data/lib/astronoby/time/sidereal_time.rb +23 -1
- data/lib/astronoby/true_obliquity.rb +4 -0
- data/lib/astronoby/util/maths.rb +8 -0
- data/lib/astronoby/util/time.rb +0 -497
- data/lib/astronoby/vector.rb +10 -0
- data/lib/astronoby/velocity.rb +39 -0
- data/lib/astronoby/version.rb +1 -1
- data/lib/astronoby.rb +30 -0
- metadata +80 -5
data/lib/astronoby/velocity.rb
CHANGED
|
@@ -1,19 +1,32 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module Astronoby
|
|
4
|
+
# Represents a velocity with meters per second as its internal
|
|
5
|
+
# representation. Provides conversions between m/s, km/s, km/day,
|
|
6
|
+
# and AU/day.
|
|
7
|
+
#
|
|
8
|
+
# @example Create a velocity from km/s
|
|
9
|
+
# velocity = Astronoby::Velocity.from_kmps(29.78)
|
|
10
|
+
# velocity.aupd # AU per day
|
|
11
|
+
#
|
|
4
12
|
class Velocity
|
|
5
13
|
include Comparable
|
|
6
14
|
|
|
7
15
|
class << self
|
|
16
|
+
# @return [Astronoby::Velocity] a zero velocity
|
|
8
17
|
def zero
|
|
9
18
|
new(0)
|
|
10
19
|
end
|
|
11
20
|
|
|
21
|
+
# @param meters_per_second [Numeric] the velocity in m/s
|
|
22
|
+
# @return [Astronoby::Velocity] a new Velocity
|
|
12
23
|
def from_meters_per_second(meters_per_second)
|
|
13
24
|
new(meters_per_second)
|
|
14
25
|
end
|
|
15
26
|
alias_method :from_mps, :from_meters_per_second
|
|
16
27
|
|
|
28
|
+
# @param kilometers_per_second [Numeric] the velocity in km/s
|
|
29
|
+
# @return [Astronoby::Velocity] a new Velocity
|
|
17
30
|
def from_kilometers_per_second(kilometers_per_second)
|
|
18
31
|
meters_per_second = kilometers_per_second *
|
|
19
32
|
Constants::KILOMETER_IN_METERS
|
|
@@ -21,6 +34,8 @@ module Astronoby
|
|
|
21
34
|
end
|
|
22
35
|
alias_method :from_kmps, :from_kilometers_per_second
|
|
23
36
|
|
|
37
|
+
# @param kilometers_per_day [Numeric] the velocity in km/day
|
|
38
|
+
# @return [Astronoby::Velocity] a new Velocity
|
|
24
39
|
def from_kilometers_per_day(kilometers_per_day)
|
|
25
40
|
meters_per_second = kilometers_per_day *
|
|
26
41
|
Constants::KILOMETER_IN_METERS / Constants::SECONDS_PER_DAY
|
|
@@ -28,6 +43,8 @@ module Astronoby
|
|
|
28
43
|
end
|
|
29
44
|
alias_method :from_kmpd, :from_kilometers_per_day
|
|
30
45
|
|
|
46
|
+
# @param astronomical_units_per_day [Numeric] the velocity in AU/day
|
|
47
|
+
# @return [Astronoby::Velocity] a new Velocity
|
|
31
48
|
def from_astronomical_units_per_day(astronomical_units_per_day)
|
|
32
49
|
meters_per_second = astronomical_units_per_day *
|
|
33
50
|
Constants::ASTRONOMICAL_UNIT_IN_METERS / Constants::SECONDS_PER_DAY
|
|
@@ -35,82 +52,104 @@ module Astronoby
|
|
|
35
52
|
end
|
|
36
53
|
alias_method :from_aupd, :from_astronomical_units_per_day
|
|
37
54
|
|
|
55
|
+
# @param array [Array<Numeric>] array of m/s values
|
|
56
|
+
# @return [Astronoby::Vector<Astronoby::Velocity>] a vector of Velocities
|
|
38
57
|
def vector_from_meters_per_second(array)
|
|
39
58
|
Vector.elements(array.map { from_mps(_1) })
|
|
40
59
|
end
|
|
41
60
|
alias_method :vector_from_mps, :vector_from_meters_per_second
|
|
42
61
|
|
|
62
|
+
# @param array [Array<Numeric>] array of AU/day values
|
|
63
|
+
# @return [Astronoby::Vector<Astronoby::Velocity>] a vector of Velocities
|
|
43
64
|
def vector_from_astronomical_units_per_day(array)
|
|
44
65
|
Vector.elements(array.map { from_aupd(_1) })
|
|
45
66
|
end
|
|
46
67
|
alias_method :vector_from_aupd, :vector_from_astronomical_units_per_day
|
|
47
68
|
|
|
69
|
+
# @return [Astronoby::Velocity] the speed of light in vacuum
|
|
48
70
|
def light_speed
|
|
49
71
|
from_meters_per_second(Constants::LIGHT_SPEED_M_PER_S)
|
|
50
72
|
end
|
|
51
73
|
end
|
|
52
74
|
|
|
75
|
+
# @return [Numeric] the velocity in meters per second
|
|
53
76
|
attr_reader :meters_per_second
|
|
54
77
|
alias_method :mps, :meters_per_second
|
|
55
78
|
|
|
79
|
+
# @param meters_per_second [Numeric] the velocity in m/s
|
|
56
80
|
def initialize(meters_per_second)
|
|
57
81
|
@meters_per_second = meters_per_second
|
|
58
82
|
freeze
|
|
59
83
|
end
|
|
60
84
|
|
|
85
|
+
# @return [Float] the velocity in kilometers per second
|
|
61
86
|
def kilometers_per_second
|
|
62
87
|
@meters_per_second / Constants::KILOMETER_IN_METERS.to_f
|
|
63
88
|
end
|
|
64
89
|
alias_method :kmps, :kilometers_per_second
|
|
65
90
|
|
|
91
|
+
# @return [Float] the velocity in kilometers per day
|
|
66
92
|
def kilometers_per_day
|
|
67
93
|
@meters_per_second * Constants::SECONDS_PER_DAY /
|
|
68
94
|
Constants::KILOMETER_IN_METERS
|
|
69
95
|
end
|
|
70
96
|
alias_method :kmpd, :kilometers_per_day
|
|
71
97
|
|
|
98
|
+
# @return [Float] the velocity in astronomical units per day
|
|
72
99
|
def astronomical_units_per_day
|
|
73
100
|
@meters_per_second * Constants::SECONDS_PER_DAY /
|
|
74
101
|
Constants::ASTRONOMICAL_UNIT_IN_METERS
|
|
75
102
|
end
|
|
76
103
|
alias_method :aupd, :astronomical_units_per_day
|
|
77
104
|
|
|
105
|
+
# @param other [Astronoby::Velocity] velocity to add
|
|
106
|
+
# @return [Astronoby::Velocity] the sum
|
|
78
107
|
def +(other)
|
|
79
108
|
self.class.from_meters_per_second(
|
|
80
109
|
@meters_per_second + other.meters_per_second
|
|
81
110
|
)
|
|
82
111
|
end
|
|
83
112
|
|
|
113
|
+
# @param other [Astronoby::Velocity] velocity to subtract
|
|
114
|
+
# @return [Astronoby::Velocity] the difference
|
|
84
115
|
def -(other)
|
|
85
116
|
self.class.from_meters_per_second(
|
|
86
117
|
@meters_per_second - other.meters_per_second
|
|
87
118
|
)
|
|
88
119
|
end
|
|
89
120
|
|
|
121
|
+
# @return [Astronoby::Velocity] the negated velocity
|
|
90
122
|
def -@
|
|
91
123
|
self.class.from_meters_per_second(-@meters_per_second)
|
|
92
124
|
end
|
|
93
125
|
|
|
126
|
+
# @return [Boolean] true if the velocity is positive
|
|
94
127
|
def positive?
|
|
95
128
|
@meters_per_second > 0
|
|
96
129
|
end
|
|
97
130
|
|
|
131
|
+
# @return [Boolean] true if the velocity is negative
|
|
98
132
|
def negative?
|
|
99
133
|
@meters_per_second < 0
|
|
100
134
|
end
|
|
101
135
|
|
|
136
|
+
# @return [Boolean] true if the velocity is zero
|
|
102
137
|
def zero?
|
|
103
138
|
@meters_per_second.zero?
|
|
104
139
|
end
|
|
105
140
|
|
|
141
|
+
# @return [Numeric] the square of the velocity in (m/s)^2
|
|
106
142
|
def abs2
|
|
107
143
|
@meters_per_second**2
|
|
108
144
|
end
|
|
109
145
|
|
|
146
|
+
# @return [Integer] hash value
|
|
110
147
|
def hash
|
|
111
148
|
[@meters_per_second, self.class].hash
|
|
112
149
|
end
|
|
113
150
|
|
|
151
|
+
# @param other [Astronoby::Velocity] velocity to compare with
|
|
152
|
+
# @return [Integer, nil] -1, 0, or 1; nil if not comparable
|
|
114
153
|
def <=>(other)
|
|
115
154
|
return unless other.is_a?(self.class)
|
|
116
155
|
|
data/lib/astronoby/version.rb
CHANGED
data/lib/astronoby.rb
CHANGED
|
@@ -12,8 +12,13 @@ require "astronoby/constellations/repository"
|
|
|
12
12
|
require "astronoby/constellations/data"
|
|
13
13
|
require "astronoby/constellations/finder"
|
|
14
14
|
require "astronoby/distance"
|
|
15
|
+
require "astronoby/duration"
|
|
16
|
+
require "astronoby/center"
|
|
17
|
+
require "astronoby/body"
|
|
18
|
+
require "astronoby/position"
|
|
15
19
|
require "astronoby/ephem"
|
|
16
20
|
require "astronoby/julian_date"
|
|
21
|
+
require "astronoby/delta_t"
|
|
17
22
|
require "astronoby/instant"
|
|
18
23
|
require "astronoby/vector"
|
|
19
24
|
require "astronoby/velocity"
|
|
@@ -31,28 +36,49 @@ require "astronoby/bodies/uranus"
|
|
|
31
36
|
require "astronoby/bodies/neptune"
|
|
32
37
|
require "astronoby/coordinates/ecliptic"
|
|
33
38
|
require "astronoby/coordinates/equatorial"
|
|
39
|
+
require "astronoby/coordinates/geodetic"
|
|
34
40
|
require "astronoby/coordinates/horizontal"
|
|
35
41
|
require "astronoby/corrections/light_time_delay"
|
|
36
42
|
require "astronoby/aberration"
|
|
37
43
|
require "astronoby/bodies/deep_sky_object"
|
|
38
44
|
require "astronoby/bodies/deep_sky_object_position"
|
|
39
45
|
require "astronoby/deflection"
|
|
46
|
+
require "astronoby/earth_rotation"
|
|
40
47
|
require "astronoby/equinox_solstice"
|
|
41
48
|
require "astronoby/errors"
|
|
49
|
+
require "astronoby/extremum_finder"
|
|
50
|
+
require "astronoby/root_finder"
|
|
51
|
+
require "astronoby/horizon"
|
|
52
|
+
require "astronoby/horizontal_transformation"
|
|
53
|
+
require "astronoby/events/conjunction"
|
|
54
|
+
require "astronoby/events/opposition"
|
|
55
|
+
require "astronoby/events/greatest_elongation"
|
|
56
|
+
require "astronoby/events/conjunction_opposition_calculator"
|
|
57
|
+
require "astronoby/events/greatest_elongation_calculator"
|
|
42
58
|
require "astronoby/events/extremum_event"
|
|
43
59
|
require "astronoby/events/extremum_calculator"
|
|
44
60
|
require "astronoby/events/moon_phases"
|
|
61
|
+
require "astronoby/events/altitude_crossing"
|
|
62
|
+
require "astronoby/events/altitude_extreme"
|
|
63
|
+
require "astronoby/events/altitude_crossing_calculator"
|
|
45
64
|
require "astronoby/events/rise_transit_set_event"
|
|
46
65
|
require "astronoby/events/rise_transit_set_events"
|
|
47
66
|
require "astronoby/events/rise_transit_set_calculator"
|
|
48
67
|
require "astronoby/events/twilight_event"
|
|
49
68
|
require "astronoby/events/twilight_events"
|
|
50
69
|
require "astronoby/events/twilight_calculator"
|
|
70
|
+
require "astronoby/events/lunar_eclipse_phase"
|
|
71
|
+
require "astronoby/events/lunar_eclipse_geometry"
|
|
72
|
+
require "astronoby/events/lunar_eclipse"
|
|
73
|
+
require "astronoby/events/lunar_eclipse_calculator"
|
|
74
|
+
require "astronoby/events/lunar_eclipse_visibility"
|
|
51
75
|
require "astronoby/geocentric_parallax"
|
|
76
|
+
require "astronoby/libration"
|
|
52
77
|
require "astronoby/mean_obliquity"
|
|
53
78
|
require "astronoby/moon_phase"
|
|
54
79
|
require "astronoby/nutation"
|
|
55
80
|
require "astronoby/observer"
|
|
81
|
+
require "astronoby/rotation"
|
|
56
82
|
require "astronoby/precession"
|
|
57
83
|
require "astronoby/reference_frame"
|
|
58
84
|
require "astronoby/reference_frames/geometric"
|
|
@@ -60,6 +86,7 @@ require "astronoby/reference_frames/astrometric"
|
|
|
60
86
|
require "astronoby/reference_frames/mean_of_date"
|
|
61
87
|
require "astronoby/reference_frames/apparent"
|
|
62
88
|
require "astronoby/reference_frames/topocentric"
|
|
89
|
+
require "astronoby/reference_frames/teme"
|
|
63
90
|
require "astronoby/refraction"
|
|
64
91
|
require "astronoby/stellar_propagation"
|
|
65
92
|
require "astronoby/time/sidereal_time"
|
|
@@ -73,4 +100,7 @@ require "astronoby/util/maths"
|
|
|
73
100
|
require "astronoby/util/time"
|
|
74
101
|
require "astronoby/util/trigonometry"
|
|
75
102
|
require "astronoby/true_obliquity"
|
|
103
|
+
require "astronoby/orientation"
|
|
104
|
+
require "astronoby/moon_physical_ephemeris"
|
|
105
|
+
require "astronoby/moon_orientation_ephemeris"
|
|
76
106
|
require "astronoby/version"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: astronoby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.11.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rémy Hannequin
|
|
@@ -11,11 +11,42 @@ date: 1980-01-02 00:00:00.000000000 Z
|
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: ephem
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - "~>"
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '0.5'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - "~>"
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '0.5'
|
|
26
|
+
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: horologium
|
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - "~>"
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '0.1'
|
|
33
|
+
type: :runtime
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - "~>"
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '0.1'
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: iers
|
|
14
42
|
requirement: !ruby/object:Gem::Requirement
|
|
15
43
|
requirements:
|
|
16
44
|
- - "~>"
|
|
17
45
|
- !ruby/object:Gem::Version
|
|
18
46
|
version: '0.3'
|
|
47
|
+
- - ">="
|
|
48
|
+
- !ruby/object:Gem::Version
|
|
49
|
+
version: 0.3.1
|
|
19
50
|
type: :runtime
|
|
20
51
|
prerelease: false
|
|
21
52
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -23,6 +54,9 @@ dependencies:
|
|
|
23
54
|
- - "~>"
|
|
24
55
|
- !ruby/object:Gem::Version
|
|
25
56
|
version: '0.3'
|
|
57
|
+
- - ">="
|
|
58
|
+
- !ruby/object:Gem::Version
|
|
59
|
+
version: 0.3.1
|
|
26
60
|
- !ruby/object:Gem::Dependency
|
|
27
61
|
name: matrix
|
|
28
62
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -113,14 +147,20 @@ dependencies:
|
|
|
113
147
|
requirements:
|
|
114
148
|
- - "~>"
|
|
115
149
|
- !ruby/object:Gem::Version
|
|
116
|
-
version: '0
|
|
150
|
+
version: '1.0'
|
|
151
|
+
- - "<"
|
|
152
|
+
- !ruby/object:Gem::Version
|
|
153
|
+
version: '1.2'
|
|
117
154
|
type: :development
|
|
118
155
|
prerelease: false
|
|
119
156
|
version_requirements: !ruby/object:Gem::Requirement
|
|
120
157
|
requirements:
|
|
121
158
|
- - "~>"
|
|
122
159
|
- !ruby/object:Gem::Version
|
|
123
|
-
version: '0
|
|
160
|
+
version: '1.0'
|
|
161
|
+
- - "<"
|
|
162
|
+
- !ruby/object:Gem::Version
|
|
163
|
+
version: '1.2'
|
|
124
164
|
- !ruby/object:Gem::Dependency
|
|
125
165
|
name: standard
|
|
126
166
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -153,6 +193,7 @@ files:
|
|
|
153
193
|
- Rakefile
|
|
154
194
|
- UPGRADING.md
|
|
155
195
|
- docs/README.md
|
|
196
|
+
- docs/altitude_crossings.md
|
|
156
197
|
- docs/angles.md
|
|
157
198
|
- docs/configuration.md
|
|
158
199
|
- docs/coordinates.md
|
|
@@ -160,9 +201,13 @@ files:
|
|
|
160
201
|
- docs/ephem.md
|
|
161
202
|
- docs/equinoxes_solstices_times.md
|
|
162
203
|
- docs/glossary.md
|
|
204
|
+
- docs/iers.md
|
|
163
205
|
- docs/instant.md
|
|
206
|
+
- docs/lunar_eclipses.md
|
|
207
|
+
- docs/lunar_observation.md
|
|
164
208
|
- docs/moon_phases.md
|
|
165
209
|
- docs/observer.md
|
|
210
|
+
- docs/planetary_phenomena.md
|
|
166
211
|
- docs/reference_frames.md
|
|
167
212
|
- docs/rise_transit_set_times.md
|
|
168
213
|
- docs/solar_system_bodies.md
|
|
@@ -187,7 +232,9 @@ files:
|
|
|
187
232
|
- lib/astronoby/bodies/sun.rb
|
|
188
233
|
- lib/astronoby/bodies/uranus.rb
|
|
189
234
|
- lib/astronoby/bodies/venus.rb
|
|
235
|
+
- lib/astronoby/body.rb
|
|
190
236
|
- lib/astronoby/cache.rb
|
|
237
|
+
- lib/astronoby/center.rb
|
|
191
238
|
- lib/astronoby/configuration.rb
|
|
192
239
|
- lib/astronoby/constants.rb
|
|
193
240
|
- lib/astronoby/constellation.rb
|
|
@@ -196,6 +243,7 @@ files:
|
|
|
196
243
|
- lib/astronoby/constellations/repository.rb
|
|
197
244
|
- lib/astronoby/coordinates/ecliptic.rb
|
|
198
245
|
- lib/astronoby/coordinates/equatorial.rb
|
|
246
|
+
- lib/astronoby/coordinates/geodetic.rb
|
|
199
247
|
- lib/astronoby/coordinates/horizontal.rb
|
|
200
248
|
- lib/astronoby/corrections/light_time_delay.rb
|
|
201
249
|
- lib/astronoby/data/constellations/constellation_names.dat
|
|
@@ -204,34 +252,61 @@ files:
|
|
|
204
252
|
- lib/astronoby/data/constellations/sorted_declinations.dat
|
|
205
253
|
- lib/astronoby/data/constellations/sorted_right_ascensions.dat
|
|
206
254
|
- lib/astronoby/deflection.rb
|
|
255
|
+
- lib/astronoby/delta_t.rb
|
|
207
256
|
- lib/astronoby/distance.rb
|
|
257
|
+
- lib/astronoby/duration.rb
|
|
258
|
+
- lib/astronoby/earth_rotation.rb
|
|
208
259
|
- lib/astronoby/ephem.rb
|
|
209
260
|
- lib/astronoby/equinox_solstice.rb
|
|
210
261
|
- lib/astronoby/errors.rb
|
|
262
|
+
- lib/astronoby/events/altitude_crossing.rb
|
|
263
|
+
- lib/astronoby/events/altitude_crossing_calculator.rb
|
|
264
|
+
- lib/astronoby/events/altitude_extreme.rb
|
|
265
|
+
- lib/astronoby/events/conjunction.rb
|
|
266
|
+
- lib/astronoby/events/conjunction_opposition_calculator.rb
|
|
211
267
|
- lib/astronoby/events/extremum_calculator.rb
|
|
212
268
|
- lib/astronoby/events/extremum_event.rb
|
|
269
|
+
- lib/astronoby/events/greatest_elongation.rb
|
|
270
|
+
- lib/astronoby/events/greatest_elongation_calculator.rb
|
|
271
|
+
- lib/astronoby/events/lunar_eclipse.rb
|
|
272
|
+
- lib/astronoby/events/lunar_eclipse_calculator.rb
|
|
273
|
+
- lib/astronoby/events/lunar_eclipse_geometry.rb
|
|
274
|
+
- lib/astronoby/events/lunar_eclipse_phase.rb
|
|
275
|
+
- lib/astronoby/events/lunar_eclipse_visibility.rb
|
|
213
276
|
- lib/astronoby/events/moon_phases.rb
|
|
277
|
+
- lib/astronoby/events/opposition.rb
|
|
214
278
|
- lib/astronoby/events/rise_transit_set_calculator.rb
|
|
215
279
|
- lib/astronoby/events/rise_transit_set_event.rb
|
|
216
280
|
- lib/astronoby/events/rise_transit_set_events.rb
|
|
217
281
|
- lib/astronoby/events/twilight_calculator.rb
|
|
218
282
|
- lib/astronoby/events/twilight_event.rb
|
|
219
283
|
- lib/astronoby/events/twilight_events.rb
|
|
284
|
+
- lib/astronoby/extremum_finder.rb
|
|
220
285
|
- lib/astronoby/geocentric_parallax.rb
|
|
286
|
+
- lib/astronoby/horizon.rb
|
|
287
|
+
- lib/astronoby/horizontal_transformation.rb
|
|
221
288
|
- lib/astronoby/instant.rb
|
|
222
289
|
- lib/astronoby/julian_date.rb
|
|
290
|
+
- lib/astronoby/libration.rb
|
|
223
291
|
- lib/astronoby/mean_obliquity.rb
|
|
292
|
+
- lib/astronoby/moon_orientation_ephemeris.rb
|
|
224
293
|
- lib/astronoby/moon_phase.rb
|
|
294
|
+
- lib/astronoby/moon_physical_ephemeris.rb
|
|
225
295
|
- lib/astronoby/nutation.rb
|
|
226
296
|
- lib/astronoby/observer.rb
|
|
297
|
+
- lib/astronoby/orientation.rb
|
|
298
|
+
- lib/astronoby/position.rb
|
|
227
299
|
- lib/astronoby/precession.rb
|
|
228
300
|
- lib/astronoby/reference_frame.rb
|
|
229
301
|
- lib/astronoby/reference_frames/apparent.rb
|
|
230
302
|
- lib/astronoby/reference_frames/astrometric.rb
|
|
231
303
|
- lib/astronoby/reference_frames/geometric.rb
|
|
232
304
|
- lib/astronoby/reference_frames/mean_of_date.rb
|
|
305
|
+
- lib/astronoby/reference_frames/teme.rb
|
|
233
306
|
- lib/astronoby/reference_frames/topocentric.rb
|
|
234
307
|
- lib/astronoby/refraction.rb
|
|
308
|
+
- lib/astronoby/root_finder.rb
|
|
309
|
+
- lib/astronoby/rotation.rb
|
|
235
310
|
- lib/astronoby/stellar_propagation.rb
|
|
236
311
|
- lib/astronoby/time/greenwich_apparent_sidereal_time.rb
|
|
237
312
|
- lib/astronoby/time/greenwich_mean_sidereal_time.rb
|
|
@@ -261,14 +336,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
261
336
|
requirements:
|
|
262
337
|
- - ">="
|
|
263
338
|
- !ruby/object:Gem::Version
|
|
264
|
-
version: 3.
|
|
339
|
+
version: 3.2.0
|
|
265
340
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
266
341
|
requirements:
|
|
267
342
|
- - ">="
|
|
268
343
|
- !ruby/object:Gem::Version
|
|
269
344
|
version: '0'
|
|
270
345
|
requirements: []
|
|
271
|
-
rubygems_version:
|
|
346
|
+
rubygems_version: 4.0.10
|
|
272
347
|
specification_version: 4
|
|
273
348
|
summary: Astronomical calculations
|
|
274
349
|
test_files: []
|