April 25, 2008
9:55 a.m.
Hi All. I just want to conver Fortran 77 source to Python. Here is my F77 source. DIMENSION A(25,60,13),B(25,60,13) open(15,file='data.dat') DO 60 K=1,2 READ(15,1602) ((B(I,J),J=1,60),I=1,25) 60 CONTINUE 1602 FORMAT(15I4) DO 63 K=1,10 DO 62 I=1,25 DO 62 J=1,60 A(I,J,K)=B(I,J) 62 CONTINUE 63 CONTINUE END Q1: Fortran-contiguous is ARRAY(row,colum,depth). How about the Python-contiguous ? array(depth,row,colum) ? Q2: How can I insert 1D to a 2D array and make it to 3D array. ex:) B:25x60 ==> A: 10X25X60 Any advice please.