Exploring Data Cubes

Immediately after your data reduction it is useful to explore your data before starting the analysis. Are the observations of what you intended? What are the S/N levels? What kind of things do you data show, and what kind of analysis will need to be done? For this purpose visualisation tools are very useful. Some are quick-look, designed to allow you to see what is going on with your data, others allow for more interactivity (e.g. you can do straightforward mathematics on the spectral or image plane, resample the spaxels…).

It is fairly simple, really, to write a script that will allow you to look at what your data have, but far more useful is to use a ready-written GUI and we list here those we have knowledge of.

E3D vistool

The Euro3D RTN (European Research Training Network from 2003-2005) produced a tool called the "E3D visualisation tool". It allows you to view an 2D image of any wavelength slice, view the full spectrum from any spaxel, spatially resample the data and much more. It handles data of RSS or cube format, or E3D formats if the FITS headers conform to Euro3D standards. The definition of these standards were one of the main aims of the E3D RTN, and can be found on the Euro3D website. The one (big!) drawback of this otherwise excellent tool is that it is extremely difficult to install and get working. This is because it requires installation of various libraries of code, which in themselves need certain standard libraries to work. If your flavour of linux is not quite right and the standard libraries are not quite in the right place, the installation fails. The vistool should install on a Mac, although we've not quite managed to get it working. Our recommendation is that you ask the maintainers of the vistool to help with the installation, if you cannot get it working right away, because once it is working you will find it a very useful tool indeed.

QFITSView

QFitsView is a FITS file viewer not only for datacube but also 2D images and 1D spectra. It is very easy to install and runs under Microsoft Windows, UNIX and MAC OS-X. It can carry out numerous basic analysis operations. It is a must-have for quick look and analysis of FITS datacube. It can be found here.

Note that for SINFONI data, the reduced science FITS cube provided in the service mode package are already formatted correctly for viewing with QFITSView. Note also that the VIMOS pipeline product cubes need to be reformatted in order to be viewed with this tool.

Other options

  • GAIA Starlink IFU data product cookbook — a very good resource. Is a general image viewer (e.g. like ds9) but also will load in cubes and allow one to scroll through the wavelength dimension.
  • Starlink DATACUBE package
  • ds9
  • Karma
  • QuickLook2 is an IDL cube viewer originally developed for OSIRIS at Keck, but which can be used to view any X/Y/lambda FITS data cube. Contact Marshall Perrin at UCLA for tips on configuring this to view GMOS-IFU or SINFONI cubes.
  • In-built IDL tools (e.g. slicer3 — a GUI widget based application to visualise 3D data and which comes with the IDL environment)
  • wavextract IRAF task (from Jeremy Walsh). This takes data in standard data cube format and outputs a FITS image of the summed flux between two specified wavelength values. This is a very useful 'quick look' function. Click here for download and instructions page.

A note on cube vs. RSS format

The cube format is much easier to work with because all the hard work of relating individual spectra to a spatial position has been done, but not all IFS data lend themselves immediately to being a cube format.

For the cube format you will simply treat your data as a very fat image, and either display these images slice by slice (wavelength point by wavelength point) or add together many slices (to improve the SNR) and display those. If your data are still in RSS format — maybe because the spaxels are not contiguous and not square (and so make very awkward 2D slices) — then you will need the "position table" as well as the spectra. The position table should have been provided by the observatory from where you got your data (although not always in a very friendly format), and it is a listing of the sky position (usually relative) of each of the spectra. With this you can take wavelength slices along your spectra (thus producing a list of flux values versus spectral number) and rearrange into an image. This was discussed in a little more detail in our Data Reduction pages.

page_revision: 5, last_edited: 1243442876|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License