comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » How to convert text file to fits file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
How to convert text file to fits file [message #70600] Thu, 22 April 2010 04:21 Go to next message
sid is currently offline  sid
Messages: 50
Registered: January 1995
Member
Hi,
I am having text file with two columns one is wavelength and
intensity, I need to convert this to fits file, please help me out in
this regard
regards
sid
Re: How to convert text file to fits file [message #70638 is a reply to message #70600] Mon, 26 April 2010 23:09 Go to previous message
Aram Panasenco is currently offline  Aram Panasenco
Messages: 41
Registered: April 2010
Member
sid wrote:
> Hi,
> I am having text file with two columns one is wavelength and
> intensity, I need to convert this to fits file, please help me out in
> this regard
> regards
> sid

Hello sid,

David Fanning has a great tutorial on his site explaining how to read
ASCII data files: http://www.dfanning.com/tips/ascii_column_data.html
(Make sure to check out the rest of his site, it's a great IDL source)

After you have your data as an array or structure, you can use a
procedure like MWRFITS or WRITEFITS to save your data as a FITS file.
Information on reading and writing FITS files using the IDL Astronomy
Library is available here: http://idlastro.gsfc.nasa.gov/fitsio.html

Hope this helps,
~ Aram Panasenco
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: How to convert text file to fits file
Next Topic: Re: Help on comparing 2 arrays

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:46:33 PDT 2025

Total time taken to generate the page: 0.00725 seconds