Skip to content

Moon apparent geocentric equatorial coordinates#75

Merged
rhannequin merged 1 commit intomainfrom
moon-apparent-geocentric-equatorial-coordinates
May 22, 2024
Merged

Moon apparent geocentric equatorial coordinates#75
rhannequin merged 1 commit intomainfrom
moon-apparent-geocentric-equatorial-coordinates

Conversation

@rhannequin
Copy link
Owner

The algorithm described by Jean Meeus in Astronomical Algorithms produces apparent ecliptic coordinates that can be converted into apparent geocentric equatorial coordinates.

Geocentric is important here because it came to my attention recently that it is possible to have topocentric equatorial coordinates, which can then be directly converted into topocentric horizontal coordinates.

This change is a first step into having all these coordinates available for the Moon:

  • apparent ecliptic coordinates
  • apparent geocentric equatorial coordinates
  • apparent topocentric equatorial coordinates
  • topocentric horizontal coordinates

More work will be done later to the coordinates object so that these conversion are easier to use and more general to implement for all astronomical bodies.

Results have been compared with the IMCCE and show an accuracy of 1 arcsecond (of degrees or hours).

moon = Astronoby::Moon.new(time: Time.utc(2003, 9, 1))

coordinates = moon.apparent_geocentric_equatorial_coordinates

coordinates.right_ascension.str(:hms)
# => "14h 12m 12.2352s"

coordinates.declination.str(:dms)
# => "-11° 35′ 7.9466″"

@rhannequin rhannequin self-assigned this May 18, 2024
@rhannequin rhannequin force-pushed the moon-ecliptic-coordinates branch from 96475e8 to 4d57ac5 Compare May 19, 2024 14:37
@rhannequin rhannequin force-pushed the moon-apparent-geocentric-equatorial-coordinates branch from 85ce929 to c64759b Compare May 19, 2024 14:38
@rhannequin rhannequin force-pushed the moon-ecliptic-coordinates branch from 4d57ac5 to 8ffeba1 Compare May 20, 2024 20:10
@rhannequin rhannequin force-pushed the moon-apparent-geocentric-equatorial-coordinates branch from c64759b to c18ab0c Compare May 20, 2024 20:11
Base automatically changed from moon-ecliptic-coordinates to main May 22, 2024 22:50
The algorithm described by Jean Meeus in Astronomical Algorithms
produces apparent ecliptic coordinates that can be converted into
apparent geocentric equatorial coordinates.

_Geocentric_ is important here because it came to my attention recently
that it is possible to have topocentric equatorial coordinates, which
can then be directly converted into topocentric horizontal coordinates.

This change is a first step into having all these coordinates available
for the Moon:
- apparent ecliptic coordinates
- apparent geocentric equatorial coordinates
- apparent topocentric equatorial coordinates
- topocentric horizontal coordinates

More work will be done later to the coordinates object so that these
conversion are easier to use and more general to implement for all
astronomical bodies.

Results have been compared with the IMCCE and show an accuracy of 1
arcsecond (of degrees or hours).

```rb
moon = Astronoby::Moon.new(time: Time.utc(2003, 9, 1))

coordinates = moon.apparent_geocentric_equatorial_coordinates

coordinates.right_ascension.str(:hms)
 # => "14h 12m 12.2352s"

coordinates.declination.str(:dms)
 # => "-11° 35′ 7.9466″"
```
@rhannequin rhannequin force-pushed the moon-apparent-geocentric-equatorial-coordinates branch from c18ab0c to 7b7aa2e Compare May 22, 2024 22:51
@rhannequin rhannequin merged commit 0f07c83 into main May 22, 2024
@rhannequin rhannequin deleted the moon-apparent-geocentric-equatorial-coordinates branch May 22, 2024 22:56
rhannequin added a commit that referenced this pull request Jun 11, 2024
 ## 0.5.0 - 2024-06-11

_If you are upgrading: please see [UPGRADING.md]._

[UPGRADING.md]: https://github.com/rhannequin/astronoby/blob/main/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])

[#72]: #72
[#73]: #73
[#75]: #75
[#76]: #76
[#77]: #77
[#79]: #79
[#80]: #80
[#82]: #82
[#83]: #83
[#85]: #85
[#86]: #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])

[#70]: #70
[#71]: #71
[#74]: #74
[#84]: #84
[#88]: #88
[#87]: #87
[#89]: #89

 ### Backward-incompatible changes

* Use Observer in Horizontal coordinates ([#69])
* Introduce `Astronoby::Distance` value object ([#78])

[#69]: #69
[#78]: #78

**Full Changelog**: v0.4.0...v0.5.0
rhannequin added a commit that referenced this pull request Jun 11, 2024
### 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])

[#72]: #72
[#73]: #73
[#75]: #75
[#76]: #76
[#77]: #77
[#79]: #79
[#80]: #80
[#82]: #82
[#83]: #83
[#85]: #85
[#86]: #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])

[#70]: #70
[#71]: #71
[#74]: #74
[#84]: #84
[#88]: #88
[#87]: #87
[#89]: #89

### Backward-incompatible changes

* Use Observer in Horizontal coordinates ([#69])
* Introduce `Astronoby::Distance` value object ([#78])

[#69]: #69
[#78]: #78

**Full Changelog**: v0.4.0...v0.5.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant