Welcome to iraf.net Wednesday, May 01 2024 @ 08:39 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 txt-file to fits-format
   
SvetlaTsvetkova
 04/20/2011 09:48AM (Read 3656 times)  
+----
Newbie

Status: offline


Registered: 04/20/2011
Posts: 2
Hello,
I have a problem with making my files in a good format for IRAF. My files are txt or ascii - 2 columns - one for wavelenght and one for flux. I want to convert them into fits-format and proces them after that. I tried to use procedures like rspectext and rtextimage. It did not work. Maybe the problem is in creating the header, but I don't know what to do now.
Can anybody tell me somitnig more?
Thank you !

 
Profile Email
 Quote
robsteele49
 04/20/2011 09:48AM  
++---
Junior

Status: offline


Registered: 05/03/2010
Posts: 28
No promises, but if you send me one of your files I'll play with it tonight. My e-mail address is robsteele49@yahoo.com and you can attach the file to the e-mail.

Rob Steele (Robert.D.Steele@jpl.nasa.gov)
 
Profile Email
 Quote
fitz
 04/20/2011 09:48AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
You can also post a sample of the data file (e.g. 10 lines or so) and the RSPECTEXT parameters you used here along with other information such as any error messages seen. If your wavelengths aren't in Angstroms or are highly nonlinear then it may just be a matter of setting parameters properly but there isn't enough information in your post to say for sure.

 
Profile Email
 Quote
SvetlaTsvetkova
 04/20/2011 09:48AM  
+----
Newbie

Status: offline


Registered: 04/20/2011
Posts: 2
[i:2982f058e6]Here are the first few rows from the file (173602 rows is all the file) :[/i:2982f058e6]369,379 0,91884
369,381 0,93333
369,384 0,88033
369,386 0,91339
369,388 0,98418
369,391 0,81088
369,393 0,82434
369,395 0,87771
369,398 0,89447
369,4 0,88058
369,402 0,81178
369,405 0,74266
369,407 0,72899
369,409 0,62999
369,412 0,52785
369,414 0,62754
369,416 0,58424
369,419 0,53562
369,421 0,56922
369,423 0,68329 [i:2982f058e6]This is the parameters I used for rspectext :[/i:2982f058e6]PACKAGE = onedspec
TASK = rspectextinput = star.dat Input list of text spectra
output = output Output list of image spectra
(title = betcet) Spectrum title
(flux = no) Flux calibrated?
(dtype = linear) Dispersion type
(crval1 = 369.379) Coordinate of first pixel
(cdelt1 = 0.0039113882488479) Coordinate interval per pixel
(fd1 = )
(fd2 = )
(mode = ql)[i:2982f058e6]I had no error messages. It created a fits-format file with something like header :[/i:2982f058e6]SIMPLE = T / Fits standard
BITPIX = -32 / Bits per pixel
NAXIS = 1 / Number of axes NAXIS1 = 197 / Axis length
EXTEND = F / File may contain extensions OBJECT = 'betcet ' / Name of the object observed ORIGIN = 'NOAO-IRAF FITS Image Kernel July 2003' / FITS file originator DATE = '2011-04-21T13:36:50' / Date FITS file was generated IRAF-TLM= '2011-04-21T13:37:10' / Time of last modification
DC-FLAG = 0
CRPIX1 = 1.
CRVAL1 = 369.379
CDELT1= 0.003911388 END
[i:2982f058e6]and below these rows, there are about 10 rows with "?" But this fits-file i could not use fot further processing.[/i:2982f058e6]
[i:2982f058e6]That's all.[/i:2982f058e6]

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