Posted: Tue Nov 10, 2009 7:03 pm Post subject: How to convert fits file into ASCII file using IRAF?
I have a fits file. It is actually a spectra. When I use splot <filename>.fits I get a plot of spectra of an object which is normalized amplitude (y-axis) versus wavelength (x-axis). I would like to extract the data, get two columns one which would give me normalized amplitude in the range of 0-1 while the other column will give me wavelength. I would like to know how I can do that in IRAF.
The MINMAX task will find the max value of the spectrum, divide by that to produce the normalized spectrum, them WSPECTEXT to write the ascii output.
Your message about the uparm problem either means the uparm directory doesn't exist or you can't write to it, e.g. you copied a login.cl from another machine or logged in using another user's login.cl. A new MKIRAF should fix it, the task still ran but the parameters were saved.
Does the SLIST task see a valid spectral WCS in the image? WSPECTEXT is basically a script wrapper about the LISTPIXELS task to dump the values, but even without a WCS you should still see the pixel number in the output. Could you post the spectra's header or else upload the image to ftp://iraf.noao.edu/pub?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum