Python Forum
Numpy arrays and compatability with Fortran arrays
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Numpy arrays and compatability with Fortran arrays
#1
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Write a dictionary with arrays as values into JSON format paul18fr 3 771 Oct-20-2021, 10:38 AM
Last Post: buran
  Arrays faster than pandas? Mark17 4 1,002 Aug-02-2021, 03:14 PM
Last Post: Mark17
  comparing floating point arrays to arrays of integers in Numpy amjass12 0 601 Jul-26-2021, 11:58 AM
Last Post: amjass12
  Concatenate 3D arrays paul18fr 1 988 Apr-09-2021, 02:49 PM
Last Post: paul18fr
  Automating to generate multiple arrays Robotguy 1 825 Nov-05-2020, 08:14 AM
Last Post: Gribouillis
  Using Pytables to Sort Large Arrays? Robotguy 0 1,051 Aug-12-2020, 03:35 PM
Last Post: Robotguy
  Corrupted numpy arrays when save to file. DreamingInsanity 2 1,536 Dec-14-2019, 12:12 PM
Last Post: DreamingInsanity
  Converting set of tuples to set of 2D numpy arrays ThemePark 0 1,659 Aug-04-2019, 05:07 PM
Last Post: ThemePark
  Spreadsheets, Python, and Fortran pmago 3 1,525 May-02-2019, 12:12 PM
Last Post: buran
  "erlarge" a numpy-matrix to numpy-array PhysChem 2 1,735 Apr-09-2019, 04:54 PM
Last Post: PhysChem

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020