The 1d spectral data format

The ESO science data products standard (SDP) format for a one-dimensional (1D) spectrum is a binary table that contains information for an individual object. It is made of a primary header and one single extension. The primary header contains the main SDP keywords whose values are used for the identification/selection of the product in the ESO SAF query forms (see for example: http://archive.eso.org/wdb/wdb/adp/phase3_spectral/form). The extension contains a FITS binary table, with its own header unit and with the data arrays (wavelength, flux, error, etc.) stored as 1D vectors in single cells. Each FITS file contains only one science spectrum, plus associated information; for instance: sky background subtracted spectrum, error spectrum, best fitted model for the continuum, etc. The spectrum binary table format complies with the basic requirements of the Virtual Observatory (VO Spectrum Data Model v1.1) standard.




How to display the ESO SAF spectra stored in binary table format

According to our experience the following tools support the science 1d spectra downloaded from the ESO science archive: IRAF onedspec (splot) and rv packages, fv, vospec, splatvo. A list of instructions for displaying the spectra with the mentioned tools is provided here below.


IRAF/SPTABLE external package, including xonedspec and xrv 

The new SPTABLE IRAF external package is able to read, display, and analyse (via the onedspec and rv packages) the ESO one-dimensional science spectra. Please find the IRAF announcement with instructions. Please, note that the SPTABLE package is already configured to recognise all the ESO 1d science spectral data products, so no other action is needed to start working with the data. The IRAF/SPTABLE Spectrum Table Database is already fully setup for all current ESO spectral types, and therefore e.g. the xonedspec splot task can be used right away.

The other mentioned tools (excluding the IRAF ones) are available directly within the Linux distribution of Scisoft; if you have Scisoft install there is no further installation required. Otherwise, instructions on how to install them, or to launch them directly from the web, are provided below. None of the mentioned tools is available in the Scisoft Mac distribution. To download Scisoft, please visit: http://www.eso.org/sci/software/scisoft/


fv

On a Linux system with Scisoft installed, fv can be launched using the unix command: fv.
To download a stand alone version of fv, please visit: 
http://heasarc.gsfc.nasa.gov/lheasoft/ftools/fv/

Once fv  is opened, make sure that POW (and not ds9) is selected as Display Device. To do this click   Display Device on the fv main panel and select POW. 

Please do NOT use DS9 to display a 1D spectrum, unless you have an fv version higher than 5.3, which should be available around December 2013. 

For this type of data, fv, when communicating to ds9, creates a file whose size is proportional to N2, where N is the number of points in the spectrum, potentially eating all your disk space.

To load a 1D spectrum in the fv panel:

·       choose “Open File” and navigate to the folder where the 1D spectra are stored,

·       select the spectrum of interest by clicking on it,

·       click "Open".

The “Summary” panel opens and shows the structure of the selected FITS file with a record for the primary header unit and a record for the FITS extension that hosts the binary table with the spectral arrays.

To visualize the spectrum:

·       click "Plot" on the second record (the "Select Plot Columns" panel shows up) ,

·       click WAVE (on the left hand side) and then the "X" button (in the center) to assign the wavelength array to the X axis,

·       click FLUX (on the left hand side) and then the "Y" button (in the center) to assign the flux calibrated array
 to the Y axis. If the flux calibrated array is not available, then click on the FLUX_REDUCED array.

As result of these actions, the words WAVE and FLUX should now also appear close (on the right) to the X and Y buttons. Click “Plot” and the selected spectrum is displayed in the POW window.

VOSpec

On a Linux system with Scisoft installed, VOSpec can be launched using the unix command: vospec.
Otherwise, to start up (web start) or to install VOSpec, please visit: 

http://esavo.esa.int/vospec/

Once started, load a 1D spectrum with the following steps:

·       choose "File -> Open spectrum" option, or simply press CTRL-O,  or click on the opened folder (first icon on the upper left corner),

·       navigate to the folder containing the spectrum,

·       select the 1D spectrum of interest

·        click the "Open" button

A pop-up window (called "Edit Spectra") appears presenting various options to the user.  In the “Flux Coordinate” panel, choose the selected Column to be plotted (possible choices are: FLUX_REDUCED, ERR_REDUCED, BGFLUX_REDUCED, FLUX, ERR). If available, choose FLUX (it is fully calibrated), and then press the "Accept" button.
At this point the spectrum is displayed, and all features of VOSpec can be used.  Note that by default VOSpec will present the spectrum as Jy vs micron, with both axes scaled logarithmically.  On the left hand side of the VOSpec window the user can change units and remove the logarithmic scales on both axes.

Please note that VOSpec fully supports data array provided of physical units, while it cannot currently handle uncalibrated data arrays (e.g. in adu units). This problem will be solved in a future version of VOSpec.

 

SPLAT VO

On a Linux system with Scisoft installed, splat can be launched using the unix command: splat.
On all operating systems you can start up (webstart) or install SPLAT VO; please visit: 

http://star-www.dur.ac.uk/~pdraper/splat/splat-vo/splat-vo.html
Once started, the user can open a 1D spectrum by choosing "File -> Open" option, or simply pressing CTRL-O, or by clicking on the opened folder (first icon on the upper left corner), and then navigate to the folder containing the spectrum, and select it by clicking the "Open" button. Two new windows appear:

·       The "Starlink SPLAT-VO: <plot0>" window displays the reduced spectrum by default (not the flux calibrated one);

·        the "Starlink SPLAT-VO: A Spectral Analysis Tool" window, where the user can change what is displayed  by choosing to plot the calibrated FLUX array instead of the FLUX_REDUCED, in the “Data” pull-down menu.

Update (25/Nov/2013): Please note that the Data pull-down menu problem previously reported has been fixed. Please download the latest version of SPLAT VO from the GAVO SPLAT-VO page. GAVO stands for German Astrophysical Virtual Observatory.

Is this article helpful for you?