beam order
Reba wrote on May 06, 2008
Hi all,
First understand that I am very new to iraf, so i may be asking a very base question, but i have been having a rather simple problem that I am incapable of solving given my limited experience.
The problem is that I have been given two fits files. One is the spectra and the other is the associated sigma. What I want to do is combine them so that they are one fits file with the spectra as beam 1 and sigma as beam 2, and both with aperture 1.
I am sure that there is most likely a very easy way to do this, but I am afraid that i have been working on it all day with no success. Any help would be greatly appreciated.
Thank you,
Reba
First understand that I am very new to iraf, so i may be asking a very base question, but i have been having a rather simple problem that I am incapable of solving given my limited experience.
The problem is that I have been given two fits files. One is the spectra and the other is the associated sigma. What I want to do is combine them so that they are one fits file with the spectra as beam 1 and sigma as beam 2, and both with aperture 1.
I am sure that there is most likely a very easy way to do this, but I am afraid that i have been working on it all day with no success. Any help would be greatly appreciated.
Thank you,
Reba
Francisco Valdes wrote on May 06, 2008
Hello Reba,
The nomenclature is that an "aperture" is a 1D spectrum with possibly associated data such as the sigma. A "beam" identifies some property of the spectrum such as a object vs sky or an echelle order. A "band" refers to a particular associated spectrum for an aperture. The IRAF spectral formats pack apertures as lines in the first 2D plane. Bands are added as a 3rd dimension in a 3D image.
If you just have one spectrum but want to have bands then the image dimension you want is npix x 1 x 2. To create this you can use IMSTACK. The tricky thing here is to get past the fact you want to have only 1 line in the 2D planes of the 3D image.
This gets the format right. The last think is to get the header kwywords right. However for this simple case of a single spectrum you can probably get away with out doing any of this. The keywords would be
In this example the APNUM1 keyword says the first spectrum has aperture number of 1 and beam number of 1 (the first two numbers in the string).
After going through this work you may then realize that other than plotting things with SPLOT that there is little current IRAF spectral software that makes use of the sigma data.
Yours,
Frank Valdes[/code]
The nomenclature is that an "aperture" is a 1D spectrum with possibly associated data such as the sigma. A "beam" identifies some property of the spectrum such as a object vs sky or an echelle order. A "band" refers to a particular associated spectrum for an aperture. The IRAF spectral formats pack apertures as lines in the first 2D plane. Bands are added as a 3rd dimension in a 3D image.
If you just have one spectrum but want to have bands then the image dimension you want is npix x 1 x 2. To create this you can use IMSTACK. The tricky thing here is to get past the fact you want to have only 1 line in the 2D planes of the 3D image.
cl> imstack spec1d spec2d # Make npix spectrum into npix x 1
cl> imstack sigma1d sigma2d # Make npix sigma into npix x1
cl> imstack spec2d,sigma2d result.ms # Make multispec format
This gets the format right. The last think is to get the header kwywords right. However for this simple case of a single spectrum you can probably get away with out doing any of this. The keywords would be
APNUM1 = '1 1 INDEF INDIEF'
BANDID1 = 'spectrum'
BANDID2 = 'sigma'
In this example the APNUM1 keyword says the first spectrum has aperture number of 1 and beam number of 1 (the first two numbers in the string).
After going through this work you may then realize that other than plotting things with SPLOT that there is little current IRAF spectral software that makes use of the sigma data.
Yours,
Frank Valdes[/code]
Last post on May 06, 2008