https://github.com/wolgemoth/wgccre
A C++ solution implementing several reports by the Working Group on Cartographic Coordinates and Rotational Elements for determining the orientation of different astronomical bodies.
https://github.com/wolgemoth/wgccre
astronomy bodies cartographic coordinates cpp cpp17 elements geological header-only header-only-library iau international-astronomical-union orientation planets rotation rotational solar-system tempalte templated templates
Last synced: 3 months ago
JSON representation
A C++ solution implementing several reports by the Working Group on Cartographic Coordinates and Rotational Elements for determining the orientation of different astronomical bodies.
- Host: GitHub
- URL: https://github.com/wolgemoth/wgccre
- Owner: wolgemoth
- License: mit
- Created: 2024-05-01T11:42:00.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-05-09T17:14:29.000Z (about 1 year ago)
- Last Synced: 2025-02-06T00:31:49.010Z (4 months ago)
- Topics: astronomy, bodies, cartographic, coordinates, cpp, cpp17, elements, geological, header-only, header-only-library, iau, international-astronomical-union, orientation, planets, rotation, rotational, solar-system, tempalte, templated, templates
- Language: C++
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WGCCRE
### About
This is a project implementing several reports by the Working Group on Cartographic Coordinates and Rotational Elements for determining the orientation of different astronomical bodies.
At the moment it currently partially-implements reports 2015 and 2009, providing methods to compute the orientation of each of the 8 planets in the solar system, alongside Sol and Earth's moon. It also includes a utility for converting the rotation to be compatible with VSOP87, if needed.
The implementation is heavily-templated and suitable for use with scalar types of varying precision.
It is currently written in such a way that it returns the orientations as euler angles (degrees), represented as arrays of 3 elements each. However, the implementation can easily be converted to return a different type should your project require.
If you find a bug or have a feature-request, please raise an issue.
### Instructions
The implementation is header-only and written in templated C++17. You should not need to make any adjustments to your project settings or compiler flags.
Simply include it in your project and you are ready to start!
### Note
If you intend to do anything more advanced than amateur astronomy, there exist far more precise solutions, such as those provided by NASA JPL, the IAU Minor Planets Centre, and the IERS.
This project is also in no way associated with the IAU or WGCCRE. Please refer to the official sources for the most up-to-date reports and errata.