I
Ivo
Hello all, while I am no astronomer or mathematician, I was wondering if
anyone could shed some light on the following question.
The phases of the moon have intrigued mankind since the dawn of time.
Astronomers have spent the ages developing magical, eh, mathematical
algorithms to predict (and postdict) the waning and waxing years and
millenia ahead.
Now plotting the current shape of the crescent in JavaScript, based on the
internal clock, takes about twenty lines. See:
<URL: http://www.eskimo.com/~jet/javascript/moonphase/moonphase.html >
But there is another repetitive shadow, that we are increasingly seeing on
computer generated world maps: that of the night. It 's the same kind of
shadow, but cycling in just 24 hours, and projected on a flattened surface.
So the question, does anyone know of a script that plots the current area's
of dusk, night and dawn on a worldmap? Many servserside language seem
capable of it, so it shouldn't be too difficult to implement in JavaScript
with a given jpg or gif where the equator, dateline and Greenwich pixel
positions are known.
To get the idea, see the shaded sinus at for example these sites:
<URL: http://www.fourmilab.ch/cgi-bin/uncgi/Earth/action?opt=-p >
<URL: http://www.die.net/earth/ >
Reinventing the wheel is silly, so translating an existing program to
Javascript seems the most sensible approach, but I haven't been able to find
the code for one just yet.
Many thanks,
ivo
http://4umi.com/image/wallpaper/worldmap.jpg
anyone could shed some light on the following question.
The phases of the moon have intrigued mankind since the dawn of time.
Astronomers have spent the ages developing magical, eh, mathematical
algorithms to predict (and postdict) the waning and waxing years and
millenia ahead.
Now plotting the current shape of the crescent in JavaScript, based on the
internal clock, takes about twenty lines. See:
<URL: http://www.eskimo.com/~jet/javascript/moonphase/moonphase.html >
But there is another repetitive shadow, that we are increasingly seeing on
computer generated world maps: that of the night. It 's the same kind of
shadow, but cycling in just 24 hours, and projected on a flattened surface.
So the question, does anyone know of a script that plots the current area's
of dusk, night and dawn on a worldmap? Many servserside language seem
capable of it, so it shouldn't be too difficult to implement in JavaScript
with a given jpg or gif where the equator, dateline and Greenwich pixel
positions are known.
To get the idea, see the shaded sinus at for example these sites:
<URL: http://www.fourmilab.ch/cgi-bin/uncgi/Earth/action?opt=-p >
<URL: http://www.die.net/earth/ >
Reinventing the wheel is silly, so translating an existing program to
Javascript seems the most sensible approach, but I haven't been able to find
the code for one just yet.
Many thanks,
ivo
http://4umi.com/image/wallpaper/worldmap.jpg