Geospatial processing for precision agriculture

Turn field data into precision maps. In one call.

Reliable, with no manual tuning. Ready for APIs, the cloud and AI agents.

pip install apbase
Read the docs
  1. 01 Smart

    Removes local outliers and picks the best mathematical model on its own.

  2. 02 High performance

    A Fortran core with OpenMP, running on every CPU core.

  3. 03 Scalable

    From notebooks to plugins, GIS, APIs and cloud clusters.

Smart

Raw field data in. Precision map out.

Yield monitor data, soil samples and sensor grids arrive irregular and noisy. APbase decides on its own what to clean and which model to use.

Automatic outlier removal

Cleans dense data without manual rules

Each point is compared with its neighborhood, the right way to filter yield monitor and high-density sensor data.

Removes invalid data, global outliers and local spatial outliers.

Best mathematical model

Picks the interpolation with the lowest error

Compares models with cross-validation and uses the one with the lowest error on your data. No manual tuning.

Cross-validation errorIllustrative
Model A
Model BChosen
Model C
  1. 01Filters outliers
  2. 02Builds boundary and grid
  3. 03Picks the model
  4. 04Delivers the clipped map

Use APbase with

Python and Rust

One call turns your field points into a precision map. The same core runs in Python and Rust, and comes to other languages next.

Language roadmap

  1. PythonAvailable now
  2. RustAvailable now
  3. ReactUp next
  4. GoUp next
main.py
import apbase
# OpenMP parallelism: set once per process
apbase.config["n_threads"] = 4
# Filters, builds the grid and picks the best model
result = apbase.create_map(x, y, z, resolution=10.0)
result.method # model chosen by cross-validation
result.z # finished map, clipped to the boundary
Read the Python docs

High performance and scalable

A fast engine that scales with your application

The engine

  1. 01

    Fortran + OpenMP

    Native kernels on every core, bundled with the package.

  2. 02

    Lightweight, no dependencies

    Takes coordinates and values and returns the map. No web framework, no database.

  3. 03

    Deterministic

    Same input, same map, every time.

  1. Notebook
  2. Plugins and GISIntegration with GIS software
  3. API
  4. Workers and queues
  5. ContainersKubernetes, Cloud Run, ECS
  6. AI agentsMCP servers

Same pipeline, same result at every level