Files
astronomy/generate/debug.html
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

23 lines
708 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>Astronomy debug</title>
<script src="../source/js/astronomy.js"></script>
<script>
function Run() {
var observer = Astronomy.MakeObserver(29, -81, 10);
var date = 2481207.5;
var pos = Astronomy.GeoMoon(date);
console.log(pos);
var sky = Astronomy.SkyPos(pos, observer);
console.log(sky);
var hor = Astronomy.Horizon(sky.t, observer, sky.ra, sky.dec);
console.log(hor);
}
</script>
</head>
<body>
<input type="button" onclick="Run()" value="Run" >
</body>
</html>