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
Metadata
Release files for py3dinterpolations 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| py3dinterpolations-1.0.1.tar.gz | 1.4 MB | With provenance | Details for py3dinterpolations-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py3dinterpolations-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for py3dinterpolations-1.0.1-py3-none-any.whl |
Total release size: 1.4 MB
Release files / py3dinterpolations-1.0.1.tar.gz
| Download URL | py3dinterpolations-1.0.1.tar.gz |
|---|---|
| Size | 1.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
841740cd35b0b28df12908bd43fb964b26f8d342e6efdc2313cec05d2b5e77ff
|
|
BLAKE2b-256 checksum How to use checksums |
0a3217e711e6b45ae6df1ee759dab56afdc9312719f2a63bc2fed728c1cb0ac6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 17, 2026.
Transparency logRelease files / py3dinterpolations-1.0.1-py3-none-any.whl
| Download URL | py3dinterpolations-1.0.1-py3-none-any.whl |
|---|---|
| Size | 25.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5be647fa278fbaa048cff2c6ede1baaf7cddaa3622b76f4edd996bfe9224e649
|
|
BLAKE2b-256 checksum How to use checksums |
f3fb718f0d3377c517390538dc5d41cd8a9a81667b53d8be61eb64f75f4ffb4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 17, 2026.
Transparency logSecurity for py3dinterpolations 1.0.1
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for py3dinterpolations-1.0.1.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 Oct 17, 2026.
Transparency logA 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.