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

Home » Public Forums » archive » Re: 32bit signed integer problems
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: 32bit signed integer problems [message #11446] Wed, 15 April 1998 00:00
wmc is currently offline  wmc
Messages: 117
Registered: February 1995
Senior Member
In article 38A5@campra.phys.nd.edu, Burkhard Prause <bprause@campra.phys.nd.edu> writes:
> I try to read what I believe are 32 bit signed integer binary data
> files.
> Any suggestions what I may be doing wrong here?

Were they produced on the same machine that you're reading them on?
Ie do you have byteswap problems?

-W.

---
William M Connolley | wmc@bas.ac.uk | http://www.nbs.ac.uk/public/icd/wmc/
Climate Modeller, British Antarctic Survey | Disclaimer: I speak for myself
Re: 32bit signed integer problems [message #11455 is a reply to message #11446] Tue, 14 April 1998 00:00 Go to previous message
a2652099 is currently offline  a2652099
Messages: 10
Registered: August 1996
Junior Member
bprause@campra.phys.nd.edu (Burkhard Prause) wrote:

> Array then turns out to contain sheer noise. If I read the data file
> into a one dimesional vector, then extract 16 bit integers by reading
> every third and fourth byte into a 256x128x128 integer array, I can
> produce the "correct" image. So my data set is not garbage. However,
> by doing this I basically limit my contrast, because all values larger
> than 2^16 are read as 65536.
>
> Any suggestions what I may be doing wrong here?

Have a look at the BYTEORDER procedure.


Alex
--
Alex Schuster Wonko@weird.cologne.de PGP Key available
alex@pet.mpin-koeln.mpg.de
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Book: Java Programming with CORBA, 2/e
Next Topic: map_continents,/hires problem in IDL 5.0.3

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

Current Time: Wed Oct 08 14:22:05 PDT 2025

Total time taken to generate the page: 0.00479 seconds