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

Home » Public Forums » archive » Re: Assoc and byteorder keywords
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: Assoc and byteorder keywords [message #36311 is a reply to message #36238] Thu, 28 August 2003 16:25 Go to previous message
Richard French is currently offline  Richard French
Messages: 173
Registered: December 2000
Senior Member
>
> Why not try this?
>
> openr, lun, /get_lun, 'images.bin', /swap_if_big_endian
>
> Cheers,
> Liam.
> Practical IDL Programming
> http://www.gumley.com/
>
>

Well, I had hoped that that would work, but for my floating point images, I
seem to need to use the /LSWAP option of BYTEORDER in order to get things to
work - just doing /SWAP_IF_BIG_ENDIAN fails to work. To be specific, I want
the data to be in 'native' format on my Dec Alpha (oops - Compaq -ooopps,
HP), but to be readable/writable from a Sun workstation. If, on the Sun, I
do:

Read,1,array
Byteorder,/LSWAP,/SWAP_IF_BIG_ENDIAN,array

Then everything works
Dick
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: IDL crash when stepping through object oriented program
Next Topic: Re: graphics formats, triangulisation & coordinate systems

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

Current Time: Thu Oct 09 20:42:15 PDT 2025

Total time taken to generate the page: 2.00425 seconds