Commit Graph

1670 Commits

Author SHA1 Message Date
Don Cross
e2ff9b2197 JPL checker works for airless (no refraction) apparent coords.
Verified that the JPL checker works for apparent coordinates,
equatorial-of-date and horizontal, when I tell the JPL Horizons
tool to use its "airless" (no refraction) model.

Still need to implement refraction for at least horizontal coordinates
(where it really matters for rise/set times).
2019-04-12 17:16:41 -04:00
Don Cross
eaf6f3f7d6 JPL Horizons checker now working for astrometric equatorial coords.
Still need to resolve errors in apparent equatorial and horizontal coords.
2019-04-12 16:39:23 -04:00
Don Cross
27d353ff7a Created script to test all JPL Horizons files. 2019-04-12 15:58:41 -04:00
Don Cross
3d0c984068 JPL Horizons test is starting to parse input files. 2019-04-12 15:34:28 -04:00
Don Cross
788e7334ea Test data generated by using the JPL Horizons online tool.
Used the JPL Horizons web interface at
https://ssd.jpl.nasa.gov/horizons.cgi
to generate test data for astrometric RA/DEC,
apparent RA/DEC, and apparent az/alt.
Will use this as a secondary unit test to confirm
that I'm not fooling myself by incorrectly using the
NOVAS C 3.1 code for unit tests.
2019-04-12 14:14:49 -04:00
Don Cross
167abe1c64 Removed obsolete comment. 2019-04-12 13:01:43 -04:00
Don Cross
80267c39ec Getting closer to correct horizontal coordinates.
Not quite right yet for some reason, but this is closer.
JavaScript function Astronomy.SkyPos() now returns both
J2000 (RA,DEC) and (RA,DEC) using true equator and equinox of date.
Use the latter to calculate horizontal coordinates.
This matches my call to NOVAS place() function, but there
are still errors larger than 2 degrees compared with JPL Horizons
and Heavens Above.

For example:

2019-04-11 19:47:00
variable           test.html  JPL Horizons   error(arcmin)
Sun azimuth	        245.455     246.585         -67.80
Sun altitude         50.858      51.261         -24.17
Jupiter azimuth     277.309     275.287         121.33
Jupiter altitude    -63.751     -63.860           6.52
2019-04-11 17:21:03 -04:00
Don Cross
005edb555b Unconfirmed calculation of horizontal coordinates.
I have horizontal coordinates calculated, but they might
be wrong (both in how I call NOVAS functions and the JS code itself)
because I think I'm mixing up equinox of date coordinates with
J2000 coordinates for (RA,DEC).

Fixed bug that caused excessive estimate of angular error:
right ascension and azimuth are like longitudes -- they matter
less as an object approaches the poles.  Scale such longitudinal
errors by the cosine of the latitudinal counterpart.
2019-04-11 14:15:31 -04:00
Don Cross
8c392a9cc8 Added HTML unit test of JavaScript code. 2019-04-11 12:30:06 -04:00
Don Cross
2da753ae61 Added support for building on Windows using Visual Studio 2015. 2019-04-09 15:07:02 -04:00
Don Cross
8dbe1d1f28 Renamed VSOP data types to lower case and to end with '_t'. 2019-04-09 13:42:32 -04:00
Don Cross
390e0692d7 Added JavaScript unit test. 2019-04-09 13:34:56 -04:00
Don Cross
e90a3006b6 Updated license comments in source code. 2019-04-09 12:43:08 -04:00
Don Cross
2decdbc685 Generating JavaScript code. 2019-04-09 12:23:35 -04:00
Don Cross
1e0527e2cf Generating VSOP output files. 2019-04-08 22:25:38 -04:00
Don Cross
f4b67f1f0e Automatically download and validate the ephemeris file if missing. 2019-04-08 15:45:23 -04:00
Don Cross
f163d86170 Starting to work on astronomy source generator C program. 2019-04-08 08:57:43 -04:00
Don Cross
2eab0b7805 Added source for NOVAS C 3.1. 2019-04-08 08:44:06 -04:00
Don Cross
b98d6c03a2 Added VSOP87 data and my C code for using it. 2019-04-08 08:39:34 -04:00
Don Cross
fa743529cc Starting the generate directory. 2019-04-07 17:02:50 -04:00