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

Home » Public Forums » archive » Signed and unsigned integer problem
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: Signed and unsigned integer problem [message #10168 is a reply to message #10037] Thu, 09 October 1997 00:00 Go to previous messageGo to previous message
Alexei Chirokikh is currently offline  Alexei Chirokikh
Messages: 4
Registered: September 1997
Junior Member
Thanks a lot. It works.

Bernd Aberle wrote in message <343CA459.7D25@dfd.dlr.de>...
> Alexei Chirokikh wrote:
>>
>> Hi, all
>> I have data file which is in unsigned integer format. How can I
>> properly read in PV-Wave?
>>
>> --
>> AC
>
> I don't have PV-Wave, but in IDL you could read the data as signed
> integer and convert all data to long, but like this :
> data_long = long(data_short and '0000ffff'X)
> so that the long data is positiv.
>
> E.g.:
> IDL> print,long(-1 and '0000ffff'X)
> 65535
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: GMT generated netCDF grid files and IDL
Next Topic: running IDL/ENVI on Apple PowerBook 3400c?

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

Current Time: Sat Oct 11 09:29:24 PDT 2025

Total time taken to generate the page: 1.36281 seconds