hnsky_b.gif
"SKY_TOASTER, program for conversion to the TOAST projection"

Sky_toaster v0.0  is an experimental program to convert an equirectangular projection of the sky to the TOAST (Tessellated Octahedral Adaptive Subdivision Transform)  projection and reverse. In addition it can add/use a galactic sky projection or FITS images.  The resulting TOAST projection can be used in the HNSKY planetarium program. The sky_toaster program is available with Delphi source code. 

In an equirectangular projection, the coordinates for the sky, the Right Ascension (RA) and Declination (Dec) are linear with the position. Below an in equirectangular projection of the sky (made with Excel) you can load in the sky_toaster v0.0 for testing purposes:

This is the resulting TOAST projection of the sky:

It is a "Simple Stretching" rather then a "Peirce quincuncial" projection. The unusual warping is as follows. The celestial pole is in the center, and south celestial pole is split into four at the corners. In fact, all four corners meet at exactly the same point. The equator follows a square whose corners are the middle of each side. The TOAST projections have the advantage of suffering less distortion than equirectangular projections near to the poles. The de-toasting routine (see source)  uses only "if" statements and multiply/divide math making it reasonable fast. The provided TOAST routine produces linear declination lines. The microsoft TOAST program. curve them to circles near the pole. Others use Schwarz-Christoffel mapping to have locally less distortion for maps by both curving the declination lines near the poles and RAlines near the equator.  The TOAST surface is square and half of the input file.


You can do the same with a NASA visible word map. The north pole is in the middle. The south pole is at the four corners:

The intension of the SKY_TOASTER was to create an efficient storage medium of a full sky image for use in the HNSKY planetarium program. The image is stored in PNG and used as a pixel database for the plotting routine.  So the final position of each pixel is later recalculated in HNSKY to the selected projection and zoom factor.  This makes the projection in HNSKY slow but flexible. 

The following steps where taken to compile a TOAST projection of the sky  

Method 1:
  1. Load an equirectangular projection.
  2. Convert the result to a TOAST projection and save.
  3. Use the projection in the HNSKY planetarium program.

Method 2:
  1. Load a black rectangular image with dimensions 2x1 like 1800x900 pixels which will later contain the whole sky.
  2. Add the MikyWay ESO0932a in galactic coordinates  (3000x6000 pixels) or any FITS file from the DSS2. All the FITS files will be plotted in the correct size,orientation. and place assuming the rectangle is the whole sky with dimensions 360 wide x180 degrees high. The added MilkyWay should be about twice in resolution then the image from step 1) to fill all pixels:
  3. Convert the result to a TOAST projection and save.
  4. Use the projection in the HNSKY planetarium program.

Since the ESO0932a Milky Way panorama has distortions up to one degrees, in method 2,  between step 2) and 3) warping of the intermediate results was required by comparing the Equirectangular ESO0932a result with and seperate produced astrometric correct Milky Way compiled of several  FITS images in two layers of an drawing program. 

Milky Way ESO0932a in equirectangular projection made with the sky_toaster using method 2:



Milky Way equirectangular reference projection compiled from many FITS files downloaded from Skyview used for astrometric reference using method 2:


The Milky Way in TOAST projection:



Then the result in the HNSKY planetarium program:


Email:  

Last update: 2016-3-29


References:

WorldWide Telescope Projection Reference



Back to the  Hallo northern sky planetarium software program