Commit Graph

2245 Commits

Author SHA1 Message Date
Don Cross
f29d44aa43 Python: Implemented MakeTime function. 2019-06-22 21:33:48 -04:00
Don Cross
66b0efda5a Python: CurrentTime() working. 2019-06-22 21:24:56 -04:00
Don Cross
e37d7e90f0 Trim trailing whitespace from python code. 2019-06-22 21:15:54 -04:00
Don Cross
00dad8be32 Starting to add Python support in source translator. 2019-06-22 21:12:14 -04:00
Don Cross
b8149b73d3 Added culminate project to Windows examples.sln 2019-06-19 17:53:27 -04:00
Don Cross
b82afc6387 Added seasons project to Windows examples.sln 2019-06-19 17:48:54 -04:00
Don Cross
6b15caff7b Added riseset project to Windows examples.sln 2019-06-19 17:44:21 -04:00
Don Cross
4b4b5b7af5 Fixed build problems in Windows for moonphase.c example. 2019-06-19 17:37:22 -04:00
Don Cross
743394b6d7 Added C example: culminate. 2019-06-18 21:00:57 -04:00
Don Cross
9e4c340f60 Added link to culminate.js in nodejs example markdown. Enhanced comments. 2019-06-18 15:41:04 -04:00
Don Cross
a205fcbcb7 Added node.js example for how to calculate culmination. 2019-06-18 15:28:47 -04:00
Don Cross
0e0bac95ce Added nodejs seasons test. 2019-06-16 21:30:53 -04:00
Don Cross
ab642feb21 Added C example: calculating seasons. 2019-06-16 20:39:40 -04:00
Don Cross
5e755fe894 Fixed warnings found by lgtm. 2019-06-16 13:47:10 -04:00
Don Cross
e9a6c036ab Added comments to a couple of static functions. 2019-06-15 20:38:49 -04:00
Don Cross
7f542cb5c7 Added test of riseset.js example program. 2019-06-15 15:50:54 -04:00
Don Cross
bffce01bb3 Added node.js example of calculating sunrise, sunset, moonrise, moonset. 2019-06-15 15:45:56 -04:00
Don Cross
480a7d44f1 Added browser demo for calculating sunrise, sunset, moonrise, moonset. 2019-06-15 15:12:28 -04:00
Don Cross
7b7294fff9 Print name of each C example before testing it. 2019-06-14 21:56:43 -04:00
Don Cross
3558f43d48 Added C example: rise and set times for Sun and Moon. 2019-06-14 21:50:26 -04:00
Don Cross
d476465b6d Actually test moonphase.js and moonphase.c. Test after generating code. 2019-06-13 21:38:27 -04:00
Don Cross
58fa90a0bf Reworked tests of C examples.
Moved test files into separate test directory (cleaner).
Make C and nodejs 'position' tests generate identical output.
2019-06-13 21:04:45 -04:00
Don Cross
4061aa6b58 Added nodejs example 'positions.js'.
Unit test the calculations and fail if output deviates.
2019-06-13 20:37:43 -04:00
Don Cross
ece698e9f2 Use relative links. Minor style changes. 2019-06-12 17:47:08 -04:00
Don Cross
cf0b2c354c Updated browser example readme. Mention minimized version. Use relative links. 2019-06-12 17:33:32 -04:00
Don Cross
fb09678d4f Verify that demo C programs build. Validate positions.c output.
I could also validate moonphase.c output if only I modified it
to accept an optional date and time parameter.
2019-06-11 21:05:44 -04:00
Don Cross
19c81b4897 Build example program positions.c in Linux. 2019-06-11 20:51:02 -04:00
Don Cross
18251d16a4 Added another C example program: positions.c.
This example demonstrates how to calculate equatorial coordinates
and horizontal coordinates of solar system bodies.

Added explanatory comments to moonphase.c.

Added #defines for MIN_YEAR, MAX_YEAR in astronomy.h.

Removed unnecessary code from positions.html; no longer need
to calculate geocentric vector before calculating equatorial coordinates.
2019-06-11 20:31:22 -04:00
Don Cross
88a352bf90 Moved moonphase Visual Studio project to its own directory.
Also starting to add a positions project.
2019-06-11 15:57:55 -04:00
Don Cross
1c94a2e77c Added examples.sln, to build C languages examples in Windows using Visual Studio. 2019-06-11 15:40:39 -04:00
Don Cross
10f4490047 Make type names larger in their respective section headers. 2019-06-09 13:21:23 -04:00
Don Cross
0dc47d17a7 A couple of minor fixes to C documentation. 2019-06-09 13:15:47 -04:00
Don Cross
067a4e3059 Replace doxygen links in raw Markdown with Markdown links. 2019-06-09 13:05:06 -04:00
Don Cross
50d18825d7 Fixed link syntax in C topic index. 2019-06-09 12:59:53 -04:00
Don Cross
38499434f3 More work on the C documentation topic index.
Added more functions to the topic index.
Use consistent verb tense: "finds", "calculates", etc.
2019-06-09 12:51:27 -04:00
Don Cross
628eb80080 Added "Celestial Bodies" section to C documentation topic index. 2019-06-09 12:28:06 -04:00
Don Cross
663f8cdb49 Added date/time section to C documentation topic index. 2019-06-09 12:22:14 -04:00
Don Cross
92241cb1e7 Documented C functions Astronomy_SearchLunarApsis and Astronomy_NextLunarApsis. 2019-06-09 11:58:47 -04:00
Don Cross
e05b666713 Getting ready to publish npm package v1.0.1. v1.0.1 2019-06-08 22:06:48 -04:00
Don Cross
416c3cfee3 Found a better way to define what files should be published to npm. 2019-06-08 22:00:18 -04:00
Don Cross
ae1c1dd80d Exclude extraneous files from npm package. 2019-06-08 21:51:43 -04:00
Don Cross
dd2f6fb7b1 Added documentation for C function Astronomy_SearchPeakMagnitude. 2019-06-08 21:48:53 -04:00
Don Cross
a9f29f1c52 Added documentation for C function Astronomy_SearchRiseSet.
Added more parameter checking for C and JS versions of that function.
2019-06-08 21:11:39 -04:00
Don Cross
435c1e1533 Added documentation for C function Astronomy_SearchHourAngle.
Also added extra parameter checking in C and JS versions of this function.
2019-06-08 19:57:31 -04:00
Don Cross
f02c523f1b Added documentation for Astronomy_SearchRelativeLongitude.
Also consistently use startTime as the parameter name for the
astro_time_t at which a search is to be started.
2019-06-08 17:35:29 -04:00
Don Cross
1fd7305b92 Documented C functions SearchMoonPhase, SearchMoonQuarter, NextMoonQuarter.
Added parameter checking in NextMoonQuarter.
Fixed typo.
2019-06-06 21:41:02 -04:00
Don Cross
642b1c1748 Documented C function Astronomy_SearchSunLongitude. 2019-06-06 21:04:56 -04:00
Don Cross
63dc0f88a2 Make npm badge a link to the npm package page for astronomy-engine. v1.0.0 2019-06-06 19:54:41 -04:00
Don Cross
b151c2e43d Added npm package 1.0.0 astronomy-engine 2019-06-06 19:52:34 -04:00
Don Cross
e42d46381c Got Google Closure Compiler working to minify astronomy.js on Windows.
On Windows, I ended up having to use the Java version instead of the npm package.
Otherwise I got weird errors and could not get output that matched the Linux version.
2019-06-05 22:42:00 -04:00