Skip to content

Moon's phase angle and illuminated fraction#80

Merged
rhannequin merged 1 commit intomainfrom
moon-phase-angle-illuminated-fraction
May 31, 2024
Merged

Moon's phase angle and illuminated fraction#80
rhannequin merged 1 commit intomainfrom
moon-phase-angle-illuminated-fraction

Conversation

@rhannequin
Copy link
Owner

@rhannequin rhannequin commented May 20, 2024

This introduces two new Moon-related information: the phase angle and the illuminated fraction.

The phase angle is the angle between the incident light from the Sun onto the Moon and the reflected light from the Moon.

The illuminated fraction is the ratio of illuminated Moon surface as seen from the Earth. Multiplied by 100, it gives the percentage of illuminated surface as seen from the Earth.

time = Time.utc(2024, 5, 20, 12)
moon = Astronoby::Moon.new(time: time)

moon.phase_angle.degrees.round
# => 35

(moon.illuminated_fraction * 100).round
# => 91

@rhannequin rhannequin self-assigned this May 20, 2024
@rhannequin rhannequin force-pushed the observer-for-geocentric-parallax branch from 25d142b to d9c6452 Compare May 20, 2024 13:46
@rhannequin rhannequin force-pushed the moon-phase-angle-illuminated-fraction branch from eb84b38 to 10d6b81 Compare May 20, 2024 13:46
@rhannequin rhannequin marked this pull request as ready for review May 20, 2024 14:18
@rhannequin rhannequin force-pushed the observer-for-geocentric-parallax branch from d9c6452 to 420b34c Compare May 20, 2024 20:14
@rhannequin rhannequin force-pushed the moon-phase-angle-illuminated-fraction branch from 10d6b81 to 360430b Compare May 20, 2024 20:14
@rhannequin rhannequin force-pushed the observer-for-geocentric-parallax branch from 420b34c to 485857b Compare May 22, 2024 23:01
@rhannequin rhannequin force-pushed the moon-phase-angle-illuminated-fraction branch from 360430b to da0f5de Compare May 22, 2024 23:01
@rhannequin rhannequin force-pushed the observer-for-geocentric-parallax branch from 485857b to 0c88624 Compare May 24, 2024 08:38
@rhannequin rhannequin force-pushed the moon-phase-angle-illuminated-fraction branch from da0f5de to d8410b4 Compare May 24, 2024 08:38
@rhannequin rhannequin force-pushed the observer-for-geocentric-parallax branch from 0c88624 to 562a1f7 Compare May 24, 2024 09:46
@rhannequin rhannequin force-pushed the moon-phase-angle-illuminated-fraction branch from d8410b4 to aca2641 Compare May 24, 2024 09:47
@rhannequin rhannequin force-pushed the observer-for-geocentric-parallax branch from 562a1f7 to c7b9fb2 Compare May 27, 2024 18:51
@rhannequin rhannequin force-pushed the moon-phase-angle-illuminated-fraction branch from aca2641 to 7daf326 Compare May 27, 2024 18:51
Base automatically changed from observer-for-geocentric-parallax to main May 30, 2024 08:50
@rhannequin rhannequin force-pushed the moon-phase-angle-illuminated-fraction branch from 7daf326 to bf02e4c Compare May 30, 2024 08:51
@rhannequin rhannequin merged commit 31b38bc into main May 31, 2024
@rhannequin rhannequin deleted the moon-phase-angle-illuminated-fraction branch May 31, 2024 08:25
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