Don Cross
9df1a7a128
Added documentation for JavaScript function Constellation.
2020-05-04 13:37:11 -04:00
Don Cross
4d81c4324f
Shrank minified JS code to 76338 bytes.
...
Represent DeltaT table entries as lists rather than objects.
This makes them more compact in the minified code.
2020-05-04 12:59:17 -04:00
Don Cross
e7e9d1bb78
Shrank minified JavaScript to 76978 bytes.
...
Represent constellation name/symbol pairs as lists rather than objects.
This makes the representation more compact.
2020-05-04 12:49:00 -04:00
Don Cross
762bf08f66
Shrank minified JS code more: from 80904 to 77329 bytes.
...
Store each constellation border as a list rather than an object.
This makes the encoding more compact.
2020-05-04 12:39:32 -04:00
Don Cross
9a6005bf24
Shrank minified JavaScript from 86423 bytes to 80904 bytes.
...
Changed the units of the angles stored in the constellation
borders data so that the numbers can be represented more compactly.
This requires converting the numbers back at runtime, but this is
well worth the smaller size.
2020-05-04 12:27:37 -04:00
Don Cross
c955a56210
Added constellation finder function to JavaScript code.
2020-05-04 10:09:46 -04:00
Don Cross
2cb06afa63
Added JavaScript code generator for constellation data tables.
2020-05-03 22:06:18 -04:00
Don Cross
3bb740fd1c
Fixed #62 - Automatically update copyright year range.
2020-04-30 15:12:14 -04:00
Don Cross
e80b5a45d0
Updated npm package version to 1.0.5: supports EMB, SSB.
...
Astronomy Engine now supports calculating heliocentric
Solar System Barycenter (SSB) and
Earth/Moon Barycenter (EMB).
2020-04-29 22:11:11 -04:00
Don Cross
f754a6de82
Fixed #58 - Solar System Barycenter, Earth/Moon Barycenter.
...
Can now calculate the heliocentric Solar System Barycenter (SSB)
and Earth/Moon Barycenter (EMB).
Changes made in C, C#, JavaScript and Python:
Added new body codes SSB, EMB.
Added support for calculating both in HelioVector functions.
Verified that all calculations match NOVAS.
Verified that all calculations match each other across languages.
2020-04-29 21:53:57 -04:00
Don Cross
20f94c9622
Published npm package 1.0.4
2020-01-07 16:28:19 -05:00
Don Cross
6d871c023a
More JavaScript documentation fixes.
2020-01-07 15:34:15 -05:00
Don Cross
762ae30a14
Fixes to JavaScript documentation.
2020-01-07 14:59:42 -05:00
Don Cross
60db741717
Ported planetary apsis search functions to JavaScript.
2020-01-07 14:09:45 -05:00
Don Cross
02dc4e95a4
Pluto apsis predictions are now within 0.0810 degrees of orbit period.
...
Increased from 7 Chebyshev sections to 8.
This also decreases max arcmin error from 0.336084 to 0.120252.
2020-01-06 11:25:47 -05:00
Don Cross
f67ddf1c8d
Planet apsis: all planets but Pluto now have prediction error below 0.1 degrees.
...
Adjust VSOP models for planets to bring their prediction errors beneath
0.1 degrees of a total orbit.
ctest no longer runs tests when no command line arguments are given.
That was annoying because I kept running it by accident.
2020-01-06 10:59:38 -05:00
Don Cross
819e59745d
Decreased Neptune apsis prediction errors from 49.25 days to 15.45 days.
...
Include an extra 4 terms in the radial component of the VSOP
model for Neptune. The code automatically picks the 4 terms
that maximize the time derivative's highest possible contribution.
2020-01-05 20:44:29 -05:00
Don Cross
b6a82de0a6
Published npm package 1.0.3.
2019-12-19 21:31:31 -05:00
Don Cross
7040ff8684
Cleaned up documented return types for Python functions.
...
Never use pound-signs inside documentation for Python return types.
Automatically create internal link just like for function parameter types.
Added special case logic in pydown.py for "Time or `None`".
Fixed minor documentation mistakes in JS version.
2019-12-18 16:53:13 -05:00
Don Cross
dc2e561e41
JS: Added rotation functions to documentation topic index.
2019-12-15 10:44:36 -05:00
Don Cross
4fc2787569
JS: Added demo program horizon.js.
2019-12-14 21:16:43 -05:00
Don Cross
ef633967e3
C, JS: continued eliminating redunancies in precession, nutation.
2019-12-14 20:18:45 -05:00
Don Cross
7b7c28bced
C: Added Astronomy_VectorFromEquator and Astronomy_EquatorFromVector.
...
These helper routines in the JavaScript code make sense for C also.
2019-12-14 17:20:32 -05:00
Don Cross
185a872082
JS: Added helper function EquatorFromVector.
2019-12-14 14:44:29 -05:00
Don Cross
7307c99280
JS: Added function VectorFromEquator to convert equatorial coordinates to vector.
2019-12-14 14:36:56 -05:00
Don Cross
46fa5174a2
JS: Added factory function MakeRotation.
...
There was no way for outside callers to directly instantiate
a RotationMatrix object. Provided the factory function MakeRotation.
2019-12-14 14:19:25 -05:00
Don Cross
32f5567254
JS: More unit testing of rotation. Fixed a couple more bugs it uncovered.
2019-12-13 21:06:52 -05:00
Don Cross
690d3d0528
JS: More unit testing of rotation. Fixed a couple of bugs.
2019-12-13 20:18:48 -05:00
Don Cross
8322975e15
JS: Added inverse matrix unit test. Fixed bugs it uncovered.
2019-12-13 07:21:24 -05:00
Don Cross
13041b735e
JS: Finished porting rotation functions. Not yet tested.
2019-12-12 21:30:54 -05:00
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