From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d303b00317707db8 X-Google-Attributes: gidfee84,public From: koehler@bessta.gsfc.nasa.aspm.gov (Bob Koehler) Subject: Re: alpha to unix(sgi) binary conversion Date: 1998/04/24 Message-ID: <6hqat7$s73@post.gsfc.nasa.gov>#1/1 X-Deja-AN: 347322861 Distribution: world References: <6hikv8$mda9@fizban.pprd.abbott.com> Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA Reply-To: koehler@bessta.gsfc.nasa.aspm.gov Newsgroups: comp.unix.osf.osf1 In article <6hikv8$mda9@fizban.pprd.abbott.com>, bussierd@tvsfrank (Dirksen E. Bussiere [42T]) writes: >I need to convert a binary file on an alpha to a binary file on an sgi for >use in a program. The files are being written by by a fortran program and >have the following header: > >6 Real*4 values, 9 Integer*4 values > >and then a grid of Real*4 values. > >This is written on an alpha and then needs to be read by an sgi. Is there >any relatively easy way to convert this file from the Alpha binary format >to the Sgi binary format? > THe real*4 should both be IEEE. The bytes may need to be swapped. Some implementations of dd will do this for you. If you're transferring via FTP, be sure to specify binary mode. ------------------------------------------------------------------------------ Bob Koehler | Computer Sciences Corporation Hubble Space Telescope Payload | System Sciences Division Flight Software Team | please remove ".aspm" when replying