Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.39 KB

README.md

File metadata and controls

31 lines (23 loc) · 1.39 KB

Python interface to ACM algorithm 772 (STRIPACK) fortran code for triangulation on a sphere. Includes routines from algorithm 623 for interpolation (nearest neighbor, linear and hermite cubic).

to install (numpy and fortran compiler (preferably gfortran) required):

  • python setup.py build

  • python setup.py install

  • to run test, execute python stripack/__init__.py

  • see source code docstrings for documentation, test/fib_test.py for example usage.

  • see sample codes in fv3 and mom6 directories for applications to FV3 and MOM6 grids.

References:

R. J. Renka, "ALGORITHM 623: Interpolation on the Surface of a Sphere", ACM Trans. Math. Software, Vol. 10, No. 4, December 1984, pp. 437-439. (http://dl.acm.org/citation.cfm?id=356107)

R. J. Renka, "ALGORITHM 772: STRIPACK: Delaunay triangulation and Voronoi diagram on the surface of a sphere" ACM Trans. Math. Software, Volume 23 Issue 3, Sept. 1997 pp 416-434. (http://dl.acm.org/citation.cfm?id=275329)