![]() |
The Cosmic Origins Spectrograph
was successfully launched, installed, and turned on and the data have
started rolling in. As someone on the front lines of this new and
exciting instrument, I've had to deal with a lot of the quirks and
oddities of the data being produced. I've devised several IDL codes
which makes dealing with my data easier and post them here so that you
may learn from the experience my colleagues and I have accumulated. I
hope you find them useful. Most of these routines start with the x1d.fits files produced by CalCOS. If you download data from MAST, this is what you get. The reduction might even be correct. However, if you're looking for advice on how to reduce your data most optimally using CalCOS, this is not the place for it. Sorry. | ![]() |
![]() | Combines a set of far-UV COS exposures into single wavelength/flux/error vectors. A lot of work has gone into this code and it does a lot of things above and beyond a simple coaddition.
Note that the code requires specific versions of several common codes, including the version of LINTERP.PRO which is part of the ASTROLIB library. The version distributed with GHRSLIB does not work. If you get errors saying "Keyword 'missing=0' not allowed in LINTERP", this is likely your problem. Check the order your IDL libraries are loading. This routine requires several other routines and auxiliary files, so I provide them all as a convenient .tar file. |
![]() | This is a quick-and-dirty routine to display the wavelength/flux/error vectors in a set of far-UV COS x1d files. This is a good way to see what you've got, check for grossly-bad CalCOS reductions, and take a first look at the data. |
![]() | On-orbit observations have revealed that the COS line spread function (LSF) is not the ideal Gaussian profile. Instead of a 6.5 pixel FWHM, the profile is more like 7.9 pixels FWHM and up to 40% of the light falls in the wings. Mid-frequency wave-front errors in the HST primary mirror are the culprit. The LSF is asymetric and dependent upon both wavelength and grating. For much more on the subject, please see the STScI ISR on the subject. However, the LSF has been characterized and can be easily accounted for in analysis. STScI gives the LSF in tabular form, but, for speed's sake, I have converted it into a binary save file COS_LSF.idl which you will need to run my routine. COS_LSF.pro produces the modeled LSF for a given wavelength and grating for both far- and near-UV detectors. I have had good success convolving the LSF with gaussians, voigt profiles, and so forth in absorption line fitting. |
If you find this stuff useful, I'd love to hear from you!