View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

IRAF on sasanami

Guest wrote on Aug 02, 2006

Hi IRAF Gurus,

I have a question about the ttools package in IRAF.

I created a binary table using "tcreate" and "tedit"
on a Sun workstation running Solaris, named Indy. The
ttools package works without a hitch. The IRAF distribution
is the EXPORT version of Sun/IRAF V2.11 for SunOS 4 and Solaris 2.7.

I transferred the table to a PC, named Sasanami, running
linux. It is running the EXPORT version of PC-IRAF V2.12.
(The file does not appear to be corrupted in any way; and
I tried the transfer with ssh, and with sftp with explicit
"binary."

The version of IRAF that's running on Sasanami cannot read
tables created with IRAF on Indy - see error message below.
Can you tell what's wrong?

The ".tab" files are binary tables described in the notes on
the IRAF project webpage.

Thanks,
Crystal

ON INDY:

cl> tables
ta> tlcol 15Hmaster.tab
# 15Hmaster.tab
name CH*15 %-15s ""
ra CH*15 %-15s ""
dec CH*15 %-15s ""
P I %11d ""
15hconf2 I %11d ""
KeckM I %11d ""
15hf4A I %11d ""
15Hf4C I %11d ""
04julymask R %d ""
z R %15.7g ""
lineID CH*10 %-10s ""
scr I %d ""
15hf2conA I %d ""
ContSearch B %d ""

ON SASANAMI:

cl> tables
ta> tlcol 15Hmaster.tab
# 15Hmaster.tab
Warning: Unknown table type, or line too long for text file.

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

Mike Fitzpatrick wrote on Aug 02, 2006

TABLES .tab files are machine dependent and so are byte-swapped in this case. You can try the REBLOCK task to swap bytes on the file but in most cases you'll need to recreate the table.

Cheers,
-Mike

Last post on Aug 02, 2006