Welcome to iraf.net Tuesday, May 21 2024 @ 11:00 PM GMT
yaelnaze |
11/30/2009 02:02PM (Read 1675 times)
|
|
|
Status: offline
Registered: 11/30/2009
Posts: 2
|
Hello,
I've an echelle spectrum (flux = fct of pixel number) on the one hand, and wavelength calib (lambda = fct of pixel number) on the other. Both are provided as fits files (in multispec format). How can I associate them without fitting the wavelength (cf. task mkmultispec) ? or alternatively : how can I save both files as ascii, and then transform a merged ascii into a fits again (either multispec or a series of onedspec)?Regards,
|
|
|
|
fitz |
11/30/2009 02:02PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
If by 'associate' you mean you want the flux from one file and the wavelength from the other ..... WSPECTEXT will convert a FITS file to ascii, FIELDS can select a single column from a text table and JOINLINES can be used to paste columns. Lastly, RSPECTEXT can convert this back to a fits image. Note however that you need to be careful not to have RSPECTEXT try to apply its own dispersion solution to the header.See the help pages for each task for details.
|
|
|
|
yaelnaze |
11/30/2009 02:02PM
|
|
|
Status: offline
Registered: 11/30/2009
Posts: 2
|
Indeed, I thought of this solution, but I was thinking there was a much "simpler" (one command) solution... Going through at least 17*2*39 files is not fun : )
|
|
|
|
fitz |
11/30/2009 02:02PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
Well, you can always write a script and make it a one-command solution ....
|
|
|
|
| |
|
Content generated in: 0.16 seconds |
|