Airmass calculator for astronomyThe term “airmass” is often used when discussing atmospheric effects on astronomical observations. It is simply the column density of the atmosphere along the line of sight of an observation, divided by the column density towards the zenith, so that the airmass is 1 at the zenith and grows towards the horizon. The program airmass.c [65 kB] computes the airmass with more precision than the approximations astronomers typically use. In fact, to quote the program itself, it “was developed to find out to just what degree the standard approximate formulas for airmass are inaccurate.”The top of the source code contains a very extensive comments section, including a discussion of the background of the problem, a derivation of the physical formulae involved, and an analysis of all the assumptions that went into the final algorithm. The most significant assumptions are that the atmosphere is spherically symmetric and that its temperature profile conforms to the “U.S. Standard Atmosphere.” Even these assumptions are likely to have only a small effect on the calculations. The program computes the dry air column density and the airmass, and optionally compares its airmass estimate to those from the approximate formulae; it also can crudely estimate the water vapor column density. The input parameters are the zenith angle and the wavelength of the observation; the local temperature, pressure, and relative humidity; the altitude, latitude, and longitude of the observatory; and the day of the year. The zenith angle is the only significant parameter, and the program will assume default values for the other parameters if they are not specified. The file airmass.c contains the complete source code, which is easily compiled into a standalone program with gcc on UNIX-like operating systems. Full permission is granted to copy and distribute the program, as long as the source code is left completely intact and unmodified. |
CBM2ASCCBM2ASC converts a Commodore ASCII file to standard ASCII. It runs on MS-DOS or a DOS box under Windows. I have placed it in the public domain.The Commodore 64’s “ASCII” character set is substantially different from the ASCII character set used by most machines—so different that if you try viewing, on a PC, an unconverted Commodore 64 text file, you will mostly just see garbage. CBM2ASC makes the text legible again. CBM2ASC is also fine-tuned to the conversion of two specific types of Commodore text files, selected by passing an option on the CBM2ASC command line. These specific types of files are Commodore BASIC programs, and documents written with the SpeedScript word processor. CBM2ASC cannot convert many of the specialized Commodore ASCII codes, notably graphics characters which have no equivalent in the PC’s ASCII character set. But it does convert the standard characters (the symbols typically found on typewriter keyboards). The “Commodore BASIC” option converts just about everything except graphics characters within BASIC strings, and the “SpeedScript” option converts an entire SpeedScript file except for escape codes, which affect text formatting, not content. The usual procedure is to first copy the raw floppy disk image from the Commodore 64 disk drive to the PC using an X1541 cable and associated software (at least one enterprise appears to sell these cables, but I assembled my own cable so I have not interacted with them). Once the raw disk image is sitting on the PC, the next step is to use a utility like D64T641 to break the disk image up into individual binary files sitting in a DOS directory. The binary file names typically end in .PRG or .SEQ, and they correspond to individual files on the original Commodore 64 disk. Finally, CBM2ASC comes in, converting a desired binary file from Commodore ASCII to standard ASCII. Download CBM2ASC now [22 kB]. The ZIP file contains the CBM2ASC executable (version 1.1, dated 1999 Jan. 28), and a text file that explains the program and its usage in more detail. 1Unfortunately, this utility no longer seems to be available on the Internet. CTools04 appears to provide the same functionality, but I have not used it. A variety of Commodore 64 file utilities are available at http://www.fairlight.to/tools/pc.html. |
Meyer Logo Startup and Shutdown Screens for WindowsNow available—the classic ‘M’ logo, for your Windows desktop! Tired of the bland graphics that remind you everyday of your computer’s fealty to Microsoft Corporation? Replace them with graphics to remind you everyday of your new fealty to Meyer Gigacorporation! mlogo.zip [287 kB] includes a textured high-resolution bitmap for use as a desktop background, and startup and shutdown screens for Windows 95/98/Me. The image at left shows the animation of the startup screen once it is installed. Installation instructions are in the README file within mlogo.zip. Unfortunately, Microsoft changed the specifications, so that these startup and shutdown screens will not work under Windows 2000 or XP. You can probably guess as to why Microsoft did this. |
Starcraft mission: The Citadel of Aiur
You may find the scenario impossible when you first play it, but believe it or not, it is definitely winnable—I have single-player save games that prove it. My brother Kent and his friend, playing allied vs. the computer, also won. Kent told me that he was very irritated by the mission. I think he meant that as a compliment. | ||
Warcraft 2 MapsI created two custom maps, or “PUDs,” for the computer game Warcraft II when it was popular several years ago. The ZIP file war2puds.zip [39 kB] contains these two maps, HOGITALL.PUD and SHEPHERD.PUD, as well as a README file which briefly explains them. I have placed the maps in the public domain; see the README file for legal stipulations.HOGITALL.PUD was designed and optimized for four human players allied against four computer players. The “twist” to this map is that all four humans must share a single, but massive, gold mine in the center of the map. If you send too many peasants to the gold mine, you will probably anger your fellow players, hence the map name (“Stop hogging it all!”); I think this concept made for a rather unusual Warcraft II scenario. SHEPHERD.PUD is more ordinary, but does involve a lot of sheep. |
Ph.D. DissertationBinary Star Speckle Photometry and Astrophysical Implications. Ph.D. dissertation, Yale University (2002). ISBN:Free hardbound copies are no longer available. Copies are available through the following channels:
|