Skip to main content

2D spherical and Cartesian triangulation toolkit using tripack, stripack, srfpack and ssrfpack

Project description

A Python interface to TRIPACK and STRIPACK Fortran code for (constrained) triangulation in Cartesian coordinates and on a sphere. Stripy is an object-oriented package and includes routines from SRFPACK and SSRFPACK for interpolation (nearest neighbor, linear and hermite cubic) and to evaluate derivatives.

Installation

To install (numpy and fortran compiler, preferably gfortran, required):

Alternatively install using pip:

  • [sudo] pip install stripy

Usage

Two classes are included as part of the Stripy package:

  • Triangulation (Cartesian coordinates)

  • sTriangulation (Spherical coordinates)

Aside from the intent of triangulating Cartesian and Spherical coordinates, the classes share almost identical methods and attributes. They can be easily interchanged.

To run a series of tests, execute python tests/__init__.py.

References

R. J. Renka, “ALGORITHM 751: TRIPACK: A Constrained Two- Dimensional Delaunay Triangulation Package” ACM Trans. Math. Software, Vol. 22, No. 1, 1996, pp. 1-8.

R. J. Renka, “ALGORITHM 752: SRFPACK: Software for Scattered Data Fitting with a Constrained Surface under Tension”, ACM Trans. Math. Software, Vol. 22, No. 1, 1996, pp. 9-17.

R. J. Renka, “ALGORITHM 772: STRIPACK: Delaunay Triangulation and Voronoi Diagram on the Surface of a Sphere” ACM Trans. Math. Software, Vol. 23, No. 3, 1997, pp. 416-434.

R. J. Renka, “ALGORITHM 773: SSRFPACK: Interpolation of Scattered Data on the Surface of a Sphere with a Surface under Tension”, ACM Trans. Math. Software, Vol. 23, No. 3, 1997, pp. 437-439.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stripy-0.1.2.tar.gz (404.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page