Astronoby is still in development phase and no major version has been released yet. Please consider the public API as unstable and expect breaking changes to it as long as a major version has not been released.
If you are already using Astronoby and wish to follow the changes to its public API, please read the upgrading notes for each release.
Sun#horizontal_coordinates
method signature changed (#69)
Astronoby::Sun#horizontal_coordinates
expects an observer
(Astronoby::Observer
) key argument instead of latitude
and longitude
angles.
Sun#distance
now returns an Astronoby::Distance
(#78)
Coordinates::Equatorial#to_horizontal
method signature changed (#69)
Astronoby::Coordinates::Equatorial#to_horizontal
expects an observer
(Astronoby::Observer
) key argument instead of latitude
and longitude
angles.
Coordinates::Horizontal
constructor and attributes changed (#69)
Astronoby::Coordinates::Horizontal::new
now expects an observer
(Astronoby::Observer
) key argument instead of latitude
and longitude
,
and therefore now exposes #observer
instead of #latitude
and #longitude
.
GeocentricParallax#angle
method signature changed (#78)
Astronoby::GeocentricParallax#angle
's key argument distance
is now
expected to be an instance of Astronoby::Distance
instead of a Numeric
.
GeocentricParallax#for_equatorial_coordinates
method signature changed (#69)
Astronoby::GeocentricParallax#for_equatorial_coordinates
expects an
observer
(Astronoby::Observer
) key argument instead of latitude
,
longitude
and elevation
.
Observer
constructor changed (#78)
Astronoby::Observer::new
's key argument distance
is now expected to be
an instance of Astronoby::Distance
instead of a Numeric
.
Refraction
methods signatures changed (#69)
Astronoby::Refraction
's constructor doesn't accept the observer
key
argument anymore. Therefore, the methods ::angle
and
::correct_horizontal_coordinates
neither.
Body
class removed (#50)
The different behaviors from Body
have been moved to other classes like
Events::ObservationEvents
.
Rising and setting times and azimuths removed from Sun
(#60)
#rising_time
, #rising_azimuth
, #setting_time
and #setting_azimuth
have been removed from Astronoby::Sun
and moved to
Astronoby::Events::ObservationEvents
.
Sun
constructor changed (#64)
The Sun
constructor now doesn't accept the epoch
key argument anymore,
but only a new time
key argument.
Removed in favor of #true_ecliptic_coordinates
and
#apparent_ecliptic_coordinates
.
Removed in favor of #to_true_horizontal
and
#to_apparent_horizontal
.
Returns the true ecliptic coordinates for the date's epoch.
Returns the apparent ecliptic coordinates for the date's epoch, including corrections for the nutation and aberration.
Returns the true equatorial coordinates for ths date's epoch.
Returns the apparent equatorial coordinates for the date's epoch, including corrections for the obliquity.
Behaviour not changed.
Behaviour not changed.
Behaviour not changed.
Behaviour not changed.
Behaviour not changed.
The Observer
class aims to represent an observer's location and local
parameters such as the temperature and astmospheric pressure.
Refraction.new
now takes the following arguments:
coordinates
(Coordinates::Horizontal
)observer
(Observer
)
Please now use Refraction.correct_horizontal_coordinates
.
This returns a refraction angle (Angle
) based on an observer (Observer
)
and the horizontal coordinates (Coordinates::Horizontal
) of a body in the sky.
With a default value of true
, this new argument will make consider a
default vertical refraction angle or not.
With a default value of true
, this new argument will make consider a
default vertical refraction angle or not.
Returns the equation of time for a given date.
Returns the approximate Earth-Sun distance in meters (Numeric
).
Returns the apparent Sun's angular size (Angle
).
Returns the apparent Sun's true anomaly (Angle
).
Returns the apparent Sun's longitude (Angle
) at its perigee.
Returns the UTC Time
of the sunrise.`
Returns the Sun's azimuth (Angle
) at sunrise.
Returns the UTC Time
of the sunset.
Returns the Sun's azimuth (Angle
) at sunset.
With the inclusion of Comparable
, comparison methods such as #==
, #<
,
#>
, #<=
, #>=
, #!=
, #<=>
have been added to Angle
.
Calculates the equatorial horizontal parallax for an observed body. The class provided two class methods:
::angle
which returns the parallax angle::for_equatorial_coordinates
which correct equatorial coordinates with the parallax correction
This class exposes ::march_equinox
, ::june_solstice
,
::september_equinox
and ::december_soltice
that all require a year
(Integer
) as parameter and return a date-time (Time
) computed for the event.
Time-related utility functions have been deleted, in favor of new classes (see below).
Enables to instantiate a GST from UTC, or convert a GST to UTC.
Enables to instantiate a LST from GST, or convert a LST to GST.