https://github.com/codebox/star-rise-and-set-times
A browser-based tool for calculating the rising and setting times of stars
https://github.com/codebox/star-rise-and-set-times
astronomy javascript
Last synced: 11 months ago
JSON representation
A browser-based tool for calculating the rising and setting times of stars
- Host: GitHub
- URL: https://github.com/codebox/star-rise-and-set-times
- Owner: codebox
- License: mit
- Created: 2018-11-23T16:12:32.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-22T18:26:15.000Z (over 7 years ago)
- Last Synced: 2025-05-22T16:35:29.644Z (about 1 year ago)
- Topics: astronomy, javascript
- Language: JavaScript
- Homepage: https://codebox.net/pages/star-rise-and-set-time-calculator
- Size: 179 KB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# star-rise-and-set-times
Here is a browser-based tool for calculating the rising and setting times of stars. You can [try it online here](https://codebox.net/pages/star-rise-and-set-time-calculator).

The code is based on formulae [from](https://idlastro.gsfc.nasa.gov/ftp/pro/astro/hadec2altaz.pro) [various](http://aa.usno.navy.mil/faq/docs/GAST.php) [sources](https://astronomy.stackexchange.com/a/14508/24882) with much credit to [Barry Carter](http://wordpress.barrycarter.info) for his help and patience.
This tool does not take into account atmospheric refraction, which can affect rising/setting times by several minutes - if you need that kind of accuracy then see [this page from the US Naval Observatory](https://aa.usno.navy.mil/data/docs/mrst.php). The results [have been checked](https://github.com/codebox/star-rise-and-set-times/blob/master/test/spec/calc-spec.js) against various [other](https://aa.usno.navy.mil/data/docs/mrst.php) [online](https://www.wolframalpha.com/) [tools](https://in-the-sky.org/), written by people far more competent than me, and they broadly agree, although each tool gives slightly different answers. It is probably safe to assume accuracy to within ±10 minutes.