| 69 | |
| 70 | '''Week 2''' |
| 71 | |
| 72 | I started to implement the prototype in Python: |
| 73 | * trilinear interpolation implemented and tested against SciPy method, unit test is included in the code |
| 74 | * Runge-Kutta integration of 4th order implemented too, but that has to be tested more |
| 75 | * I started `r3.flow` itself but the prototype is not ready yet. |
| 76 | The code is in [source:sandbox/annakrat/r3.flow sandbox]. |
| 77 | Things to consider: |
| 78 | * Soeren suggests using interpolation approach by [http://www.isws.illinois.edu/pubdoc/b/iswsb-65.pdf Prickett, 1981] instead of trilinear interpolation from voxel centers. |
| 79 | * r3.flow should be able to compute the gradient so that the input can be also just one 3D raster map instead of 3 maps representing the vector field. For now I could probably use !NumPy's method `gradient` based on central differences. When porting to C, there is [http://grass.osgeo.org/programming7/gpdelib.html GPDE] library in GRASS. |