Reconstituting f2py Multi-dimensional character array

2011-06-17 Thread Helmut Fritz
Hello all, I've normally only had to build a list of words from a f2py fortran character array. For this I found the transpose method to work fine. However I have had difficulty finding a way of getting a 3d array of words from Fortran to python. (I.e. 4d in python) I've attached 2 files that ar

shoehorn c-structured data into Numpy

2009-06-14 Thread Helmut Fritz
Hello there everyone, I used to be on this a long time ago but then I got so much spam I gave up. But this strategy has come a little unstuck. I have binary output from a Fortran program that is in a big-endian C-structured binary file. The output can be very variable and many options create dif