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

Home » Public Forums » archive » Re: byteoder for float numbers conversion
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: byteoder for float numbers conversion [message #8066] Wed, 05 February 1997 00:00
pit is currently offline  pit
Messages: 92
Registered: January 1996
Member
In article <5d8mo8$n98@elaine44.stanford.edu>,
yafeng@leland.Stanford.EDU (Meili Zhong) writes:

> I want to convert the float numbers from UNIX format(big-edian)
> to PC format(small-edian). For example, I have a float array
> data(420)

byteorder, data, /lswap

Or have a look at the /XDR Keyword for opening files.

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
____________________________________________________________ ______________
Re: byteoder for float numbers conversion [message #8070 is a reply to message #8066] Tue, 04 February 1997 00:00 Go to previous message
Phil Williams is currently offline  Phil Williams
Messages: 78
Registered: April 1996
Member
Meili Zhong wrote:
>
> I want to convert the float numbers from UNIX format(big-edian)
> to PC format(small-edian). For example, I have a float array
> data(420)
>
> None of these commands worked:
> byteorder, data
> byteorder, data, /xdrtof
> byteorder, data, /ftoxdrt
>
> I can write the C program to do it but my file is the IDL
> structure so I like to solve this problem in IDL too.
>
> Thanks.
>
> P.S: Does anybody has the IDL program drawing topographic
> map for EEG(ERP) data? Thanks a lot.
>
> Yafeng Li

Try SWAP_ENDIAN.

Phil
--
/*********************************************************** ********/
Phil Williams, Ph.D.
Research Instructor
Children's Hospital Medical Center "One man gathers what
Imaging Research Center another man spills..."
3333 Burnet Ave. -The Grateful Dead
Cincinnati, OH 45229
email: williams@irc.chmcc.org
URL: http://scuttle.chmcc.org/~williams/
/*********************************************************** ********/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: INT_TABULATED (2D?)
Next Topic: CGM-files

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

Current Time: Wed Oct 08 18:41:22 PDT 2025

Total time taken to generate the page: 0.00442 seconds