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

Home » Public Forums » archive » byteoder for float numbers conversion
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: byteoder for float numbers conversion [message #8221 is a reply to message #8071] Tue, 18 February 1997 00:00 Go to previous messageGo to previous message
pit is currently offline  pit
Messages: 92
Registered: January 1996
Member
In article <5ebvgk$k1d@kwuz.nerc-keyworth.ac.uk>,
wmc@bsfiles.nerc-bas.ac.uk (William Connolley) writes:

>> I want to convert the float numbers from UNIX format(big-edian)
>> to PC format(small-edian).

> To go from SUN-floating-point to DECalpha-floating-point I use
> byteorder,data,/lswap
>
> It might work for you in this case.
> xdr doesn't sound right to me.

Why not? Of course you also have to write the data using /XDR.
This is the easiest way to keep code *and* data platform-independent.

> ps - PCs are the spawn of the devil. Why not leave your data on unix
> where it will be happy? ;-)

You're mixing things up. Little Endian is a *hardware* thing. It has
nothing to do with the OS you are running. IDL for Linux is still LE.
We have a mixed cluster here (SunOS, HP-UX, Linux), all Unix. Still
there is the Big/Little Endian problem.

Peter

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
Peter "Pit" Suetterlin http://www.uni-sw.gwdg.de/~pit
Universitaets-Sternwarte Goettingen
Tel.: +49 551 39-5048 pit@uni-sw.gwdg.de
-- * -- * ...-- * -- * ...-- * -- * ...-- * -- * ...-- * -- * ...-- * --
Come and see the stars! http://www.kis.uni-freiburg.de/~ps/SFB
Sternfreunde Breisgau e.V. Tel.: +49 7641 3492
____________________________________________________________ ______________
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Calling C routines
Next Topic: Re: Constructing Color Tables in IDL

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

Current Time: Fri Oct 10 03:39:41 PDT 2025

Total time taken to generate the page: 0.88086 seconds