Are cosmic objects as they appear in images? The openFITS project represents a step towards eliminating the mystery around image processing, carried out by the Chandra Observatory.

Cosmic objects are not as they are presented to us in images. It's that instruments are sensitive to wavelengths that our eyes are not, thanks to which it is possible for astronomers to make extraordinary discoveries, like those made by the Chandra X-ray Observatory.
Image processing is a whole topic in astronomy. Whether with optical data or at other wavelengths. The key is in color, thanks to our eyes distinguishing between reds, blues, and greens. This makes it possible to create aesthetically beautiful images. But which also contain a lot of real data, which the colors allow to intensify to highlight some physical characteristics of the objects.
Joe DePascuale, from Chandra, presents us with the openFITS project, with a series of tutorials to learn how images are manipulated.
With a basic knowledge of astronomical data and image processing software, we can create our own astronomical images using FITS files. These files get their name from the acronym Flexible Image Transport System. It is a digital file used by astronomers. In the tutorial it is possible to download some of Chandra's best images and learn to compose our own versions.
Here we have already talked on some occasions about the topic, in:
Observing with NASA, a note in which we talked about a remote observatory through which we can obtain FITS images of the object we select. Software that allows working with those files is available on the same site, as we mentioned in the note.
And we also made some mention of the matter in A review of virtual astronomy.
The tutorial begins with an introduction:
The colors we see are the result of how the human eye and brain perceive the different wavelengths of light in the visible part of the electromagnetic spectrum. The human eye's ability to distinguish colors is based on the variation in sensitivity of the different cells in the retina to light of different wavelengths.
The retina contains three types of receptors or cones. Light, no matter how complex its composition, is reduced to three color components by the eye.
A false-color image is an image that shows an object in colors different from those that a color photograph would show. The term is used to describe images whose colors represent intensities measured outside the visible portion of the spectrum. Astronomical images are often of this type, which does not mean they are incorrect, it is an arbitrary selection chosen to represent some characteristics of the image, such as intensity, energy, or chemical composition. The idea is to represent as much data as possible in a single image. The data is transported to an image analysis software where adjustments are made to emphasize the individual features or processes that scientists are interested in, or to make the images more attractive to the public.
FITS images
This type of file was specifically designed with scientific data in mind, and includes an ASCII metadata header capable of providing detailed information about the content of a file, such as the data source, creation time, etc. In the openFITS tutorial we will use raw or minimally processed images from Chandra. The FITS Index will be a repository for all files used in the project.
A word about software and open source
The industry standard program for processing images of this class is Adobe Photoshop, available for Mac and Windows. While for this project an attempt is made to maintain an open-source workflow, there are certain advantages to using Photoshop and the FITSLiberator plugin that would make that goal difficult. Therefore GIMP will be used, which although capable of reading FITS files is very limited in its image scaling control. When increasing the level of the images, the limitation will force the use of Photoshop with the plugin developed by ESA/ESO and NASA. That add-on allows the user complete control over the appearance of the data before it is projected to the screen and most of the scaling information is lost.
Image scaling: a quick lesson in bit depth
Any image we see on the computer screen has a bit depth associated with it. That depth refers to the number of colors that can be displayed in any pixel in the image. The higher the depth, the more colors are used in the image and, consequently, the larger the file. In an 8-bit grayscale image, for example, each pixel in the image can appear as one of 256 gradients of gray. The number 256 comes from the fact that bit depth increases in powers of 2, and 28=256. A 16-bit image contains 216 or 65,536 potential color values for each pixel. Most astronomical images come in the form of 16 bits where with over 65 thousand values per pixel there is more information or dynamic range in an image than can be displayed on a monitor.

A scaling function manipulates the pixel values before projecting them to the screen. The example on the left shows a linear scaling of the supernova remnant E0102 above a sample image scaled logarithmically. The ability to appropriately scale the data before working with it is crucial for creating interesting images. This is why Photoshop will be used for the more challenging images.
To use GIMP we must download it from http://www.gimp.org/downloads.
G'MIC is a plugin for GIMP that defines a series of various filters as well as noise removal and enhancement algorithms. It includes a nice implementation of the GREYCstoration algorithm which is particularly used for smoothing X-ray data. To install the G'MIC plugin for GIMP we must go to http://registry.gimp.org/node/13469 and download the appropriate installation for our operating system. The downloaded file will be an executable that will properly install the plugin.
Clarification: The original Chandra tutorial is developed using an earlier version of G'MIC, so there is a difference between the screenshots from that tutorial and the images I will show in the next post on the matter.
As indicated on the G'MIC plugin page, it is a logical sequel to the previous plugin GREYCstoration. This new plugin contains all the features of the previous one (via Enhancement/Anisotropic smoothing and Patch-based smoothing), but also much more!
To find this filter in GIMP, after installing the plugin: Menu Filters->GMIC->Enhancement->Anisotropic Smoothing.
Before installing any software, it is suggested that the user read the licenses of each program.
In the next part we will download FITS files to create a three-color image of the supernova remnant Cassiopeia A.
In the third part we will do another tutorial to create an image of the Crab Nebula.
Sources and related links
About the images
- SNR E0102. Credit: Chandra.


