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

Home » Public Forums » archive » convert .dat to .fits
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: convert .dat to .fits [message #84950 is a reply to message #84948] Wed, 19 June 2013 12:29 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
You need to read your data.dat into an IDL variable and then write it to FITS.
We need to know more about the format of your data.dat file before we can tell you how to read it. If it is a binary file, then you can use READ_BINARY()

im = read_binary('data.dat') ;Read data into variable
writefits,'test.fits',im ;Write variable to a FITS file 'test.fits'

You need to get writefits.pro from the IDL Astronomy library if you don't already have it.
http://idlastro.gsfc.nasa.gov/

On Wednesday, June 19, 2013 3:12:46 PM UTC-4, Ali Gamal wrote:
> hi
>
> i have data.dat i want to convert it to .fits
>
> by using idl
>
> please help
>
> bye
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to grid pixel level data where latitude and longitude are 2D arrays
Next Topic: replace integration by summation

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

Current Time: Wed Oct 08 17:47:46 PDT 2025

Total time taken to generate the page: 0.00472 seconds