Don Cross
112366b66a
Fixed cosmetic issues in demo pages after removing GitHub CSS.
2019-07-09 20:18:03 -04:00
Don Cross
1b0ba300d8
Removed all references to GitHub Pages, because it has been disabled.
...
I'm not going to use GitHub Pages after all, because it is
causing more problems than it is helping. All I really wanted
was a way to host live JavaScript browser examples.
I will find my own way of hosting just those.
The main problem is that GitHub pages uses a different flavor
of Markdown than GitHub. This makes it really difficult to get
something that works right across both. In general, it doubles
how much stuff I have to look at when I make a cosmetic change.
So I have already turned off GitHub Pages on this repo,
and this commit removes all links and references to it.
2019-07-09 19:49:28 -04:00
Don Cross
0c824bcf1b
Major performance improvement for C library: re-use Earth tilt calculations.
...
Just like I did in the Python version, avoid repeated calculations
of the Earth's tilt angles for a given time. Do this by caching
the angles in the astro_time_t structure. This requires passing in
the time values by address instead of by value. I may go back and
change all the time parameters to pointers for consistency.
2019-06-27 21:47:30 -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
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
3b8a02be75
Fixed broken code in positions.html.
...
I had not tested this browser example in a while.
Since then I made breaking changes in astronomy.js.
Just now fixing it here.
2019-06-05 21:30:45 -04:00
Don Cross
7591cd26ef
Starting to add more C documentation. Still working on doxygen/moxygen.
2019-05-26 12:05:55 -04:00
Don Cross
baf38c9a0e
No C API reference exists yet.
2019-05-25 21:56:06 -04:00
Don Cross
9ed995e462
Added C function Astronomy_CurrentTime(). Added C moon phase demo.
2019-05-25 21:18:24 -04:00
Don Cross
dc0bb07fbb
Positions demo: save geographic coordinates.
2019-05-15 21:10:27 -04:00
Don Cross
b80bb78db5
Browser demo positions.html now shows altitude and azimuth.
2019-05-15 20:18:21 -04:00
Don Cross
73d990d656
Added regex validation to observer coordinates in positions.html.
2019-05-14 21:58:52 -04:00
Don Cross
e8d40778d3
Allow entering observer coordinates in positions.html demo page.
2019-05-14 20:20:24 -04:00
Don Cross
97bd6bf070
Better formatting of RA, DEC in positions.html demo page.
2019-05-14 19:29:21 -04:00
Don Cross
f723ea93d9
Starting to implement another JS demo: planet positions.
2019-05-14 18:11:38 -04:00
Don Cross
a47e2e1bff
Link Node.js examples directly to GitHub repo to have better view of the source code.
2019-05-13 21:22:23 -04:00
Don Cross
36f55d272a
Added moon phase example for Node.js.
2019-05-13 16:58:34 -04:00
Don Cross
330cd47f9a
Removed fossil Node.js section from JS browser document.
2019-05-13 15:19:31 -04:00
Don Cross
30ab57d6a0
Fixed incorrect link.
2019-05-13 14:58:32 -04:00
Don Cross
1bde214fd3
Fixed incorrect links.
2019-05-13 14:55:18 -04:00
Don Cross
4ae1626615
I had Node.js, browser docs backwards.
2019-05-13 14:52:20 -04:00
Don Cross
8cd6b421b6
Split JS examples into separate pages for Node.js and browser.
2019-05-13 14:44:05 -04:00
Don Cross
ee2f3fbaec
Added horizontal lines in document.
2019-05-12 17:07:35 -04:00
Don Cross
8f6616939a
Provide GitHub repo link in moonphase.html.
2019-05-12 17:04:39 -04:00
Don Cross
08115ae55d
More work on moon phase demo page.
2019-05-12 14:56:43 -04:00
Don Cross
dc7aa5afbb
More work on JavaScript demo page: Moon Phase Calculator.
2019-05-12 14:30:23 -04:00
Don Cross
698870426a
Link to examples. Improved wording.
2019-05-12 11:23:35 -04:00
Don Cross
f120880f2c
Fun little demo of calculating the Moon's phase.
2019-05-11 21:27:50 -04:00
Don Cross
6192dcf8d6
Experiment with live code demo on GitHub Pages.
2019-05-11 21:14:28 -04:00