webdial

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

commit 96fdcf1f12b898db19520bd3cd621c65205463c8
parent 39cc33a67d403b8cf6b4c0a04df68336bb42cbe8
Author: Sean Lynch <seanl@literati.org>
Date:   Thu,  8 Sep 2011 11:21:22 -0700

Add sidereal time

Diffstat:
Mwebdial.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/webdial.js b/webdial.js @@ -39,7 +39,7 @@ function WebDial(canvas) { 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); + geometric_lon, "equ:", equ, "geo:", geo, "st:", st); drawSun(ctx, lon2x(geo.longitude), lat2y(geo.latitude)); var points = sun.terminator(geo.latitude, geo.longitude, sun.sun_rst_altitude, w, h);