Skip to content

Commit

Permalink
Merge branch 'riseset_poles'
Browse files Browse the repository at this point in the history
Fixed issues with finding rise/set events near the
Earth's poles. Avoid assumptions that rise/set is
tied to hour angles.
  • Loading branch information
cosinekitty committed Nov 14, 2022
2 parents 6bfe2c2 + d9d955a commit 351e997
Show file tree
Hide file tree
Showing 254 changed files with 22,744 additions and 21,071 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</td>
<td style="text-align: center;"><a href="demo/c/">Examples</a></td>
<td style="text-align: center;">
<div><a href="source/c/"><img src="https://img.shields.io/badge/C%20%2f%20C%2b%2b-v2.1.9-blue" /></a></div>
<div><a href="source/c/"><img src="https://img.shields.io/badge/C%20%2f%20C%2b%2b-v2.1.10-blue" /></a></div>
<div><a href="source/c/">Code &amp; Docs</a></div>
</td>
</tr>
Expand Down Expand Up @@ -187,7 +187,7 @@ of complexity. So I decided to create Astronomy Engine with the following engine
- Support JavaScript, C, C#, and Python with the same algorithms, and verify them to produce identical results.
(Kotlin support was added in 2022.)
- No external dependencies! The code must not require anything outside the standard library for each language.
- Minified JavaScript code less than 120K. (The current size is <!--MINIFIED_SIZE-->117923 bytes.)
- Minified JavaScript code less than 120K. (The current size is <!--MINIFIED_SIZE-->118139 bytes.)
- Accuracy always within 1 arcminute of results from NOVAS.
- It would be well documented, relatively easy to use, and support a wide variety of common use cases.

Expand Down
318 changes: 168 additions & 150 deletions demo/browser/astronomy.browser.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions demo/csharp/correct/riseset.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
search : 2019-06-14T21:45:25.000Z
sunrise : 2019-06-15T10:12:42.721Z
sunrise : 2019-06-15T10:12:42.728Z
sunset : 2019-06-15T01:48:00.374Z
moonrise : 2019-06-14T23:02:43.343Z
moonset : 2019-06-15T09:12:25.416Z
moonrise : 2019-06-14T23:02:43.360Z
moonset : 2019-06-15T09:12:25.423Z
8 changes: 4 additions & 4 deletions demo/java/correct/riseset.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
moonset : 2018-11-30T19:22:02.718Z
sunset : 2018-11-30T22:21:03.024Z
moonrise : 2018-12-01T06:49:33.192Z
sunrise : 2018-12-01T13:22:51.106Z
moonset : 2018-11-30T19:22:02.735Z
sunset : 2018-11-30T22:21:03.107Z
moonrise : 2018-12-01T06:49:32.983Z
sunrise : 2018-12-01T13:22:51.098Z
moonculm : 2018-12-01T13:25:39.717Z altitude = 48.22
sunculm : 2018-12-01T17:51:53.358Z altitude = 22.57
8 changes: 4 additions & 4 deletions demo/kotlin/correct/riseset.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
moonset : 2018-11-30T19:22:02.718Z
sunset : 2018-11-30T22:21:03.024Z
moonrise : 2018-12-01T06:49:33.192Z
sunrise : 2018-12-01T13:22:51.106Z
moonset : 2018-11-30T19:22:02.735Z
sunset : 2018-11-30T22:21:03.107Z
moonrise : 2018-12-01T06:49:32.983Z
sunrise : 2018-12-01T13:22:51.098Z
moonculm : 2018-12-01T13:25:39.717Z altitude = 48.22
sunculm : 2018-12-01T17:51:53.358Z altitude = 22.57
318 changes: 168 additions & 150 deletions demo/nodejs/astronomy.js

Large diffs are not rendered by default.

Loading

0 comments on commit 351e997

Please sign in to comment.