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

Home » Public Forums » archive » little and big endian -- once more
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: little and big endian -- once more [message #15423 is a reply to message #15342] Thu, 13 May 1999 00:00 Go to previous message
Liam Gumley is currently offline  Liam Gumley
Messages: 473
Registered: November 1994
Senior Member
Dick Jackson wrote:
> I'm not sure if I'm missing some subtlety here, but wouldn't the (newish)
> keywords /SWAP_IF_[BIG|LITTLE]_ENDIAN to IDL's OPEN and BYTEORDER routines
> work in all cases? I've used them to good effect for cross-platform work.
>
> From the help file:
>
> [...] it only takes effect if the current system has [big|little] endian
> byte ordering. This keyword does not refer to the byte ordering of the input
> data, but to the computer hardware.

This method assumes that you keep track of which platform was used to
create the datafile. I'd rather just interrogate the datafile.

Or of course, you can use netCDF. We're working an a specification right
now for a simplified set of 3 functions to perform netCDF read, write,
and inquire operations. I'll post them when they're ready.

---
Liam E. Gumley
Space Science and Engineering Center, UW-Madison
http://cimss.ssec.wisc.edu/~gumley
[Message index]
 
Read Message
Read Message
Previous Topic: coherence test implementation
Next Topic: Re: coherence.pro re-re-post (ignore previous re-post)

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

Current Time: Sat Oct 11 18:44:24 PDT 2025

Total time taken to generate the page: 1.02367 seconds