Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #29886
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Subject | Re: Pass numeric arrays from C extensions to Python |
| Date | 2012-09-23 22:48 -0400 |
| References | <05993015-7be1-4424-b062-1755f59f3142@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1178.1348454915.27098.python-list@python.org> (permalink) |
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 exists an > official C library to read/create/edit such data, and you want to do > data analysis in python. The problem comes down to how to feed the > data into python. > > I did some googling, but so far no luck. Can anyone help me? Thank > you very much. I would look into numpy and scipy. -- Terry Jan Reedy
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Pass numeric arrays from C extensions to Python JBT <jianbao.tao@gmail.com> - 2012-09-23 18:39 -0700 Re: Pass numeric arrays from C extensions to Python Terry Reedy <tjreedy@udel.edu> - 2012-09-23 22:48 -0400 Re: Pass numeric arrays from C extensions to Python Grant Edwards <invalid@invalid.invalid> - 2012-09-24 14:55 +0000
csiph-web