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 #77113 is a reply to message #77112] Sun, 07 August 2011 08:52 Go to previous messageGo to previous message
Carsten Lechte is currently offline  Carsten Lechte
Messages: 124
Registered: August 2006
Senior Member
On 08/07/2011 02:01 PM, Waqas A. Qazi wrote:
> 32-bit imaginary. How can I read the 16-bit real - 16-bit imaginary
> complex number in IDL?

This looks like half precision floats
< https://secure.wikimedia.org/wikipedia/en/wiki/Half_precisio n_floating-point_format>.
However, there are several variants. Do you have any description of your data file that
mentions IEEE 754?

I am not aware of any programming language that supports this format natively. Maybe
this link in the wikipedia article can help you:
<http://www.mathworks.com/matlabcentral/fileexchange/23173>

Else you would have to do the bit fiddling yourself to promote them to 32bit.



chl
[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 16:51:38 PDT 2025

Total time taken to generate the page: 1.36631 seconds