Skip to content

Comments

Add azimuth and lunar phase computations, enhance target handling#3

Open
VPRamon wants to merge 6 commits intomainfrom
azimuth-moonphase
Open

Add azimuth and lunar phase computations, enhance target handling#3
VPRamon wants to merge 6 commits intomainfrom
azimuth-moonphase

Conversation

@VPRamon
Copy link
Member

@VPRamon VPRamon commented Feb 24, 2026

  • Introduced azimuth computations for Sun, Moon, stars, and ICRS directions in azimuth.hpp.
  • Added lunar phase geometry and events handling in lunar_phase.hpp.
  • Implemented a Target class for fixed ICRS pointing with altitude and azimuth computations.
  • Updated siderust.hpp to include new headers for azimuth and lunar phase functionalities.
  • Modified spherical.hpp to correct azimuth and polar coordinate handling.
  • Enhanced time handling in time.hpp to support quantity-based arithmetic.
  • Updated tests to reflect changes in period handling and quantity usage.

- Introduced azimuth computations for Sun, Moon, stars, and ICRS directions in `azimuth.hpp`.
- Added lunar phase geometry and events handling in `lunar_phase.hpp`.
- Implemented a `Target` class for fixed ICRS pointing with altitude and azimuth computations.
- Updated `siderust.hpp` to include new headers for azimuth and lunar phase functionalities.
- Modified `spherical.hpp` to correct azimuth and polar coordinate handling.
- Enhanced time handling in `time.hpp` to support quantity-based arithmetic.
- Updated tests to reflect changes in period handling and quantity usage.
@VPRamon VPRamon self-assigned this Feb 24, 2026
@github-actions
Copy link

github-actions bot commented Feb 24, 2026

Code Coverage

Package Line Rate Branch Rate Complexity Health
include.siderust 63% 33% 0
include.siderust.coordinates 100% 50% 0
Summary 67% (300 / 445) 35% (167 / 484) 0

VPRamon added 4 commits February 24, 2026 23:48
- Updated mainpage.md to include new features: azimuth calculations, target tracking, and lunar phase events.
- Refined README.md in examples directory to reflect new build instructions and added examples.
- Expanded altitude_events_example.cpp to demonstrate altitude and azimuth calculations for multiple celestial bodies.
- Introduced azimuth_lunar_phase_example.cpp to showcase azimuth events and lunar phase geometry.
- Improved coordinate_systems_example.cpp with compile-time frame transformations and observer details.
- Enhanced coordinates_examples.cpp with detailed typed-coordinate construction and conversion examples.
- Revamped demo.cpp for a comprehensive end-to-end demonstration of siderust capabilities.
- Updated solar_system_bodies_example.cpp to include body dispatch API and ephemeris calculations.
- Added trackable_targets_example.cpp to illustrate polymorphic tracking of celestial targets.
- Removed redundant functions for crossing direction and moon phase label names, replacing them with direct usage of enum values.
- Updated output formatting in demo and example files to utilize operator overloads for cleaner code.
- Introduced stream operators for various classes including AzimuthExtremumKind, Position, Geodetic, Direction, and lunar phase enums for improved output readability.
- Enhanced Target class to support strongly-typed celestial directions, ensuring automatic conversion to ICRS where necessary.
- Added tests for new Target functionality, verifying altitude calculations and typed accessors for ICRSTarget and EclipticMeanJ2000Target.
- Updated coordinate tests to use qtty::Degree for consistency and clarity in direction initialization.
- Adjusted formatting in test files to improve readability by aligning code and comments.
- Replaced multiple lines of code with more concise versions in tests for TypedCoordinates, Ephemeris, Observatories, and Time.
- Ensured consistent use of spacing and indentation across all test cases.
- Verified that all assertions and static assertions maintain their intended functionality.
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