Skip to content

python interface to STRIPACK for triangulation on a sphere, with nearest neighbor, linear and cubic interpolation.

License

Notifications You must be signed in to change notification settings

jswhit/stripack

Repository files navigation

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)

About

python interface to STRIPACK for triangulation on a sphere, with nearest neighbor, linear and cubic interpolation.

Resources

License

Stars

Watchers

Forks

Packages

No packages published