Skip to content

Ephemeris visualization improvements#4850

Open
Atque wants to merge 2 commits intoStellarium:masterfrom
Atque:ephemeris-visualization-improvements
Open

Ephemeris visualization improvements#4850
Atque wants to merge 2 commits intoStellarium:masterfrom
Atque:ephemeris-visualization-improvements

Conversation

@Atque
Copy link
Copy Markdown
Contributor

@Atque Atque commented Apr 2, 2026

This multi-fix introduces a few new features to the ephemeris tab of the AstroCalc:

  1. Letting users label ephemeris markers in any combination of year, month, days, hours, minutes and seconds by corresponding checkboxes
  2. Introduce anti-clutter for both markers and labels, with configurable pixel limit
  3. Letting users label only the first of each month and having the label written as three-letter-abbreviation of the month's name
  4. The most complex feature: introduce a new time step "Sun at altitude", which lets users plot ephemerides of objects at a specific solar altitude, either in evenings (after noon) or mornings (before noon). It should work even for Arctic and Antarctic locations where the Sun doesn't meet conditions specified. In such cases, no ephemeris marker is drawn for that date. (Note that horizontal coordinates need to be checked for this feature to work as intended!)

Fixes #1315, #2829 and #4400

Screenshots:

The extended ephemeris extra settings window (with ephemeris in the background labeling only the first of each month):
stellarium-034

Venus at solar altitude = -6 during this spring's evening from my location (also showing the new time step "Sun at altitude"):
stellarium-036

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • This change requires a documentation update
  • Housekeeping

Test Configuration:
Ubuntu 24.04.4 LTS
Qt 6.4.2.

Checklist:

  • My code follows the code style of this project.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (header file)
  • I have updated the respective chapter in the Stellarium User Guide
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Atque added 2 commits April 1, 2026 22:21
- Allow markers to be dated using any combination of Y/M/D/H/M/S
- Add anti-clutter system with pixel limits
- Support one marker per month (first day only)
- Add time step based on Sun altitude
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

Great PR! Please pay attention to the following items before merging:

Files matching src/**/*.cpp:

  • Are possibly unused includes removed?

This is an automatically generated QA checklist based on modified files.

@alex-w alex-w added this to the 26.2 milestone Apr 2, 2026
@gzotti
Copy link
Copy Markdown
Member

gzotti commented Apr 2, 2026

YAY! Another long-standing plan of mine, esp. the second picture.
In the GUI, you could exchange the checkbox by a Combo to switch Morning/Evening. A bit more work, but prettier IMHO.

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.

A few requests for ephemeris visualization (AstroCalc)

3 participants