Posted: Wed Apr 20, 2011 9:48 am Post subject: txt-file to fits-format
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 !
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.
input = 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 had no error messages. It created a fits-format file with something like header :
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
and below these rows, there are about 10 rows with "?" But this fits-file i could not use fot further processing. That's all.
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