Skip to main content

A Python package to do natural neighbour interpolation

Project description


NNIpy is a Python package for conducting natural neighbour interpolation. The major advantage of NNIpy over other implementations of natural neighbour interpolation is that NNIpy can interpolate beyond the convex hull of the input data points.

Example use

>>> import nnipy as nn
>>> import numpy as np
>>> extent = (0, 1, 0, 1)
>>> xyz = np.array([[0.41702200, 0.72032449, 0.69588564],
                                        [0.30233257, 0.14675589, 0.42313433],
                                        [0.18626021, 0.34556073, 0.72032449],
                                        [0.53881673, 0.41919451, 0.48452417]])
>>> i = np.array([[0.03577382, 0.76334544]])
>>> nnint = nn.nnint(xyz, i, extent)
>>> print(nnint)
[ 0.70094508]


NNIpy was developed using:

  • Python 2.7.11
  • NumPy 1.10.4
  • SciPy 0.17.0

Installation notes

The installation of NLMpy can be done from the command line using either a Terminal on OSX/UNIX or a Command Prompt on Windows. At the command line you just need to run:

pip install nlmpy

which will get the pip program to install NLMpy directly from the online Python Package Index.

Project details

Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
nnipy-0.1.1.tar.gz (4.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page