Numpy arrays and compatability with Fortran arrays - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Data Science (https://python-forum.io/forum-44.html) +--- Thread: Numpy arrays and compatability with Fortran arrays (/thread-20857.html) |
Numpy arrays and compatability with Fortran arrays - merrittr - Sep-03-2019 I am trying to write some python code that will utilize a f2py fortran code the Fortran arrays are defined like #REAL TSFSROT(NLAT,NMOS,4) and I am defining the python/numpy arrays like this TSFSROT=np.zeros((NLAT,NMOS,4)) just zero filling them for now , doest that make sense |