Note: This documentation is preliminary and subject to change.
This document describes the use of a number of tools that can be used to help prepare data for the WorldWide Telescope.
To install the tools, follow the instructions for installing the WorldWide Telescope May 2009 ADK. To run the tools select All Programs and navigate to the following location:
![]() |
Ensure that you are using the latest versions of the tools: currently versions 0.23.
WWT StudyChopper takes as input a study image, and generates the tiled multi-resolution image pyramid, in the correct
folder structure and with the correct names, that WorldWide Telescope can accept as foreground image data. In addition to
the image pyramid for each study, an appropriate thumbnail image (96 pixels wide, by 45 in height) and two
WTML
files are
also output. One of these WTML
files references the location of the thumbnail and pyramid at a local address -- useful for
immediate testing purposes -- and the second references the intended public location when the work is ready for release.
The content of these WTML
files can be used as standalone files, or can be cut
and pasted into a larger document such as a community payload file, or perhaps a
collection of similar studies.
The tile pyramid structure, and WTML
files, are explained in detail in the
WorldWide Telescope Data Files Reference document.
The following sections explain how to use the tool.
The StudyChopper tool is very useful for data preparation, but its user interface is somewhat functional and navigating it is not intuitive. For the most part using the tool is simply a case of entering information in the correct order, which is described in the following steps. Running the tool will reveal the single dialog:
![]() |
Before using the tool, place all the images for the study in a single folder. Preferred image formats are the lossless and transparency supporting formats such as .tiff and .png, rather than .jpg. Then go through the following steps:
![]() |
![]() |
If the image pyramid has been created correctly, go on to the next step of creating the
WTML
files. If not, go back to
the data and make the necessary adjustments.
Creating WTML files for the newly tiled study will make testing it, and including it in larger collections, straightforward. To create the two WTML files, go through the following steps:
| <?xml version='1.0' encoding='UTF-8'?> <Folder Group="Explorer" Searchable="True" Type="Sky" Name="Saturn Study"> <Place Name="Saturn" DataSetType="Sky" RA="0" Dec="0" Constellation="AND" Classification="Unfiltered" Magnitude="0" ZoomLevel="1.2" Rotation="0" Angle="0" Opacity="100" AngularSize="0"> <ForegroundImageSet> <ImageSet Name="Saturn" Url="C:\Users\.....\Pictures\Output\639246517\{1}\{3}\{3}_{2}.png" AltUrl="" DemUrl="" BaseTileLevel="0" TileLevels="2" BaseDegreesPerTile="0.213333333333333" FileType=".png" BottomsUp="False" Projection="Tan" QuadTreeMap="" CenterX="0" CenterY="0" OffsetX="0" OffsetY="0" Rotation="0" DataSetType="Sky" BandPass="Visible" Sparse="True" WidthFactor="2"> <Credits /> <CreditsUrl /> <ThumbnailUrl>C:\Users\.......\Pictures\Output\639246517.jpg</ThumbnailUrl> <Description /> </ImageSet> </ForegroundImageSet> </Place> </Folder> |
To test the output, click on the LOCAL version of the WTML file, or alternatively load this file from within WorldWide Telescope. This will display the study and the thumbnails in WorldWide Telescope. Check not only the images, but also the metadata such as the Name, Credits, CreditsUrl, and so on.
If the Make .plate File checkbox is checked, then in addition to building the tile pyramid, a single .plate file will be output to the specified location. A plate file contains every tile of the pyramid, and a header section encoding the format of the pyramid. The purpose of this single file is that it is then much easier to transmit the pyramid to colleagues, copy to a backup file, or send it for some other purpose.
If the input image has AVM-tags, then the appropriate fields will be filled automatically with their values. For more details on AVM tags, refer to Virtual Astronomy.org. AVM tagging is a standard proposed by members of the professional astronomy outreach/educators community to tag astronomical photographs with useful metadata that contain details of what the photograph contains, how it was taken, copyrights, credits, and so on.
Images (currently, only TIFF images) can be tagged with AVM tags from FITS files using Adobe Photoshop and FITS liberator, or by using the online tagging tool available on the Virtual Astronomy site.
It is possible to adjust the position of an image within WorldWide Telescope.
The image to be aligned should be referenced from
a collection file. For ease of navigation collection files should be located in the My Documents\WWT Collections folder. Collections in this folder will
appear under the My Collections folder when WorldWide Telescope is run. So in order to enable
easy editing, move the WTML
file containing the images
you wish to align to the My Documents\WWT Collections folder.
Open up WorldWide Telescope, navigate to the correct collections file, open it, and select the image to be aligned by clicking on the thumbnail. Click on the image itself when it appears in the main view, then press Ctrl-E. This brings up the Image Alignment dialog:
![]() |
Use the controls in this dialog to finely align an image. Note that there is currently no save or cancel options. If the data is in the correct folder, noted above, then the changes will be saved off to the Place entry in the WTML file. Pivot Mode can be one of the easiest ways to align an image. Right-click on a point on the image that is in the correct location (typically a star), a white circle will appear to confirm this, then rotate, scale, and invert the image simply by moving the mouse. Right-click again to de-select Pivot Mode. Typically aim to align two significant stars that are as far apart as possible on the image to get the best alignment between foreground and background. |
This feature is not currently fully implemented.
StudyChopper reads in default settings from the configStudyChopper.txt file when the tool is first run. Edit this file appropriately to make use of the tool efficient. This can either be done by hand, or by use of the Save Settings in config.txt button. This configuration file should reside in the same folder as the tool. The default contents of this file are shown in the following table:
| INDIR=C:\Users\Public\Pictures INFILE=*.tif OUTDIR=C:\Users\Public\Pictures\tiles OUTWTMLFILE=egstudies.wtml OUTWTMLTITLE=Example Studies OUTWEBDIR=http://research.microsoft.com/wwtimages STOREONWWTSERVERS=False MAKEPLATE=False OVERWRITEEXISTINGTILES=True CREATEJPEG=False DISPLAYFOLDERNAMES=False DISPLAYFILESIZE=True |
Note - security issues may prevent the button/edited file from working as expected.
The Study Chopper tool can be run from a Command Prompt window, taking a single parameter - the name of an XML file, where the content of that file determines the required input and output.
To run the tool from the Command Prompt window:
C:\Program Files (x86)\Microsoft\WWT ADK May 2009\
FileChopper.xml |
|
<?xml version="1.0" encoding="utf-8"?> <!-- ************************************************************ --> <!-- Settings for the command line input for --> <!-- the Study Chopper tool --> <!-- ************************************************************ --> <SettingsFile Type="Chopper"> <!-- ************************************************************ --> <!-- Required --> <!-- ************************************************************ --> <InputFolder>C:\Users\....\Documents\OneImage</InputFolder> <InputFiles>*.jpg</InputFiles> <OutputFolder>C:\Users\....\Documents\Test web</OutputFolder> <!-- ************************************************************ --> <!-- Optional --> <!-- ************************************************************ --> <OutputFile>Chopper test.wtml</OutputFile> <OutputTitle>Chopper title</OutputTitle> <OutputWebpage>Output web URL</OutputWebpage> <Overwrite>True</Overwrite> <MakePlate>False</MakePlate> <SaveAsJpeg>False</SaveAsJpeg> </SettingsFile> |
StudyChopper path\FileChopper.xml
WWT Sphere Toaster takes as input an equirectangular image, and produces as
output a tile pyramid of images suitable either for background images (such as a
complete sky survey), or for spherical object surfaces (such as stars, planets
and moons). Suitable WTML
files encapsulating the tile pyramid, and a thumbnail
image, are also output. The tile pyramid is produced using the
TOAST project system. For a description of this projection system, refer to the
WorldWide Telescope Projection Reference document.
The following examples use a test image for clarity.
To convert a single equirectangular image of an entire object (sky survey, planet or moon surface, for example), go through the following procedure. Note that the entire image is loaded into memory by this tool, so there are limits on the size of image that the tool can currently process. This limit is increased if the tool is run on a 64-bit operating system.
![]() | This image shows the default settings
when a 1000 x 500 image is loaded.
|
Enter appropriate text for Title, Credits, and
Credits URL. Credits
should be kept to a maximum of 240 characters.The Storage URL entry is the web accessible location where the final output should be stored. The Make Wtml button can be used if only WTML files are required. Otherwise they are generated from the Output tab. |
Ensure to select one of Panorama, Sky or
Planet. These will affect the
inside or outside orientations of the sphere.The maximum levels of a pyramid should not be increased, but can be decreased during testing - to improve performance. Refer to the note on Plate Files. Selecting Generate Pyramid + WTML will create the image pyramid, WTML files, and thumbnail. |
The default test is for level 0, and X and Y at 0.This image shows level has been set to 1 to examine one of the four tiles at this level. |
That completes the process in the simplest of cases - one image covering the complete sphere. Note that a very large number of tiles can be produced. For example, if the original image is 8192 x 4096 pixels, then 1365 tiles are generated in a full pyramid with five levels (and this can take 10 to 20 minutes of computing time). If the original image is 20000 x 10000 pixels, then over 21500 tiles are created at the required 7 levels (and this can take 24 hours of computing time). Blank tiles are not created. By default, all tiles are png images, though this can be changed to jpeg, though the jpeg format does not store transparency and can have undesirable artifacts.
The single example will cover the great majority of cases of the use of this tool. However there are a few other options that might be of value.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| The panorama source image |
![]() |
| The output options |
![]() |
| No Fill | ![]() |
| Extend top row | ![]() |
| Average of top row |
![]() |
| Zone V Grey |
![]() |
Sphere Toaster requires the following dll files to work: WwtDataUtils.dll, OctMap.dll, BigPic.dll, PlateTools.dll. These should be in their correct location on installation.
The configSphereToaster.txt file, in the same location as the program, can be edited to change the default output directory.
OUTDIR=C:\Users\Public\Public Documents\example\
|
The Sphere Toaster tool can be run from a Command Prompt window, taking a single parameter - the name of an XML file, where the content of that file determines the required input and output.
To run the tool from the Command Prompt window:
C:\Program Files (x86)\Microsoft\WWT ADK May 2009\
FileToaster.xml |
|
<?xml version="1.0" encoding="utf-8"?> <!-- ************************************************************ --> <!-- Settings for the command line input for --> <!-- the Sphere Toaster tool --> <!-- ************************************************************ --> <SettingsFile Type="Toaster"> <!-- ************************************************************ --> <!-- Required --> <!-- ************************************************************ --> <InputFile>C:\Users\....\Pictures\Rowers.bmp</InputFile> <Type>Planet</Type> <OutputFolder>C:\Users\....\Pictures\Toaster</OutputFolder> <!-- ************************************************************ --> <!-- Optional --> <!-- ************************************************************ --> <RALefttoRight>True</RALefttoRight> <RALeftofEQ>0</RALeftofEQ> <Galactic>False</Galactic> <OffsetX0>0</OffsetX0> <OffsetY0>0</OffsetY0> <Overwrite>True</Overwrite> <MakePlate>False</MakePlate> <SaveAsJpeg>False</SaveAsJpeg> <Title>Test Toaster Settings</Title> <Credits>MSR</Credits> <CreditsURL>www.research.microsoft.com</CreditsURL> <StorageURL></StorageURL> </SettingsFile> |
SphereToaster path\FileToaster.xml