Skip to main content

APbase

Version License: Apache 2.0 Python Kernel: Fortran Parallel: OpenMP CI

APbase Python

APbase is an intelligent mapping pipeline for irregular field data, including yield monitor, soil samples, and sensor grids. It automates the map workflow: filtering source data, handling geographic coordinates when needed, building the target grid, comparing interpolation methods, and selecting a ready-to-use map without requiring users to choose a mathematical model by hand.

Full documentation: https://apbase.io

Install

pip install apbase

Development version:

pip install git+https://github.com/ap-base/apbase-python.git

Quick Use

import numpy as np

import apbase
from apbase import Map

apbase.config["n_threads"] = 4

x = np.ascontiguousarray(x_metric, dtype=np.float64)
y = np.ascontiguousarray(y_metric, dtype=np.float64)
z = np.ascontiguousarray(values, dtype=np.float64)

result = Map(resolution=10.0)(x, y, z)

result.method                # "idw" or "kriging"
result.x, result.y, result.z # compact output points

X, Y, Z = result.to_raster() # dense raster, NaN outside the boundary

Functional shortcut:

result = apbase.create_map(x, y, z, resolution=10.0)

Main API

  • apbase.Map: automated map pipeline.
  • apbase.create_map: one-shot map creation.
  • apbase.config: runtime configuration, including OpenMP thread count.

Advanced modules are available under apbase.filtering, apbase.grid, apbase.variogram, apbase.idw, apbase.kriging, apbase.cokriging, and apbase.cross_validate.

Data Requirements

  • x, y, and z must be one-dimensional arrays.
  • Projected metric coordinates, such as UTM, are used directly.
  • Geographic lon/lat input is converted internally before distance operations; distance settings such as resolution are meters.
  • For best performance, use contiguous float64 arrays.

Performance

  • Native Fortran kernels exposed through F2PY/NumPy.
  • OpenMP parallelism for critical numerical work.
  • Local neighborhoods and neighbor limits instead of full distance matrices.
  • Compact output by default; dense rasters are materialized only with result.to_raster().

Set threads before creating maps:

import apbase

apbase.config["n_threads"] = 4

License

Apache License 2.0. See LICENSE.

Metadata

Release files for apbase 0.1.2

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

Built distributions (wheels)

Table of built distributions (wheels) for apbase 0.1.2
File
apbase-0.1.2-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details
apbase-0.1.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details
apbase-0.1.2-cp314-cp314-macosx_15_0_x86_64.whl CPython 3.14 CPython 3.14 macOS 15.0+ x86-64 Details
apbase-0.1.2-cp314-cp314-macosx_14_0_arm64.whl CPython 3.14 CPython 3.14 macOS 14.0+ ARM64 Details
apbase-0.1.2-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
apbase-0.1.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details
apbase-0.1.2-cp313-cp313-macosx_15_0_x86_64.whl CPython 3.13 CPython 3.13 macOS 15.0+ x86-64 Details
apbase-0.1.2-cp313-cp313-macosx_14_0_arm64.whl CPython 3.13 CPython 3.13 macOS 14.0+ ARM64 Details
apbase-0.1.2-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
apbase-0.1.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details
apbase-0.1.2-cp312-cp312-macosx_15_0_x86_64.whl CPython 3.12 CPython 3.12 macOS 15.0+ x86-64 Details
apbase-0.1.2-cp312-cp312-macosx_14_0_arm64.whl CPython 3.12 CPython 3.12 macOS 14.0+ ARM64 Details

Total release size: 153.4 MB

Release files / apbase-0.1.2-cp314-cp314-win_amd64.whl

Download URL apbase-0.1.2-cp314-cp314-win_amd64.whl
Size 17.3 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
302590822ecc0905839f1bd390b6e3101c6217cdf0806fe3cafd4feec62884b9
BLAKE2b-256 checksum
How to use checksums
6948cd28b1417e35b7b66249fe25902e9648c187e21caba14b4c00c2deda522e
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 16, 2026.

Transparency log

Release files / apbase-0.1.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL apbase-0.1.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 12.4 MB
Tags CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
02ca3c74b3e29041c579598dd575b08724859ad1cc144fa2b4fb8cbd870ff4a3
BLAKE2b-256 checksum
How to use checksums
3e5dee66314fb53dd53ec68281976fc25d3bc11f3e2f7e3ab98e5c213b3c2b3c
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 16, 2026.

Transparency log

Release files / apbase-0.1.2-cp314-cp314-macosx_15_0_x86_64.whl

Download URL apbase-0.1.2-cp314-cp314-macosx_15_0_x86_64.whl
Size 12.8 MB
Tags CPython 3.14 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
16b290a40feb495832f273928b9fb2d41c3233ee1f746b0be3f96c2e3ebd8a5f
BLAKE2b-256 checksum
How to use checksums
98255e54c48f7b9da9af6b97933a72fcba28c6c3d8a2a19fad63d73985d0ccb4
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 16, 2026.

Transparency log

Release files / apbase-0.1.2-cp314-cp314-macosx_14_0_arm64.whl

Download URL apbase-0.1.2-cp314-cp314-macosx_14_0_arm64.whl
Size 8.8 MB
Tags CPython 3.14 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
3f7dd0a6b66c0a9b5d24b54f38fa93c91c04d2721c497db182b975d369a4c7b8
BLAKE2b-256 checksum
How to use checksums
456cdd28e7cb6025d0c33f3ca337cc1b5e4085331a2bbccd79302eb7b2732328
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 16, 2026.

Transparency log

Release files / apbase-0.1.2-cp313-cp313-win_amd64.whl

Download URL apbase-0.1.2-cp313-cp313-win_amd64.whl
Size 17.0 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
dfa2a47832b2f791e73137f0d1c0aa28c58010dfcc2ec2963784552f0546fb3b
BLAKE2b-256 checksum
How to use checksums
aa16d9e52c32bb8d332f1ae6e003fe71a8ef8abda02bcc200355030227c4ac78
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 16, 2026.

Transparency log

Release files / apbase-0.1.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL apbase-0.1.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 12.4 MB
Tags CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
69abad693e2097e8069adaa65c3a82c134fbd089ae38a70828d16e948f1f0328
BLAKE2b-256 checksum
How to use checksums
d43137dded2350e3e2bc4f888c990651d91b85d411a020746cf7fe05972706c8
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 16, 2026.

Transparency log

Release files / apbase-0.1.2-cp313-cp313-macosx_15_0_x86_64.whl

Download URL apbase-0.1.2-cp313-cp313-macosx_15_0_x86_64.whl
Size 12.8 MB
Tags CPython 3.13 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
440ae7ce59207a064644e2fb714d07d970a8e87eb5999d0d24ac17294330be74
BLAKE2b-256 checksum
How to use checksums
868ea7d8aa2e1ac8680a3cfbc5a9e276ec5574d7c86af606a52aa493b985a1d9
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 16, 2026.

Transparency log

Release files / apbase-0.1.2-cp313-cp313-macosx_14_0_arm64.whl

Download URL apbase-0.1.2-cp313-cp313-macosx_14_0_arm64.whl
Size 8.8 MB
Tags CPython 3.13 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
cebbab1b36a8ce411f3666fb437528b5b7658a2a2011fc3c6138041010ba5c2c
BLAKE2b-256 checksum
How to use checksums
f5cfa4e4bce76645f85e449c305d788260904754e04b4a45ace9b494b96cf230
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 16, 2026.

Transparency log

Release files / apbase-0.1.2-cp312-cp312-win_amd64.whl

Download URL apbase-0.1.2-cp312-cp312-win_amd64.whl
Size 17.0 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
5c4c8706a1628485060b34276bc07b6cb862bab6490d33fab9474a0b089e5443
BLAKE2b-256 checksum
How to use checksums
6dc413fb9907ec012f19ee45a515100bacdfe4f1004fb3b2368856e1ecad0b03
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 16, 2026.

Transparency log

Release files / apbase-0.1.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL apbase-0.1.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 12.4 MB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
f3d242f1ab7afd5693671c960b0e8201d848d88b2bcd6e3f0e0641709870ceab
BLAKE2b-256 checksum
How to use checksums
4dcca1b11c4e401d7423ef7ef61e2c8ee36f1ce75f7ef2455aba9d3819d5f275
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 16, 2026.

Transparency log

Release files / apbase-0.1.2-cp312-cp312-macosx_15_0_x86_64.whl

Download URL apbase-0.1.2-cp312-cp312-macosx_15_0_x86_64.whl
Size 12.8 MB
Tags CPython 3.12 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
02498461ef425bd34c8535d75fe9b2bd36608cd3768ff1e462e80cabdb0bcc8d
BLAKE2b-256 checksum
How to use checksums
b1f8627240b43e6970d5944ac402ca831d8b091bab063012c2e8cc9eb8e49eca
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 16, 2026.

Transparency log

Release files / apbase-0.1.2-cp312-cp312-macosx_14_0_arm64.whl

Download URL apbase-0.1.2-cp312-cp312-macosx_14_0_arm64.whl
Size 8.8 MB
Tags CPython 3.12 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
d1cf70e3fe130bed3e3ab6a434b39e4398f9b4ca12dedfc2e4313a8458d10cd3
BLAKE2b-256 checksum
How to use checksums
e05cb851e75303e8be9475514e56b9c4347ac6c6fd4b13f0d14767706bc0ab96
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 16, 2026.

Transparency log

Security for apbase 0.1.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

All 12 files in this release have been uploaded with provenance metadata.

Select from 12 files

Attestation for apbase-0.1.2-cp314-cp314-win_amd64.whl

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 16, 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