Skip to main content

Spatial interpolation toolkit — boundaries, point data, 18 methods, export, and validation

Project description

geointerpo

Spatial interpolation for Python — 18 methods, live data APIs, and boundary clipping.
Drop in point data, get a smooth interpolated raster out.

Fetch live weather, air quality, or precipitation data from Meteostat, OpenAQ, Open-Meteo, NASA POWER, and ERA5.
Define your study area by place name, polygon file, or bounding box — boundaries are resolved automatically.
Export to GeoTIFF or NetCDF, run spatial cross-validation, compare methods side by side, and visualize interactively.

📖 Documentation · Install · Quickstart · Methods · Examples


     

Ordinary Kriging · Natural Neighbor · Gaussian Process — same 60 stations, Alberta, Canada


Install

pip install "geointerpo[full]"

Quickstart

from geointerpo import Pipeline

result = Pipeline(
    data="stations.csv",               # CSV, GeoDataFrame, or live API
    boundary="Calgary, Alberta",       # place name, bbox, or polygon file
    method=["idw", "kriging", "spline"],
).run()

result.plot()            # side-by-side comparison
result.plot_interactive()# zoomable plotly/leafmap map
result.metrics_table()   # cross-validation RMSE / r
result.best_method()     # best CV score
result.save("outputs/")  # GeoTIFF + PNG + CSV

Methods

geointerpo covers 18 canonical methods across deterministic, geostatistical, and ML workflows. All share the same interface — swap method= to compare.

Distance-based

The fastest methods — no statistical assumptions, exact at data points. Ideal as a quick baseline or when data is dense and evenly distributed.

     

idw · nearest · linear · cubic

Spline & Trend

Fit smooth continuous surfaces. Splines minimise curvature; RBF offers eight kernel choices; Trend fits a global polynomial for large-scale patterns.

     

spline · spline_tension · rbf · trend

Geostatistical

Account for spatial autocorrelation via a variogram model. Produce statistically optimal, unbiased estimates. Natural Neighbor uses Voronoi area-stealing weights — smooth and exact at data locations.

   

kriging (Ordinary) · uk (Universal) · natural_neighbor

Machine Learning

Capture non-linear spatial patterns. GP returns a full uncertainty surface alongside the mean prediction. Regression Kriging combines an ML trend with Kriging of the residuals.

     

gp (Gaussian Process) · rf (Random Forest) · gbm (Gradient Boosting) · rk (Regression Kriging)


References

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

geointerpo-0.2.0.tar.gz (4.9 MB view details)

Uploaded Source

Built Distribution

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

geointerpo-0.2.0-py3-none-any.whl (65.3 kB view details)

Uploaded Python 3

File details

Details for the file geointerpo-0.2.0.tar.gz.

File metadata

  • Download URL: geointerpo-0.2.0.tar.gz
  • Upload date:
  • Size: 4.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for geointerpo-0.2.0.tar.gz
Algorithm Hash digest
SHA256 208db642a55f0a49b9e385fc4b8353f37915b48e03155e8c1b20983693de5e92
MD5 b27857d75ecf5d674919c662cbc5847c
BLAKE2b-256 f3e5060e4c92cb98d16f8ef7f479b5594169bd15b82debc7e05cc224a27d6bd0

See more details on using hashes here.

Provenance

The following attestation bundles were made for geointerpo-0.2.0.tar.gz:

Publisher: publish.yml on homayounrezaie/geointerpo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file geointerpo-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: geointerpo-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 65.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for geointerpo-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2fe64d5821e6d79151c7b4b4f444508c58fbd1699ac1c9ccaf4a27e0217f5acd
MD5 51a95444aafbef94142370061bce412f
BLAKE2b-256 14942f501e30037aebab165d558164efc6ac7bf6902f4d913731c36216833a99

See more details on using hashes here.

Provenance

The following attestation bundles were made for geointerpo-0.2.0-py3-none-any.whl:

Publisher: publish.yml on homayounrezaie/geointerpo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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