Skip to main content

SkNNI

SkNNI (pronounced "skinny") stands for spherical k-nearest neighbors interpolation and is a geospatial interpolator.

Setup

SkNNI may simply be installed from PyPI using pip.

pip install sknni

Example

Here's a short usage example.

import numpy as np

from sknni import SkNNI

if __name__ == '__main__':
    observations = np.array([[30, 120, 20],
                             [30, -120, 10],
                             [-30, -120, 20],
                             [-30, 120, 0]])
    interpolator = SkNNI(observations)
    interp_coords = np.array([[30, 0],
                              [0, -120],
                              [0, 0],
                              [0, 120],
                              [-30, 0]])
    interpolation = interpolator(interp_coords)
    print(interpolation)
    # Output:
    # [[  30.          0.          9.312546]
    #  [   0.       -120.         14.684806]
    #  [   0.          0.         12.5     ]
    #  [   0.        120.         10.315192]
    #  [ -30.          0.         16.464548]]

Metadata

Release files for sknni 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sknni 1.0.0
File Size Uploaded Provenance Actions
sknni-1.0.0.tar.gz 5.1 kB Without provenance Details for sknni-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sknni 1.0.0
File Interpreter ABI Platform Actions
sknni-1.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for sknni-1.0.0-py2.py3-none-any.whl

Total release size: 10.2 kB

Release files / sknni-1.0.0.tar.gz

Download URL sknni-1.0.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
35efe7565caa3aba26c5377243644a3838870bb3ca3212d0ccffd3d3d79fed76
BLAKE2b-256 checksum
How to use checksums
c7bc409b579848a4c9af72e505fbfb5ceb4a0bcf4d6218e41a9f5db85b71764c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.4

Release files / sknni-1.0.0-py2.py3-none-any.whl

Download URL sknni-1.0.0-py2.py3-none-any.whl
Size 5.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2b39103e3353d1a45586e91af352edf672b94cc3288c760af6255115652102ec
BLAKE2b-256 checksum
How to use checksums
d2dc58e34c1a38e30efc7b47c4a5d965d5a1abde725041ba8f0422a496b73b35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.4

Security for sknni 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page