Welcome to iraf.net Tuesday, May 21 2024 @ 05:33 AM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 fits to txt
   
athlonea
 11/09/2007 01:02PM (Read 7367 times)  
+----
Newbie

Status: offline


Registered: 05/08/2007
Posts: 4
Good day Everyone,I use IRAF for echelle spectra reduction and would like to be able to write the lambda-flux information for each spectrum aperture to a text file. I know there is a [b:56d878b64d]:.snap epsfl[/b:56d878b64d] command which allows to write each aperture to *.eps when viewing the spectrum using splot. Is there a similar way to write the aperture info to *.txt?Thanks for any help,athlonea

 
Profile Email
 Quote
esemenko
 11/09/2007 01:02PM  
++---
Junior

Status: offline


Registered: 10/02/2006
Posts: 16
I ususally used wspectext from onedspec:
wspectext input.fits output.txt head- wformat="%.4f"
Also you can convert multidimensional FITS files writing something like input[*,1], for example.

Cheers, Eugene.
 
Profile Email Website
 Quote
athlonea
 11/09/2007 01:02PM  
+----
Newbie

Status: offline


Registered: 05/08/2007
Posts: 4
[quote:309865deb9="esemenko"]I ususally used wspectext from onedspec:
wspectext input.fits output.txt head- wformat="%.4f"
Also you can convert multidimensional FITS files writing something like input[*,1], for example.[/quote:309865deb9]Thank you for reply.I've tried wspectext, but what I got was:
Warning: oP_1.fits is not one dimensional
... obviously not a good way to deal with these files.Anyway, I managed to divide my *.fits file with [b:309865deb9]scopy[/b:309865deb9] into a number of *.fits, each containing only a single aperture of the echelle spectrum. After that wspectext worked perfectly with each of those single apertures.Once again thanks for help,athlonea

 
Profile Email
 Quote
   
Content generated in: 0.03 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