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

Home » Public Forums » archive » Re: 32bit to 64bit conversion
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: 32bit to 64bit conversion [message #36056] Wed, 06 August 2003 22:07 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Tapuosi Lotoaniu <lotoaniu@atmos.ucla.edu> writes:

> Hi all,
>
> I have data in the form big endian 32 bit positive integer (31 bit data
> with extra most significant bit set to zero). I want to import this data
> into idl 5.5 running on a sunblade 64 bit Unix machine.
>
> The IDL code (written for 32 bit PC) seems to work fine if the data is
> positive but the negative values are not coming out right.

If you have all positive integers (see 1st paragraph), then why are
concerned about negative values? (see 2nd paragraph).

Since IDL data types have a specific byte-size, I think you should be
able to read a LONG integer generated on one machine into another
machine, regardless of the native processor word size. Of course, you
should open the file with the correct endianness keywords to OPENU.

Good luck,
Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Help: multiple linear regression fit
Next Topic: Embedding colour IDL syntax in Word

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

Current Time: Thu Oct 09 22:37:50 PDT 2025

Total time taken to generate the page: 0.08086 seconds