Stellarium / stellarium

Stellarium is a free GPL software which renders realistic skies in real time with OpenGL. It is available for Linux/Unix, Windows and macOS. With Stellarium, you really see what you can see with your eyes, binoculars or a small telescope.
https://stellarium.org
GNU General Public License v2.0
7.71k stars 820 forks source link

Calculate Rise Time in the next 365 days #3267

Open marcmayo opened 1 year ago

marcmayo commented 1 year ago

Hello everybody, currently, there is Vec4d StelObject::getRTSTime which calculates the rise time of an object in the next 24 hours, but no further. For example, if you check a star in June, that only rises above the horizon in December, it currently says "Star is not visible tonight".

Our idea was to run the function for each day until it returns a time. Would that be a good approach or is there some better logic?

github-actions[bot] commented 1 year ago

Thanks for adding your first issue to Stellarium. If you have questions, please do not hesitate to contact us.

gzotti commented 1 year ago

Scripting is the way to develop your own ephemeris lists.

alex-w commented 1 year ago

Hello everybody, currently, there is Vec4d StelObject::getRTSTime which calculates the rise time of an object in the next 24 hours, but no further. For example, if you check a star in June, that only rises above the horizon in December, it currently says "Star is not visible tonight".

How it possible? Do you using Observability Analysis plugin to check nighttime visibility of the star? Just for understanding - a star can rise, transit and set in daytime.