Skip to main content
py3dinterpolations

py3dinterpolations

Quick 3D interpolation with Python.

PyPI Python CI Coverage Docs Ruff License: MIT


Interpolate scattered 3D spatial data onto regular grids using Ordinary Kriging or Inverse Distance Weighting (IDW). Built on top of PyKrige and scikit-learn, with built-in preprocessing, cross-validation, and interactive visualizations.

import pandas as pd
from py3dinterpolations import GridData, interpolate

# load your spatial data (columns: ID, X, Y, Z, V)
df = pd.read_csv("measurements.csv")
griddata = GridData(df)

# interpolate onto a regular 3D grid
modeler = interpolate(
    griddata=griddata,
    model_type="ordinary_kriging",
    grid_resolution=5.0,
    model_params={"variogram_model": "linear", "nlags": 6, "weight": True},
)

# access results
grid = modeler.result  # interpolated 3D grid

Features

  • Interpolation — Ordinary 3D Kriging and IDW out of the box
  • Preprocessing — downsampling, coordinate normalization, signal standardization
  • Cross-validation — parameter grid search for kriging models
  • Visualization — 2D slices with matplotlib, interactive 3D with plotly

Installation

pip install py3dinterpolations

Development

Requires uv.

git clone https://github.com/giocaizzi/py3dinterpolations.git
cd py3dinterpolations
uv sync --extra dev
make check

Documentation

Full documentation with working examples is available at giocaizzi.github.io/py3dinterpolations; its sources are in docs/.

License

MIT

Metadata

Release files for py3dinterpolations 1.0.2

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

Source distribution (sdist)

Source distribution for py3dinterpolations 1.0.2
File Size Uploaded Provenance Actions
py3dinterpolations-1.0.2.tar.gz 1.4 MB With provenance Details for py3dinterpolations-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for py3dinterpolations 1.0.2
File Interpreter ABI Platform Actions
py3dinterpolations-1.0.2-py3-none-any.whl Python 3 none any Details for py3dinterpolations-1.0.2-py3-none-any.whl

Total release size: 1.4 MB

Release files / py3dinterpolations-1.0.2.tar.gz

Download URL py3dinterpolations-1.0.2.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
97c1142b2ae193003479a5bb68e653918fe67bcad99b23b6a586f3f0889a9835
BLAKE2b-256 checksum
How to use checksums
859b2531b2b2f7c6ae64f54cabd1bc38e4095d2146d04c411bbf9065cdc17255
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / py3dinterpolations-1.0.2-py3-none-any.whl

Download URL py3dinterpolations-1.0.2-py3-none-any.whl
Size 25.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
59f70beaec2aa8e347a733272eeb7dc6daff1bd778d359026b4bf4abac46f4a8
BLAKE2b-256 checksum
How to use checksums
49bcac5af1dd1977c3dec132d7ef305aedc3bd37b3210ef252d89bb8222bffe1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for py3dinterpolations 1.0.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for py3dinterpolations-1.0.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

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.

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