I've been reducing data with VIPGI, which I have now exported to a FITS datacube. When I open the cube with a program like QFitsView, the spectrum for each spaxel is displayed along the bottom of the window when I mouse over the corresponding region of the image, along with the axis scale calibrated to wavelength. Obviously then, the wavelength calibration must be stored somewhere in the FITS header or something.
However, I am performing most of my data analysis and manipulation in IDL and Matlab. Importing the datacubes with the standard fitsread functions does not automatically recognise this calibration, and when I plot spectra, they are calibrated to pixel number. I pretty much expected that this would be the case, but my question is, how does one extract the wavelength calibration from the FITS file? Are there any tools to do this in IDL for datacubes? Failing that, where abouts in the FITS header is this information stored?
Any help or info would be most appreciated…