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

Home » Public Forums » archive » Re: Q: IDL and endianness issues
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: Q: IDL and endianness issues [message #19686] Thu, 13 April 2000 00:00 Go to previous message
Nando Iavarone is currently offline  Nando Iavarone
Messages: 48
Registered: December 1998
Member
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Ossi Vaananen wrote:
<blockquote TYPE=CITE>Hi!
<p>Let's say I have a binary file with known structure, and
<br>the file is written on a little-endian machine. Then I want
<br>to read it again on a big-endian machine. How do I do it?
<p>If endianness was no problem, I could do this simply by
<br>creating a structure with contents that match the alignment
<br>of the different data types in the binary file, and then
<br>read data to it from the file with READU.
<p>In Matlab, files can be opened with the endianness of the
<br>file explicitly given as an argument to fopen. In IDL manuals
<br>I saw no reference to such a feature in IDL.
<p>The question is, does there exist a built-in feature in IDL
<br>that somehow allows endianness-specified file I/O?
<p>All the best,
<p>Ossi Vaananen
<br>Espoo, Finland</blockquote>
see 'BYTEORDER' procedure and the 'SWAP_ENDIAN' function.
<br>bye.
<br>&nbsp;
<pre>--&nbsp;
Nando Iavarone
Advanced Computer System - SPACE DIVISION
via Lazzaro Belli, 23
00040&nbsp; Frascati - RM
Tel: +39-6-944091 (switchboard)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 9440968 (direct)
E-mail:&nbsp;
&nbsp;&nbsp;&nbsp; f.iavarone@acsys.it
&nbsp;&nbsp;&nbsp; FrdndVrn@altavista.net</pre>
&nbsp;</html>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: widget function returns an array
Next Topic: widget function returns an array

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

Current Time: Sat Oct 11 06:54:19 PDT 2025

Total time taken to generate the page: 0.48001 seconds