Commit Graph

404 Commits

Author SHA1 Message Date
Don Cross
d6ab8b5148 JS: Beginning to port vector rotation code from C. 2019-12-12 17:16:17 -05:00
Don Cross
4eed90fd42 Fixed broken links. 2019-08-16 17:54:55 -04:00
Don Cross
07c846bd83 Published npm package 1.0.2. 2019-07-26 17:47:25 -04:00
Don Cross
aa0561a534 Trim trailing whitespace from all generated source. 2019-07-07 14:05:49 -04:00
Don Cross
bae9d45e6f Generate JS iau2000b data from file. 2019-07-06 21:00:57 -04:00
Don Cross
463103ef70 JS: Generate AddSol calculations from data file. 2019-07-06 18:15:21 -04:00
Don Cross
4be7b949f6 JS: renamed field from apsisType to kind. 2019-06-30 07:50:29 -04:00
Don Cross
2b7fcc81a3 Removed 'iter' field from JS class HourAngleEvent. 2019-06-29 18:57:13 -04:00
Don Cross
f2478fa29d Improved performance in C and JS code by getting rid of ter2cel() function.
I already did this in the Python code to significantly reduce the number
of calls to e_tilt(). Did the same thing here: call sidereal_time() once,
then use the value 3 times.
2019-06-27 14:35:46 -04:00
Don Cross
221ea1130a Implemented Python Search function. Slight tweaks to C and JS versions. 2019-06-26 17:36:29 -04:00
Don Cross
07ba91ed65 Use same code generator for JavaScript and Python: Chebyshev Pluto model. 2019-06-26 05:25:09 -04:00
Don Cross
79df146194 More Python CalcMoon work in progress.
Also made minor optimizations to spin() function in both JS and C.
Fixed a mistake in JS and C that does not appear to have any
algorithmic consequences, but it was definitely confusing once I saw it.
2019-06-24 14:08:38 -04:00
Don Cross
5e755fe894 Fixed warnings found by lgtm. 2019-06-16 13:47:10 -04:00
Don Cross
e05b666713 Getting ready to publish npm package 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
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
b151c2e43d Added npm package 1.0.0 astronomy-engine 2019-06-06 19:52:34 -04:00
Don Cross
fcb04cd40f Fixed #15 - Using Google Closure Compiler to minify astronomy.js. 2019-06-05 20:52:05 -04:00
Don Cross
e0a119426a Correct for aberration when calculating angles seen from Earth.
Resolved FIXFIXFIX comments regarding whether or not to
correct for aberration. In all cases, the observations are
made from the Earth, in which case it makes the most sense
to correct for aberration.
2019-06-05 19:56:41 -04:00
Don Cross
5a1cb85318 Fixed #44 - Renamed relative_longitude to ecliptic_separation.
I was using "relative longitude" to mean two different things.
Resolved the ambiguity by using relative longitude only for
differences in eclitpic longitude as seen from the Sun.

Use "ecliptic separation" for differences in ecliptic longitude
as measured from the Earth.

Fixed completely wrong documentation in the JavaScript code;
it had the meanings backwards inside the ElongationEvent class.
2019-06-05 17:32:23 -04:00
Don Cross
23dfc35177 This should be last attempt to keep Pluto model identical between Linux and Windows. 2019-06-04 20:04:09 -04:00
Don Cross
436d598b76 One more attempt to avoid diff noise in Chebyshev models between Linux and Windows. 2019-06-04 18:29:29 -04:00
Don Cross
5a9550b8db Added documentation for C function Astronomy_Horizon. 2019-06-02 14:34:53 -04:00
Don Cross
4bb1c73c10 C: replace magic numbers with enumerated types. Added documentation.
The following functions had parameters that accepted cryptic numeric values:

    Astronomy_GeoVector
    Astronomy_Equator
    Astronomy_SearchRiseSet

Replaced such parameters with enumerations. Added the following enumerated types:

    astro_aberration_t
    astro_direction_t
    astro_equator_date_t

Added more C documentation.
2019-06-02 13:34:30 -04:00
Don Cross
2e638da314 More work on C documentation. Tweaks to JS documentation. 2019-06-02 11:45:45 -04:00
Don Cross
65e380e59c Trying to get tables to render on github.com; adding headers. 2019-05-28 21:30:45 -04:00
Don Cross
ba7814df4d Added protection from infinite loops in JS, C versions of SearchLunarApsis.
I made sure it is not possible to get stuck in an infinite
loop inside SearchLunarApsis, both the C and JavaScript versions.
If we loop over more time than 2 synodic months (more than enough time),
bail out with an exception (JS) or an internal error (C).
2019-05-24 17:21:04 -04:00
Don Cross
74dd133391 Implemented C function SearchLunarApsis, but not yet tested. 2019-05-24 16:58:03 -04:00
Don Cross
3c5c47d704 Implemented C function SearchMaxMagnitude, but not yet tested. 2019-05-23 19:44:32 -04:00
Don Cross
83d909751e Implemented C function SearchRiseSet, but not yet implemented. 2019-05-21 21:09:59 -04:00
Don Cross
aacc680b0e Implemented C function AngleFromSun, but not tested yet. 2019-05-20 16:41:54 -04:00
Don Cross
2e9f2918bd JS: Replaced SkyPos with Equator function.
This is a refactoring to follow suit with what I did in the C
version of the code. It improves accuracy by using different
geocentric vector calculations for j2000 and ofdate equatorial
coordinates. Allow optional aberration corrections.
2019-05-19 18:12:01 -04:00
Don Cross
bc9f3aa2ee Implemented C version of Pluto calculator.
Generate Chebyshev model for calculating Pluto's position.
2019-05-18 20:26:29 -04:00
Don Cross
bf2eeed105 Implemented C version of Horizon function. Fixed bug in C GeoPos.
The C version of GeoPos was returning an ante-dated time value,
not the time the caller asked about. In other words, it was
returning the time when the observed body emitted the light
the observer sees, not the time the observation was made on the
Earth, like it was supposed to. Fortunately, my unit test caught that.
2019-05-18 18:46:08 -04:00
Don Cross
3dc4760ab2 Eliminated the 'novas' refraction formula. Not used. 2019-05-18 15:03:44 -04:00
Don Cross
eb659f2b9b Implemented C version of GeoMoon. Speed optimization in JS code. 2019-05-17 21:42:51 -04:00
Don Cross
c7074f528e Reworking code generator to handle multiple target languages.
Generating Delta T table in both JavaScript and C.
Work in progress.
2019-05-16 15:24:14 -04:00
Don Cross
fe9c0e6f74 Fixed #37 - Corrected misleading documentation in Elongation, ElongationEvent. 2019-05-14 06:14:50 -04:00
Don Cross
a2f41f99fa Added more entries to the JavaScript documentation topic index. 2019-05-13 22:02:22 -04:00
Don Cross
981464876b Style adjustments in documentation. 2019-05-13 15:16:15 -04:00
Don Cross
c9fe15b01d Style adjustment on JS API reference page. 2019-05-13 15:13:04 -04:00
Don Cross
66d6cb5116 Fixed more broken links. 2019-05-13 15:08:07 -04:00
Don Cross
ded4035d14 Making API reference more approachable. Adding logos. 2019-05-13 10:23:52 -04:00
Don Cross
a258858821 Refactored Handlebars declarations so I don't need partial any more. 2019-05-10 08:23:34 -04:00
Don Cross
035bfa1a7c Documented the refraction parameter for Astronomy.Horizon. 2019-05-09 21:40:08 -04:00
Don Cross
6fc7fcd736 Checking in documentation changes. 2019-05-09 20:53:53 -04:00
Don Cross
1663da0e90 @see markers include links to the things they reference. 2019-05-09 20:10:02 -04:00
Don Cross
e6ce0440d4 Eliminated index listing in Markdown documentation. 2019-05-09 20:01:15 -04:00