With this IDL procedure, one can read the standard output fits file of the TIGRE/HEROS automatic data reduction pipeline.
Download
The notation of the main output fits file is Sci_...sp_ech_main.fits. A secondary output is a small fits file. The notation is Sci_...sp_ech_small.fits.
This file include only the blaze normalised spectrum.
In this procedure, the barycentric velocity correction is performed automatically if one don't set the keyword /nobarycorr.
The barycentric velocity correction is estimated during the reduction and listed in the header. Furthermore, one can also commit a radial velocity and the wavelength
is shifted by this value.
The syntax is:
pro readheros(file, out [header_image, header_data, /nobarycorr, /small, radvel=Value])
Input:
file: Name of the fits file
out: Name of the data structure
Optional:
header_image: Image header or first image header form multiple exposure with the adapted values
header_data: Header of the data
/nobarycorr: If one set this keyword than the radial velocity and barycentric correction are not performed
/small: Have to set for the small output version
radvel: Radial velocity [km/s]
Returns:
out: The data with the structure see, Spectrograph Info; Spectrum
Example: