Skip to main content

A package providing single interface to different interpolation methods

Project description

Spacial data interpolation

This package provides single interface for different interpolation methods.

Example

Regular usage of ordinary kriging method

import numpy as np
from sdinterp.variogram import calc_empirical, get_cov_model, fit_cov_model
from sdinterp.interpolation.kriging import Ordinary

# prepare data
n = 100
points = np.random.random((n, 2))
target = np.random.random((n,))

# get empirical variogram and fit model to it
bin_center, gamma = calc_empirical(points, target)
cov_model = get_cov_model("exponential")
fit_cov_model(cov_model, bin_center, gamma)

# init interpolation model
model = Ordinary(cov_model, points, target)

# evaluate model
prediction = model(np.random.random((1000, 2)))

Supported methods

  • Simple Kriging
  • Ordinary Kriging
  • Universal Kriging
  • Inverse Distance Weighting
  • Nearest Neighbours
  • Linear
  • Radial basis function

Supported covariance models

  • Gaussian
  • Exponential
  • Matern
  • Integral
  • Stable
  • Rational
  • Cubic
  • Linear
  • Circular
  • Spherical

Requirements

  • gstools >= 1.4.1
  • numpy >= 1.23.5
  • scipy >= 1.10.0

Develop and test

  • Download project
  • Create new virtualenv and install requirements.txt
  • For testing run pytest from root

Build and release

  • Build with python -m build
  • Deploy to test.pypi.org with twine upload --repository testpypi dist/*
  • Deploy to pypi.org with twine upload dist/*

Contact

You can contact me via popov.aleksandr.v01@gmail.com

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

sdinterp-0.0.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sdinterp-0.0.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file sdinterp-0.0.1.tar.gz.

File metadata

  • Download URL: sdinterp-0.0.1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for sdinterp-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8ca2a94f6f40fc95e2b7cbc23f43aea375c921e992ac19020b21d0cc211e1705
MD5 5f9575e65b5554c5d7ed58237eb3df0a
BLAKE2b-256 f193db385d0be08bab3b184cb98a81a3ed2f3b4b7fa7af81d299ba178feb4735

See more details on using hashes here.

File details

Details for the file sdinterp-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: sdinterp-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for sdinterp-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a75e66cd73ea8a7c1822a09e09deedf4516145668b4fdfc421ff3248fe4f07e0
MD5 8cccf9713e6105a47f96fa9000b6e885
BLAKE2b-256 d9eff05b12a02b41a5411ec06ea1b13e4611021ff0713b38069094737121afe6

See more details on using hashes here.

Supported by

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