Recent content by daniel.corry
-
D
Python Help Getting the Tonry model of Peculiar velocity field running in python
so i got somewhere however now in line 123, ivrw = int((vx*x + vy*y + vz*z) / math.sqrt(x*x+y*y+z*z)) it is telling me x is not defined, however I am sure it is defined above- daniel.corry
- Post #5
- Forum: Programming and Computer Science
-
D
Python Help Getting the Tonry model of Peculiar velocity field running in python
i am getting the message 'return' outside function and I have played around but can't seem to shift that message.- daniel.corry
- Post #3
- Forum: Programming and Computer Science
-
D
Python Help Getting the Tonry model of Peculiar velocity field running in python
I am attempting to translate the model of peculiar velocity flow given by Tonry et al (1999) from fortran into python, the language we use on my course, however I am experiencing difficulties in getting the thing to run. I have attached the original fortran (sbf2flow) and my attempt at...- daniel.corry
- Thread
- Field Model Python Running Velocity
- Replies: 4
- Forum: Programming and Computer Science