APbase
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, andzmust 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
resolutionare meters. - For best performance, use contiguous
float64arrays.
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
Links
- Documentation: https://apbase.io
- Source: https://github.com/ap-base/apbase-python
- Issues: https://github.com/ap-base/apbase-python/issues
License
Apache License 2.0. See LICENSE.
Metadata
Release files for apbase 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| apbase-0.1.3-cp314-cp314-win_amd64.whl | CPython 3.14 | CPython 3.14 | Windows x86-64 | Details |
| apbase-0.1.3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl | CPython 3.14 | CPython 3.14 | Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 | Details |
| apbase-0.1.3-cp314-cp314-macosx_15_0_x86_64.whl | CPython 3.14 | CPython 3.14 | macOS 15.0+ x86-64 | Details |
| apbase-0.1.3-cp314-cp314-macosx_14_0_arm64.whl | CPython 3.14 | CPython 3.14 | macOS 14.0+ ARM64 | Details |
| apbase-0.1.3-cp313-cp313-win_amd64.whl | CPython 3.13 | CPython 3.13 | Windows x86-64 | Details |
| apbase-0.1.3-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.3-cp313-cp313-macosx_15_0_x86_64.whl | CPython 3.13 | CPython 3.13 | macOS 15.0+ x86-64 | Details |
| apbase-0.1.3-cp313-cp313-macosx_14_0_arm64.whl | CPython 3.13 | CPython 3.13 | macOS 14.0+ ARM64 | Details |
| apbase-0.1.3-cp312-cp312-win_amd64.whl | CPython 3.12 | CPython 3.12 | Windows x86-64 | Details |
| apbase-0.1.3-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.3-cp312-cp312-macosx_15_0_x86_64.whl | CPython 3.12 | CPython 3.12 | macOS 15.0+ x86-64 | Details |
| apbase-0.1.3-cp312-cp312-macosx_14_0_arm64.whl | CPython 3.12 | CPython 3.12 | macOS 14.0+ ARM64 | Details |
Total release size: 153.6 MB
Release files / apbase-0.1.3-cp314-cp314-win_amd64.whl
| Download URL | apbase-0.1.3-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 17.3 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a0db42a9c1d4fdd0ff5922cd30cbababc3842244095bdc20a2600e0895efe6c4
|
|
BLAKE2b-256 checksum How to use checksums |
959b208744b4dd0c44701f890ca30de2396fc20483ccfb21a740e09778d1f293
|
| 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 / apbase-0.1.3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | apbase-0.1.3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 12.5 MB |
| Tags | CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
7bbe20d114f75e9954e46a421a6a31a7768bcc36a795d8e8e970c640601d1ca5
|
|
BLAKE2b-256 checksum How to use checksums |
09fe613af224795e724220b9ddb357fd539bcac1eed222eacc5863d6d1ccbe34
|
| 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 / apbase-0.1.3-cp314-cp314-macosx_15_0_x86_64.whl
| Download URL | apbase-0.1.3-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 |
aeebf4479c2bd24e1e517c22d8718060f94d063baf727d8725afe171cb2734cf
|
|
BLAKE2b-256 checksum How to use checksums |
186588bff55515b8dfb830234a6359898871ef3365faf0cd16e7ee400ebfab8d
|
| 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 / apbase-0.1.3-cp314-cp314-macosx_14_0_arm64.whl
| Download URL | apbase-0.1.3-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 |
c89f5a22bf1d27138eb91a0cae18dbe824e7d50cd82ceef0b04d16010564e3b5
|
|
BLAKE2b-256 checksum How to use checksums |
05af823388c7f4b5f012c2ee720008b9b3edeaf703e146e1aaad9ba14555337a
|
| 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 / apbase-0.1.3-cp313-cp313-win_amd64.whl
| Download URL | apbase-0.1.3-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 17.0 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
4b681c2158d3558ad8e67ebb8bcd18f1d66daa0a375dba014fa97eae2d092c3d
|
|
BLAKE2b-256 checksum How to use checksums |
7c5957f786813c26789e5a935eb71d71cf00042177a0af5054f24740f31eb626
|
| 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 / apbase-0.1.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | apbase-0.1.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 12.5 MB |
| Tags | CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
3f3e99e2472e7f577da0fa6fbe0077d5c71435eaa938575390f85374e2fa4a81
|
|
BLAKE2b-256 checksum How to use checksums |
001c13ba1495a03e33aec284be5cd5b7a53fcc160c5ebc7c5d3a387d1f014bed
|
| 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 / apbase-0.1.3-cp313-cp313-macosx_15_0_x86_64.whl
| Download URL | apbase-0.1.3-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 |
2b4f5f898ab278a1d90c565689466eb09142cb891cbb38e91ad4aa2f9b831f12
|
|
BLAKE2b-256 checksum How to use checksums |
ceb87c9786090cca3ee66254b68744ed192dba689c7a623d95fac8d48673d63a
|
| 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 / apbase-0.1.3-cp313-cp313-macosx_14_0_arm64.whl
| Download URL | apbase-0.1.3-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 |
091a84231e3d48b9a8163e3626e675933af1da18e63a9c0d105d2938567167ef
|
|
BLAKE2b-256 checksum How to use checksums |
41d7d46865cbc3244d994887fa645d9a8a72390bd2b19802b64573804c2a55d3
|
| 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 / apbase-0.1.3-cp312-cp312-win_amd64.whl
| Download URL | apbase-0.1.3-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 17.0 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
c6efdbb60ed84174b3075d21756b280a6bc558b2311b0d0366ecd21aa12f90b9
|
|
BLAKE2b-256 checksum How to use checksums |
43c82f372b30407347d75e32d7eac24dfdfe44390bca0c2689139c3e0a3694fc
|
| 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 / apbase-0.1.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | apbase-0.1.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 12.5 MB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
04d0c6919fbf0676646c913b451af4b8dd0ef3bc18da95d7d159677c1bbd5dce
|
|
BLAKE2b-256 checksum How to use checksums |
6e8682eec94a3beeb12a93df06c43615a96289775438e9d3994a6d776c7b3026
|
| 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 / apbase-0.1.3-cp312-cp312-macosx_15_0_x86_64.whl
| Download URL | apbase-0.1.3-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 |
711374e789c4a0b472f48c1bc69eab277c3d4bddf4a72bc03df2ac718603a40d
|
|
BLAKE2b-256 checksum How to use checksums |
5f2474f4a61b484cae709b14b092836d51ac09221a125480ff71afd817df6857
|
| 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 / apbase-0.1.3-cp312-cp312-macosx_14_0_arm64.whl
| Download URL | apbase-0.1.3-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 |
71e265c425376325efe36063babc1cc1f825748bc83da7d8f742d0fef84b8899
|
|
BLAKE2b-256 checksum How to use checksums |
3681af7c072f08df4682f52e9d6493f8f6e906d292ccf89a3fc9f7bb19a9644f
|
| 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 apbase 0.1.3
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.
Attestation for apbase-0.1.3-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 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.