Re: Read 16 bit integer complex data

2005-04-08 Thread John Machin
On 7 Apr 2005 11:04:30 -0700, "Greg" <[EMAIL PROTECTED]> wrote: >That worked, thanks a lot. That's great, and given your Matlab background, you'll no doubt find lots of other uses for numeric / numarray. I'd just like to make a few other points: (1) struct.unpack shouldn't be that slow, provide

Re: Read 16 bit integer complex data

2005-04-07 Thread Greg
That worked, thanks a lot. Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Read 16 bit integer complex data

2005-04-07 Thread Jeff Epler
You may want to use the 'numeric' or 'numarray' extensions for this. The page on numarray is here: http://www.stsci.edu/resources/software_hardware/numarray numarray doesn't support "complex 16-bit integer" as a type, but you can get a complex, floating-point valued array from your integer val

Read 16 bit integer complex data

2005-04-07 Thread Greg
Hi, I'm new to python, I don't have a whole lot of programming experience aside from Matlab. I hope you'll excuse my ignorance. I'm trying to figure out how to read in 16 bit integer complex data. Each 16 bits alternate, first 16 bits represent the real part of the number, next 16 bits represent