Re: [Tutor] reading Fortran unformatted files with Python

2015-07-13 Thread Laura Creighton
In a message of Mon, 13 Jul 2015 15:32:06 -0400, Gabriele Brambilla writes: >Hi, > >sorry for the confusion I understood that the Real(8) I'm using correspond >to dtype float64 in Python. >With the second method it seems to work but I get a wrong number of >elements. > >They should be grouped by 21

Re: [Tutor] reading Fortran unformatted files with Python

2015-07-13 Thread Gabriele Brambilla
I solved the issue. If I need more help I'll send another email. thanks GB On Mon, Jul 13, 2015 at 3:32 PM, Gabriele Brambilla < gb.gabrielebrambi...@gmail.com> wrote: > Hi, > > sorry for the confusion I understood that the Real(8) I'm using correspond > to dtype float64 in Python. > With the s

Re: [Tutor] reading Fortran unformatted files with Python

2015-07-13 Thread Gabriele Brambilla
Hi, sorry for the confusion I understood that the Real(8) I'm using correspond to dtype float64 in Python. With the second method it seems to work but I get a wrong number of elements. They should be grouped by 21 float64 but I don't find a number of data = 21*m where m is an integer number. I t

Re: [Tutor] reading Fortran unformatted files with Python

2015-07-13 Thread Gabriele Brambilla
The second method seem to work. But how can I know which dtype in Python corresponds to REAL in fortran? Thanks On Mon, Jul 13, 2015 at 11:29 AM, Laura Creighton wrote: > In a message of Mon, 13 Jul 2015 11:14:36 -0400, Gabriele Brambilla writes: > >Hi, > > > >I have problems reading unformat

Re: [Tutor] reading Fortran unformatted files with Python

2015-07-13 Thread Laura Creighton
In a message of Mon, 13 Jul 2015 11:14:36 -0400, Gabriele Brambilla writes: >Hi, > >I have problems reading unformatted fortran output (binary) with python. > >I have a code in fortran where I write data on a file inside a cycle: > >write(11) x,y,z,BA01(i,j,k,1),BA01(i,j,k,2),1 >BB01(i,j,k,1),BB01(

[Tutor] reading Fortran unformatted files with Python

2015-07-13 Thread Gabriele Brambilla
Hi, I have problems reading unformatted fortran output (binary) with python. I have a code in fortran where I write data on a file inside a cycle: write(11) x,y,z,BA01(i,j,k,1),BA01(i,j,k,2),1 BB01(i,j,k,1),BB01(i,j,k,2),2 BE01(i,j,k,1),3 EC01(i,j,k,1),EC01(i,j,k,2),4 ED01(i,