Monday, February 15, 2010

Yet Another Planetarium Simulation

Last November, as another semester of teaching Elementary Astronomy drew to a close, I finally broke down and started writing my own planetarium simulation.

On its face, this was a ridiculous waste of time. There are already dozens, if not hundreds, of planetarium simulation programs that will show you where the stars and planets appear in the sky, as viewed from your chosen location at your chosen time. They run on every microcomputer platform and many handheld devices. Some are extremely sophisticated, with databases of millions of stars, beautiful images, and even the ability to interface with a telescope.

But I wanted something a little different. To be useful to most of my students, a simulation program has to be (a) free; (b) delivered through a web browser, with nothing to download or install; (c) easy for beginners to understand; and (d) convenient for showing the motions of the stars and other objects with respect to earth's horizon.

Sky View Cafe is a great Java applet that almost fits the bill, and I’ve been recommending it to my students for several years. It’s loaded with features and was obviously written by a pro. But its time/date control is a bit awkward to use, so it isn’t ideal for showing celestial motions. Worse, its default full-sky view can be disorienting for beginners, who often have trouble relating the circle on the screen to the domed sky overhead.

Fifty-six years ago, H. A. Rey showed the best way to draw the sky for beginning observers. The illustrations in his delightful book Find the Constellations show half the visible sky at a time, as if viewed through a huge domed window stretching 180 degrees from side to side, from the horizon at the bottom to zenith at the top. I vividly remember reading that book as a child, and I wanted a web applet that gives a similar view of the sky.

I also wanted intuitive, analog controls for changing the time and date, so the sky’s motions would be easy to explore. Inspired by the GoSkyWatch iPhone app, I settled on a circular dial for changing the time of day, with a concentric inner dial for changing the date of the year. I added similar analog controls for setting the latitude and longitude.

To make the motions even more apparent, I included a feature that WSU’s digital planetarium projector has: the ability to show “trails” that simulate long-exposure or multiple-exposure photographs. Besides the familiar star trails, you can use this feature to trace out analemmas and retrograde loops.

This project has soaked up much of my free time for the last three months, but I think it’s essentially finished for the time being. I hope my students--and others who discover it--will find it useful.


  1. Woo-hoo! Beautiful! Thanks for throwing your hat in the astronomical ring, Dan. I've always been disappointed that none of the applets or iPhone apps I've come across use H.A. Rey's constellation outlines, so I thank you for providing those too, in addition to many useful features.

  2. I used a few of Rey's constellation outlines, but by no means all. And I didn't have his book in front of me so I'm not even sure how many ultimately came from him.

  3. I see now. I spoke too soon based on faulty memory circuits. Have you tried 3D Sun yet? It might be useful for your course.

  4. This set of simple star charts seems to use most of Rey's constellation outlines. I consulted this and a couple other sources in deciding how to draw them in the applet.

  5. So, Dan, How does one "discover it-- to find it useful." Where is this magic compilation of some of Reys outlines in electronic and portable form?

    1. The link to my simulation is at the top of the article:

      Unfortunately, Java applets became obsolete not long after I wrote this, so running the simulation in an up-to-date browser may be difficult. As of today I can still run it in Firefox, but even that may not work for other system configurations and I can't provide troubleshooting assistance. Maybe someday I'll port the simulation to JavaScript...

    2. Why write about something that doesn't exist?

  6. I’ve been finding lots of references to and descriptions about your applet, but nowhere can I find a link to install it! Help! Thank you.
    Barbara in BC, Canada


Not registered? Just choose "Name/URL" and enter any name you like; you can ignore the URL field.