Re: Reading FITS files with the Mac version of IDL [message #5595 is a reply to message #5588] |
Wed, 03 January 1996 00:00  |
agraps
Messages: 35 Registered: September 1994
|
Member |
|
|
Glenn J White <G.J.White@qmw.ac.uk> writes:
> I have been trying to import FITS files into IDL 4.01
> for a Mac PowerPC, and hit problems with the apparent
> non-standard system parameters !TEXTOUT and !textunit,
> when using the various FITS reader .pro files in the
> IDL Astronomy users library. Has anyone else
> encountered this problem and worked around it ?
> Thanks for any help you van give
I spent a day or so in October tracking down FITS readers for Mac IDL
for my Quadra 700. I remember having several choices of FITS readers
from the Goddard Astronomy IDL library. I kept finding out that I
didn't have the auxilliary programs that I needed, so more effort was
spent in actually tracking down all of the routines than learning to
use the FITS read and write programs.
To read a fits file I used: 'mrdfits.pro' For example:
IDL>fl = 'N50356.fits'
IDL>image = MRDFITS(fl, 0, header)
To write a fits file I used: 'writefits.pro', For example:
IDL>WRITEFITS, 'N50356_final.fits', finalimg, header
And I believe the auxillary programs I needed were:
check_fits.pro
fdecomp.pro
fxpar.pro
fxposit.pro
gettok.pro
host_to_ieee.pro
ieee_to_host.pro
mrd_hread.pro
mrd_struct.pro
mrdfits.pro
readfits.pro
strnumber.pro
sxaddpar.pro
sxdelpar.pro
sxpar.pro
valid_num.pro
wherenan.pro
writefits.pro
I have a different Mac than you, but there shouldn't be problems. You
can email me if you get stuck.
Amara
--
************************************************************ ********
Amara Graps email: agraps@netcom.com
Computational Physics vita: finger agraps@best.com
Multiplex Answers URL: http://www.amara.com/
************************************************************ ********
"Time is nature's way of keeping everything from happening all at
once." -- Anonymous
|
|
|