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

Home » Public Forums » archive » Re: Reading 32-bit complex numbers in IDL (16-bit real / 16-bit imaginary)
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: Reading 32-bit complex numbers in IDL (16-bit real / 16-bit imaginary) [message #77175 is a reply to message #77112] Fri, 12 August 2011 06:15 Go to previous messageGo to previous message
Waqas A. Qazi is currently offline  Waqas A. Qazi
Messages: 3
Registered: August 2011
Junior Member
Hi chl and wox,

Thanks, I took up from the info both of you noted here, and did some
reading on my own.

It seems the numbers are indeed half-precision floating point (never
knew this was a data-type!), but in the data storage here, they are
specified as integers and should be read as such. The data
specification document states clearly that "samples are stored as 16
bit / 16 bit complex integer (4 bytes).

Wox, I understand the logic you have presented, and I will follow
that, but have one question. After defining an intarr (16 bit) and
reading 2-byte integers and later pairing them up for intput into the
complex function, why do I have to convert from integer to float
first? I think that the complex function should automatically convert
them to single-precision float complex??


Thanks,
Waqas.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: map_set projection "from below"?
Next Topic: TITLE property using object graphics

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

Current Time: Fri Oct 10 06:27:57 PDT 2025

Total time taken to generate the page: 0.52677 seconds