Welcome to iraf.net Friday, March 29 2024 @ 05:07 AM GMT


 Forum Index > Help Desk > Misc New Topic Post Reply
 How to convert fits file into ASCII file using IRAF?
   
nishahansraj
 11/10/2009 07:03PM (Read 18117 times)  
+----
Newbie

Status: offline


Registered: 09/19/2009
Posts: 8
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.

 
Profile Email
 Quote
nishahansraj
 11/10/2009 07:03PM  
+----
Newbie

Status: offline


Registered: 09/19/2009
Posts: 8
I used wtextimage...But it gives me the following error:cl> wtextimage
Input image file: lwr05969mxhi.fits
Output text file: lwr05969.txt
Unable to open parameter file `uparm$daowtexte.par'Can you tell whats the problem?

 
Profile Email
 Quote
fitz
 11/10/2009 07:03PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
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.-Mike[/url]

 
Profile Email
 Quote
nishahansraj
 11/10/2009 07:03PM  
+----
Newbie

Status: offline


Registered: 09/19/2009
Posts: 8
Where can i find MINIMAX task in iraf package?

 
Profile Email
 Quote
fitz
 11/10/2009 07:03PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
MINMAX (not minImax) is part of the default IMUTIL package and should be visible when you log in.

 
Profile Email
 Quote
anubu
 11/10/2009 07:03PM  
+----
Newbie

Status: offline


Registered: 05/13/2010
Posts: 1
When I use WSPECTEXT to convert my fits spectra into an ascii file, the result is just a column with the intensity values of the spectra, but the wavelength values aren't there.

 
Profile Email
 Quote
fitz
 11/10/2009 07:03PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
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?

 
Profile Email
 Quote
StarryEyed
 11/10/2009 07:03PM  
+----
Newbie

Status: offline


Registered: 03/24/2011
Posts: 6
I got a better understanding of this issue by reading through this post and this (http://www.iraf.net/phpBB2/viewtopic.php?p=1462787&amp;sid=e74cd735b22f567658feaefe1e542177&amp;sid=e8908484df3b34a1b51f6561a78c3e92) post. The whole thing about byte numbers and multiples is where I figured it out, i didn't realize how much needed to be compatible software wise in order to get some of this stuff to work. Has anybody tried to run Datanumen pst repair, IRAF, and Ubuntu in cohesion?

**Telescopic Baby**
 
Profile Email
 Quote
   
Content generated in: 0.20 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login