View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

reading very old iraf files

Guest wrote on Oct 01, 2010

Hello,
I am trawling through some very old 1-D spectral data in the old iraf
format (.imh) that I have not looked at for years.

I am finding that files generated in the mid 90s, e.g. 1994,1995 cannot
be read by iraf tasks - at least not those I have tried so far. Other
.imh format files, those generated more recently, plot up with splot
fine. Was there some change in format over that period which could
explain this?

I attach a file (pair) that I am unable to read.
It may be something very simple since I have not used iraf for a while -
but as I say, other (later) files work fine and also fits format files
work fine.

If you have any ideas, I would gratefully receive them.

Thanks
Belinda Wilkes

Post generated using Mail2Forum (http://www.mail2forum.com)

Mike Fitzpatrick wrote on Oct 01, 2010

Prior to about IRAF v2.10.3 the IMH file format was machine-dependent, your files are written in the "old" format for a machine in the Sun (Sparc) byte order but I'm guessing you're now trying to read them on a swapped machine such as Intel?

The only solution is to find either a Sun or a PPC Mac which has the same byte order so you can read the files. The .imh file uses the HDR$ syntax so you won't have to change the pixfile paths, but we don't have a tool to restructure the file and a general byte-swap won't work either.

Last post on Oct 01, 2010