Recently we discussed the online site Chromoscope, which allows visualizing the galaxy at different wavelengths. Now we explain how to have Chromoscope on our computer, without an internet connection.

If we want to show or use Chromoscope in a school or other institution that does not have internet access, we can download the files and transfer them with a USB drive, CD/DVD to another machine so it can be used without a connection.
For that, we will have to download, from the Chromoscope blog:
The basic files of the latest version, in this case, version 1.0:
Version 1.0.0 (GZIP 48 kB | ZIP 50kB)
Additionally, we will need the tiles or mosaics of the images for the wavelengths. We don't need to have the images for all wavelengths, if we don't want to. But we will have to manually edit a file so there are no problems.
And we can also download the tiles that correspond to the labels (Label tiles).
Once we have all the compressed files, we will proceed as follows:
We decompress the basic package (chromoscope-1.0.0.zip) into a directory.
We do the same with the tiles, decompressing them into subdirectories of the previous folder.
Thus, we should have:
a directory called chromoscope-1.0.0, inside which we will have the folders for each wavelength, for example DSS2-tiles and RASS-tiles, which are the ones I will use in this case.
In the base folder we will find a file called index.html.
That file will have to be edited, whether we have downloaded all the tiles or not, simply because the code includes the display of gamma rays and near-infrared and the tiles for those wavelengths are not available, yet, for download.
Edit the index.html file
To edit an HTML file we need a plain text editor, like Notepad or some other more advanced one like Notepad++.

What we must do is comment out the lines of code we are not going to use, that is, those that load the tiles for the wavelengths we don't have.
To load the tiles for each wavelength, the code in index.html is similar to:
chromo.addWavelength({useasdefault:false,key:'g',name:'gamma',tiles:'Fermi-tiles/',ext:'jpg',title:'Gamma-Ray',attribution:'Fermi All Sky Survey'});
The above code, as seen, is for the gamma-ray wavelength from the Fermi telescope. If we did not download those tiles, then we must remove those lines. It is usual, instead of deleting the lines, to comment them out. This means marking the lines as if they were a comment and not as part of the code. For that, it is enough to add two slashes at the beginning of the lines, as follows:
//chromo.addWavelength({useasdefault:false,key:'g',name:'gamma',tiles:'Fermi-tiles/',ext:'jpg',title:'Gamma-Ray',attribution:'Fermi All Sky Survey'});
Thus, everything after // and up to the ; will not be understood by the application as part of the code to execute, but as a comment.
We must add // in front of each line that begins with chromo.addWavelength whose tiles we do not have.
In this example, we said we do have the X-ray (RASS-tiles) and visible (DSS2-tiles) wavelengths. Therefore, we do not comment those lines and leave them as they are.

That's all. A simple edit to comment out the lines of code that load the wavelengths we don't want. We save the changes made to index.html and we can now run it locally in our web browser, without an internet connection.
The main directory, with the subdirectories, we can easily transport to another PC.
Local Chromoscope tutorial
http://www.youtube.com/watch?v=Ksx8QaTBhJU
To add more images
We can also generate our own all-sky images to use in the application by using Google Maps Image Cutter (Java). That is a tool from UCL's Centre for Advanced Spatial Analysis designed to take an image or digital photo and cut it into mosaic (tiles) that are then displayed on a Google Map. Using the tool, large images can be published on the web in a format that allows the user to create a panorama with zoom.
Once a set of tiles is created, we add a new line:
chromo.addWavelength({useasdefault:false, key:'g', name:'gamma', tiles:'Gammaray-tiles/', ext:'jpg', title:'Gamma-Ray', attribution:'Fermi'});
where:
* key is the keyboard shortcut to switch to that wavelength,
* name is an internal name used to identify the layer and must be unique,
* tiles is the subdirectory containing the images,
* ext is the file extension (probably jpg),
* title is the text that will appear in the legend,
* attribution is the text that will appear in the attribution line and can contain links.
Sources and related links
- Chromoscope Blog
- Chromoscope: The colors of the universe
About the images
- Own screenshots of local Chromoscope and file edits.


