Skip to content

Add approximate orbital models for major planets, EMB, and Moon.#176

Merged
attipaci merged 1 commit into
mainfrom
planet-orbitals
May 9, 2025
Merged

Add approximate orbital models for major planets, EMB, and Moon.#176
attipaci merged 1 commit into
mainfrom
planet-orbitals

Conversation

@attipaci

@attipaci attipaci commented Apr 28, 2025

Copy link
Copy Markdown
Collaborator

Adding:

  • make_planet_orbit() to generate Keplerian orbital elements for the major planets (sans Earth), and the Earth-Moon Barycenter (EMB), based on Standish & Williams 1992. In most cases such orbitals can provide arcmin-level precisions, especially for current dates.

  • make_moon_orbit() to generate geocentric Keplerian orbital elements for the Moon using the Chapront et al. 2002 model.

  • novas_approx_heliocentric() to calculate approximate heliocentric ICRS positions for the major planets (including Earth), and Moon and the Earth-Moon Barycenter, using the orbital models mentioned above.

  • novas_approx_sky_pos() to calculate approximate observable positions and velocities for the major planets (including Earth), and Moon and the Earth-Moon Barycenter, using the orbital models mentioned above.

  • novas_moon_phase() and novas_next_moon_phase() to calculate the Moon's apparent phase or the date/time when it reaches a specific phse, respectively, suing the Keplerian orbitals for the E-M Barycenter by Standish & Williams 1992, and the geocentric orbitals of the Moon by Chapront et al. 2002.

  • novas_orbital_native_posvel() to calculate orbital positions in the native system, in which the orbital is defined (e.g. ecliptic coordinates for planetary orbits).

@attipaci attipaci added the enhancement New feature or request label Apr 28, 2025
@attipaci attipaci added this to the 1.4.0 milestone Apr 28, 2025
@attipaci attipaci self-assigned this Apr 28, 2025
@codecov

codecov Bot commented Apr 28, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.91%. Comparing base (e653ecb) to head (bea0041).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##             main     #176    +/-   ##
========================================
  Coverage   99.90%   99.91%            
========================================
  Files          22       23     +1     
  Lines        4335     4494   +159     
  Branches      814      836    +22     
========================================
+ Hits         4331     4490   +159     
  Partials        4        4            
Flag Coverage Δ
unittests 99.91% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/equinox.c 100.00% <ø> (ø)
src/frames.c 99.71% <100.00%> (ø)
src/orbital.c 100.00% <100.00%> (ø)
src/plorbit.c 100.00% <100.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e653ecb...bea0041. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@attipaci attipaci force-pushed the planet-orbitals branch 16 times, most recently from 2a31370 to d0d4637 Compare May 4, 2025 19:31
@attipaci attipaci force-pushed the planet-orbitals branch 10 times, most recently from 19934db to 261fb7f Compare May 8, 2025 20:42
@attipaci attipaci force-pushed the planet-orbitals branch 4 times, most recently from a100650 to 0da6a33 Compare May 9, 2025 07:51
@attipaci attipaci marked this pull request as ready for review May 9, 2025 07:51
@attipaci attipaci force-pushed the planet-orbitals branch from 0da6a33 to bea0041 Compare May 9, 2025 08:15
@attipaci attipaci merged commit 6a9390d into main May 9, 2025
@attipaci attipaci deleted the planet-orbitals branch May 9, 2025 08:19
attipaci added a commit that referenced this pull request May 9, 2025
attipaci added a commit that referenced this pull request May 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant