webdial

Incomplete JS port of moondial.
git clone https://code.literati.org/webdial.git
Log | Files | Refs

commit 39cc33a67d403b8cf6b4c0a04df68336bb42cbe8
parent bb8af4bad6ed4cff368de8ef5d5806363b1bfed5
Author: Sean Lynch <seanl@literati.org>
Date:   Thu,  8 Sep 2011 11:17:24 -0700

Add debugging for sun pos

Diffstat:
Mwebdial.js | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/webdial.js b/webdial.js @@ -38,6 +38,8 @@ function WebDial(canvas) { var equ = sun.ecl_to_equ(lon, 0.0, epsilon); var st = sun.sidereal_time_greenwich(jd); var geo = sun.equ_to_geo(equ.ra, equ.dec, st); + console.debug("jd:", jd, "epsilon:", epsilon, "geometric_lon:", + geometric_lon, "equ:", equ, "geo:", geo); drawSun(ctx, lon2x(geo.longitude), lat2y(geo.latitude)); var points = sun.terminator(geo.latitude, geo.longitude, sun.sun_rst_altitude, w, h);