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

Home » Public Forums » archive » Re: Reading FITS files with the Mac version of IDL
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
Re: Reading FITS files with the Mac version of IDL [message #5588] Thu, 04 January 1996 00:00
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior 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

You need to define these environment variables before running the software.
The routine astrolib.pro will do this for you. Simply put the command

astrolib

in your IDL startup procedure.

Bill Thompson
Re: Reading FITS files with the Mac version of IDL [message #5595 is a reply to message #5588] Wed, 03 January 1996 00:00 Go to previous message
agraps is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Tephigram pro?
Next Topic: HP idl can't find libcl.sl

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

Current Time: Fri Oct 10 16:07:57 PDT 2025

Total time taken to generate the page: 1.20197 seconds