[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Q: IDL and endianness issues
- Subject: Re: Q: IDL and endianness issues
- From: "Liam E.Gumley" <Liam.Gumley(at)ssec.wisc.edu>
- Date: Tue, 11 Apr 2000 15:30:43 -0500
- Newsgroups: comp.lang.idl-pvwave
- Organization: Space Science and Engineering Center, UW-Madison
- References: <8d012j$rsc$1@ousrvr3.oulu.fi> <38F3897C.839A1FF0@astro.cornell.edu>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:19216
> Ossi Vaananen wrote:
> > Hi!
> >
> > Let's say I have a binary file with known structure, and
> > the file is written on a little-endian machine. Then I want
> > to read it again on a big-endian machine. How do I do it?
> >
> > If endianness was no problem, I could do this simply by
> > creating a structure with contents that match the alignment
> > of the different data types in the binary file, and then
> > read data to it from the file with READU.
> >
> > In Matlab, files can be opened with the endianness of the
> > file explicitly given as an argument to fopen. In IDL manuals
> > I saw no reference to such a feature in IDL.
> >
> > The question is, does there exist a built-in feature in IDL
> > that somehow allows endianness-specified file I/O?
You might want to check out the following:
http://cimss.ssec.wisc.edu/~gumley/binarytools.html
Cheers,
Liam.