Skip to content

Releases

v0.11.0

Choose a tag to compare

@rhannequin rhannequin released this 31 Oct 22:09
7c642a8

0.11.0 - 2026-10-31

If you are upgrading: please see UPGRADING.md.

Bug fixes

  • Apply nutation after precession for a DeepSkyObject without an ephemeris. The two rotations were composed in the wrong order, so the apparent position was off by up to about 0.1 arcsecond depending on the date, and the velocity had the same error. The rotation now matches ERFA and Skyfield, and is the one used when an ephemeris is given. Without an ephemeris there is still no aberration correction (#316)
  • Let the rise, transit and set refinement move an estimate back in time. The correction was clamped to be positive, so an estimate that overshot its event could never be brought back, and settings and transits came out up to a few minutes late depending on the window asked for (#301)
  • Refer equatorial coordinates to the epoch of the frame they come from (#302)
  • Return real Barycentric Dynamical Time from Instant#tdb, which returned Terrestrial Time unchanged. The two scales differ by up to about 1.7 milliseconds (#304)
  • Keep ΔT at its last measured value past the end of the IERS series. iers 0.3.0 stopped attaching an available_range to the OutOfRangeError it raises for an uncovered date, and the fallback read that absence as "no data at all" and answered 0. Every date after the bundled series, currently 2027-09-04, was off by about 69 seconds (#304)
  • Read the constellation data files as UTF-8, so that Constellations::Finder and Constellations::Repository work when the default external encoding is not UTF-8, as under LANG=C

Features

  • Add HorizontalTransformation, which converts equatorial coordinates at J2000 epoch into horizontal coordinates for one observer and one instant. The rotation and the sidereal time are computed once, which makes converting many points, like the stars of a catalogue, about 70 times faster than going through DeepSkyObject#at(instant).observed_by(observer).horizontal. Points are treated as fixed directions, as for a DeepSkyObject without an ephemeris. refraction: is an option (#317)
  • Add AltitudeCrossingCalculator, which finds when a body reaches any altitude, with unrounded instants, the crossing direction, a grazing flag and the culminations. refraction: and reference: (:center, :upper_limb, :lower_limb) are options (#311)
  • Expose lunar eclipse shadow geometry at greatest eclipse and at every contact (#300)
  • Add lunar eclipse local circumstances with LunarEclipse#visibility_from (#302)
  • Expose the Moon's apparent place at every lunar eclipse contact (#302)

Improvements

  • Cache Greenwich mean and apparent sidereal times when the cache is enabled. The cache is still disabled by default, which is now stated in the README (#320)
  • Compute the TAI and TDB time scales with the horologium gem, which owns the scales that convert by definition or by model. UT1 stays in Astronoby (#304)
  • Read Instant#tai and #tdb as a Rational, which a Float Julian Date is too coarse to hold (#304)
  • Evaluate Precession in TT, as SOFA and ERFA do (#304)
  • Raise the minimum iers version from 0.1 to 0.3.1, which horologium requires (#304)
  • Share the rise and set horizon convention through Astronoby::Horizon (#311)
  • Derive a lunar eclipse's magnitudes, axis distance and gamma from its geometry (#300, #302)
  • Resolve the lunar eclipse shadow axis offset with vectors (#302)
  • Reduce the Moon to the observer by vectors for lunar eclipse visibility (#302)
  • Answer lunar eclipse phase coverage in the words the whole eclipse uses (#302)
  • Pin CI runner to ubuntu-24.04 (#312)
  • Fix CI for the standard and simplecov bumps (#319)
  • Bump rubyzip from 3.4.0 to 3.7.0 by @dependabot (#285, #299, #305, #308)
  • Bump standard from 1.55.0 to 1.56.0 by @dependabot (#288)
  • Bump simplecov from 0.22 to 1.0.3 by @dependabot (#287, #289, #291)
  • Bump iers from 0.1.0 to 0.2.0 by @dependabot (#284, #294)
  • Update json to 2.21.2 (#296)

Backward-incompatible changes

  • TwilightCalculator is based on AltitudeCrossingCalculator. Times change slightly: up to about 30 seconds at the standard angles, and up to about 100 seconds with time_for_zenith_angle and custom angles. The new values match IMCCE, Horizons and Skyfield. Twilight that exists is returned when the Sun doesn't rise or set, as in a polar night, instead of nil. Results are still rounded to the second. #event_on is about 1.8 times slower than before, because it solves for the real crossing instead of approximating the Sun's position from a single evaluation (#311)
  • Equatorial coordinates carry the epoch of the frame they come from (#302)
  • Instant#tdb returns real TDB, and #tai and #tdb return a Rational (#304)
  • Remove Constants::TAI_TT_OFFSET (#304)
  • Util::Time.terrestrial_universal_time_delta is replaced by DeltaT.at (#295)
  • EclipsePhase is now LunarEclipsePhase, LunarEclipse#greatest_eclipse is now #greatest_eclipse_instant, LunarEclipse.new no longer accepts the magnitudes, gamma or shadow axis distance, and LunarEclipsePhase#duration is no longer rounded (#300, #302)
  • Remove LunarEclipseVisibility#altitude_at (#302)
  • Lunar eclipse contacts are reduced with the IAU eclipse constant k. Contact times may shift by a second or two, and magnitudes by up to about 0.001 (#302)
  • Bisect to a millisecond rather than to a second when locating an event in time. Conjunction and opposition times may move by a fraction of a second, and searches are about 20% slower (#302)

Full Changelog: v0.10.0...v0.11.0

v0.10.0

Choose a tag to compare

@rhannequin rhannequin released this 26 Jun 08:48
105ddb4

0.10.0 - 2026-06-26

If you are upgrading: please see UPGRADING.md.

Bug fixes

  • Fix constant name typo (#245)
  • Fix matrix multiplication order in Apparent frame (#250)
  • Remove spurious N·P from observer ECEF-to-TOD transformation (#251)
  • Apply aberration in GCRS before precession/nutation rotation (#253)
  • Fix Moon magnitude (#254)
  • Fix astrometric position for Deep Sky Objects (#272)

Features

  • Defer Solar System body computations lazily (#244)
  • Integrate iers gem for Delta T and GMST (#249)
  • Add IERS polar motion correction to observer ECEF-to-TOD transformation (#252)
  • Fall back to polynomial GMST for dates outside IERS EOP range (#255)
  • Add ICRS frame bias to precession matrix (#257)
  • Extract EarthRotation class from Observer (#260)
  • Add TEME reference frame for satellite tracking (#261)
  • Add ECEF to geodetic conversion (WGS-84) (#262)
  • Memoize per-instant conversions on Instant (#268)
  • Add ReferenceFrame#separation_from for angular separation (#269)
  • Introduce Center, Body and Position domain objects (#270)
  • Add planetary phenomena (#271)
  • Add lunar libration, position angle of axis and bright limb (#273)
  • Add Astronoby::Orientation for arcsecond lunar libration (#279)
  • Add Lunar eclipses (#280)
  • Add Astronoby::Duration (#281)

Improvements

  • Optimize nutation loop by eliminating array allocations (#246)
  • Reuse single Nutation instance in observer matrix computation (#247)
  • Memoize Observer geodetic computation methods (#248)
  • Update documentation with recent values (#256)
  • Update referential frames documentation (#258)
  • YARD documentation update (#259)
  • Update zlib, JSON and ERB for security reasons
  • Add references to README
  • Bump actions/checkout from 5 to 7 by @dependabot (#239, #276)
  • Bump rubyzip from 3.2.1 to 3.4.0 by @dependabot (#237, #267, #275)
  • Bump irb from 1.15.2 to 1.17.0 by @dependabot (#242)
  • Bump standard from 1.51.1 to 1.55.0 by @dependabot (#243, #274)
  • Bump rake from 13.3.1 to 13.4.2 by @dependabot (#264)
  • Bump ephem from 0.4.1 to 0.5.0 by @dependabot (#278)
  • Upgrade default Ruby to 4.0.5 (#277)

Backward-incompatible changes

  • Minimum Ruby version bumped to 3.2.0 (#249)
  • Delta T and GMST now use IERS data (#249)
  • Defer Solar System body computations lazily (#244)
  • SolarSystemBody#ephem is now publicly accessible (#244)
  • ReferenceFrame#center_identifier replaced by #center (#270)
  • Sun#equation_of_time now returns a Duration (#281)

Full Changelog: v0.9.0...v0.10.0

v0.9.0

Choose a tag to compare

@rhannequin rhannequin released this 31 Oct 10:07
8d0575d

0.9.0 - 2025-10-31

If you are upgrading: please see UPGRADING.md.

Features

  • Add #approaching_primary? and #receding_from_primary? to solar system bodies (#211)
  • Calculate apoapsis and periapsis events (#213)
  • Improve precision of ΔT (#219)
  • Deep Sky Object: Compute astrometric position (#217)
  • Deep Sky Object: Compute apparent position (#220)
  • Deep Sky Object: Handle velocities properly (#222)
  • Deep Sky Object: Compute topocentric position (#226)
  • Deep Sky Object: difference between the body and the position (#227)
  • Deep Sky Object: Add support for RiseTransitSetCalculator (#228)

Improvements

Backward-incompatible changes

  • Drop Astronoby::Apparent#angular_diameter (#221)
  • Use local apparent instead of local mean sidereal time for hour angle (#225)

Full Changelog: v0.8.0...v0.9.0

v0.8.0

Choose a tag to compare

@rhannequin rhannequin released this 01 Sep 08:01
9a03262

0.8.0 - 2025-09-01

If you are upgrading: please see UPGRADING.md.

Bug fixes

  • Fix UPGRADING documentation (#178)
  • Fix possible division by zero in RTS (#185)

Features

  • Introduce performance benchmark (#183)
  • Cache positions in RTS calculator (#182)
  • Internal global LRU cache (#186)
  • Global configuration (#187)
  • Compute the constellation a body is in (#199)
  • Add #phase_angle and #illuminated_fraction to planets (#200)
  • Apparent magnitude (#201)
  • Add #events_between to TwilightCalculator with better accuracy (#204)
  • #angular_diameter on Solar System bodies (#207)
  • Fix constellation boundaries near 24h right ascension (#209)

Improvements

Backward-incompatible changes

  • Epoch refactoring into JulianDate (#197)
  • #angular_diameter on Solar System bodies (#207)
  • Rename "epoch" (#208)

Closed issues

  • Consider adding typical usage/deployment info (#179)
  • Performance degradation in v0.7 (#180)

Full Changelog: v0.7.0...v0.8.0

v0.7.0

Choose a tag to compare

@rhannequin rhannequin released this 12 May 10:17
4f352eb

0.7.0 - 2025-05-12

If you are upgrading: please see UPGRADING.md.

Bug fixes

Features

  • Add Instant value object (#121)
  • Introduce barycentric position of Solar System major bodies (#127)
  • Introduce Astrometric position for planets (#129)
  • Rename Barycentric into Geometric (#130)
  • Rename IRCF and remove module Position (#131)
  • Geometric and Astrometric reference frames with coordinates (#132)
  • Ecliptic coordinates for Geometric and Astrometric reference frames (#134)
  • Add Geometric and Astrometric positions for Sun and Moon (#135)
  • Implement new aberration correction (#136)
  • Precession matrix for 2006 P03 model (#137)
  • Introduce MeanOfDate reference frame (#138)
  • New nutation model (#141)
  • Light deflection correction (#142)
  • Introduce Apparent reference frame (#143)
  • Introduce Topocentric reference frame (#145)
  • Improve Vector integration with value objects (#146)
  • Handle refracted topocentric horizontal coordinates (#147)
  • Add #angular_diameter to apparent and topocentric reference frames (#149)
  • Introduce new calculator for rising, transit and setting times (#148)
  • Clean code after Ephem refactoring (#152)
  • Improve RisingTransitSettingEventsCalculator (#155)
  • Simplify RisingTransitSettingEventsCalculator (#156)
  • Lazy-load reference frames (#157)
  • Overall performance improvements (#163)
  • Add support for IMCCE INPOP by @JoelQ and @rhannequin (#166)
  • Update INPOP excerpt in spec data (#167)
  • Introduce a better rise/transit/set calculator (#168)
  • Drop Astronoby::Observer#observe (#174)

Improvements

  • Bump standard from 1.42.1 to 1.49.0 by @dependabot (#123, #128, #150, #165)
  • Bump rubyzip from 2.3.2 to 2.4.1 by @dependabot (#120)
  • Add more tests for Julian Date conversion (#122)
  • Upgrade main Ruby version and supported ones (#125)
  • Update email address and gem description (#126)
  • Increase precision of mean obliquity (#133)
  • Add supported Rubies (#139)
  • Set Ruby 3.4.2 as default version (#140)
  • Fix dependency secutiry patch (#151)
  • Improve HMS/DMS formats (#153)
  • Use excerpts ephemerides for specs of Sun and Moon (#154)
  • Add link to deprecated documentation (#160)
  • Default Ruby 3.4.3 and support recent rubies (#169)
  • Better Moon phases test coverage (#172)
  • Optimize Observer with GMST from Instant (#173)
  • Update README about documentation location (#175)
  • Add GitHub Actions permissions (#176)

New Contributors

Full Changelog: v0.6.0...v0.7.0

v0.6.0

Choose a tag to compare

@rhannequin rhannequin released this 10 Dec 13:39
70089a4

What's Changed

If you are upgrading: please see UPGRADING.md.

Bug fixes

  • Fix ObservationEvents infinite loop in (#110)
  • Fix observation events times with local time dates in (#105)
  • Fix IncompatibleArgumentsError on Moon's observation events in (#111)

Features

  • Add Astronoby::Moon#current_phase_fraction in (#115)
  • Add sources and results for comparison in (#114)

Improvements

  • Bump standard from 1.36.0 to 1.39.2 by @dependabot in (#95)
  • Bump standard from 1.39.2 to 1.40.0 by @dependabot in (#96)
  • Bump dependencies in (#100)
  • Move dependencies to development ones in (#99)
  • Bump standard from 1.40.0 to 1.41.1 by @dependabot in (#104)
  • Bump standard from 1.41.1 to 1.42.0 by @dependabot in (#107)
  • Bump standard from 1.42.0 to 1.42.1 by @dependabot in (#108)
  • Bump dependencies in (#116)
  • Add supported Ruby versions in (#117)

Full Changelog: v0.5.0...v0.6.0

v0.5.0

Choose a tag to compare

@rhannequin rhannequin released this 11 Jun 12:58
20e65ff

What's Changed

If you are upgrading: please see UPGRADING.md.

Features

  • Make Sun#mean_anomaly public (#72)
  • Moon ecliptic coordinates (#73)
  • Moon apparent geocentric equatorial coordinates (#75)
  • Moon horizontal coordinates (#76)
  • Assume Moon's equatorial coordinates are geocentric (#77)
  • Use observer object for geocentric parallax (#79)
  • Moon's phase angle and illuminated fraction (#80)
  • Monthly Moon phases (#82)
  • Rationalize negative degree angles (#83)
  • Factorize Moon phases periodic terms (#85)
  • Introduce observation events for Moon (#86)

Improvements

  • Create FUNDING.yml (#70)
  • Bump standard from 1.35.1 to 1.36.0 (#71)
  • Bump rexml from 3.2.6 to 3.2.8 (#74)
  • Expand the number of tested Ruby versions (#84)
  • Add Ruby 3.1.6 and 3.3.2 coverage (#88)
  • Improve and update documentation (#87)
  • Update UPGRADING.md (#89)

Backward-incompatible changes

  • Use Observer in Horizontal coordinates (#69)
  • Introduce Astronoby::Distance value object (#78)

Full Changelog: v0.4.0...v0.5.0

v0.4.0

Choose a tag to compare

@rhannequin rhannequin released this 29 Apr 09:23
2944787

What's Changed

If you are upgrading: please see UPGRADING.md.

Bug fixes

  • Fix ecliptic to equatorial epoch (#56)

Features

  • Add twilight times (#49)
  • Add interpolation method (#52)
  • Add decimal_hour_to_time util (#53)
  • Calculate leap seconds for an instant (#54)
  • Add Angle#-@ (#55)
  • Enable equivalence and hash equality to Observer (#57)
  • Twilight events dedicated class (#61)

Improvements

  • Upgrade bundler from 2.3.11 to 2.5.7 by @dorianmariecom (#45)
  • Drop BigDecimal (#46)
  • Bump rake from 13.1.0 to 13.2.0 (#47)
  • Increase Ruby versions support (#48)
  • Bump rake from 13.2.0 to 13.2.1 (#51)
  • Dedicated constants class (#62)
  • Improve accuracy of equation of time (#63)
  • Twilight times better accuracy (#65)
  • Update UPGRADING.md (#66)
  • release: Bump version to 0.4.0 (#67)

Backward-incompatible changes

  • More accurate rising, transit and setting times (#50)
  • Observation events dedicated and centralized class (#60)
  • Change Astronoby::Sun constructor (#64)

Contributors

Full Changelog: v0.3.0...v0.4.0

v0.3.0

Choose a tag to compare

@rhannequin rhannequin released this 29 Mar 16:33

0.3.0 - 2024-03-29

If you are upgrading: please see [UPGRADING.md].

Improvements

  • Drop Angle#== (#42)
  • Improved accuracy with Sun's location predictions (#41)

Breaking changes

  • breaking: Difference between true and apparent ecliptic and equatorial coordinates (#41)
  • breaking: Rename Angle::as_* into Angle::from_* (#43)