Re: Pass numeric arrays from C extensions to Python

2012-09-24 Thread Grant Edwards
On 2012-09-24, JBT wrote: > I am looking for a way to pass numeric arrays, such as *float a[100]; > double b[200];*, from C extension codes to python. The use case of > this problem is that you have data stored in a particular format, > NASA common data format (CDF) in my case, and there exists a

Re: Pass numeric arrays from C extensions to Python

2012-09-23 Thread Terry Reedy
On 9/23/2012 9:39 PM, JBT wrote: Hi, I am looking for a way to pass numeric arrays, such as *float a[100]; double b[200];*, from C extension codes to python. The use case of this problem is that you have data stored in a particular format, NASA common data format (CDF) in my case, and there exis

Re: Pass numeric arrays from C extensions to Python

2012-09-23 Thread Oscar Benjamin
On 24 September 2012 02:39, JBT wrote: > Hi, > > I am looking for a way to pass numeric arrays, such as *float a[100]; > double b[200];*, from C extension codes to python. The use case of this > problem is that you have data stored in a particular format, NASA common > data format (CDF) in my cas

Pass numeric arrays from C extensions to Python

2012-09-23 Thread JBT
Hi, I am looking for a way to pass numeric arrays, such as *float a[100]; double b[200];*, from C extension codes to python. The use case of this problem is that you have data stored in a particular format, NASA common data format (CDF) in my case, and there exists an official C library to read