geoai-datacubes
Turn raw satellite imagery into AI-ready data cubes — pick a place, pick a time, get clean training data.
Full documentation: https://buckai-observatory.github.io/geoai-datacubes/
New here? Two ready-to-run paths get you started directly in Colab — no install, no credentials needed:
Data acquisition & pre-processing — the grand-tour notebook walks through every pipeline feature on the data side: every mission (data source), AOI (area of interest) format, cloud masking, NaN handling, tiling, multi-mission fusion, and SLURM submission.
ML / DL on a data cube — the classification notebook trains and compares Logistic Regression, Random Forest, XGBoost, and a U-Net on a multi-modal fused cube across three Ohio cities, on any ESA WorldCover class you pick at the top.
Also Colab-ready: an
opengeos/geoaiintegration notebook (03_with_opengeos_geoai.ipynb). See Try the notebooks for all three. A fourth notebook (02_building_detection.ipynb) is bundled as an in-development scaffold for object detection on NAIP — kept in the repo but not part of the reviewed examples.
What is this?
geoai-datacubes is an open-source tool developed at the BuckAI Observatory at The Ohio State University, intended for the worldwide Earth-observation and AI research communities. It gives you ready-to-use pipelines that download satellite imagery for any region and time you choose, then pre-process it into AI-ready "data cubes" — cloud-filtered, normalised, tiled, augmented, and split into training / validation / test sets that you can feed straight into a machine-learning model.
The repo is designed to lower the entry barrier into Earth-observation ML for anyone — researchers, postdocs, graduate students, undergraduate research assistants, or industry / non-profit practitioners. If you have never touched an HPC or a satellite API before, you can still follow the steps below and produce a usable dataset without first having to stitch together half a dozen vendor SDKs. Tooling the BuckAI Observatory builds is open-sourced under permissive licences so that this kind of accessible AI infrastructure can benefit the broader research community, not just OSU's.
What is an "AI-ready data cube"?
Raw satellite scenes are huge, messy files: different formats, cloudy pixels, inconsistent value ranges, and far too big to fit on a GPU. A data cube is that imagery cleaned up and reshaped into a tidy, stacked array — think of a deck of aligned image layers (the spectral bands) cut into small, equal-sized tiles. Because every tile is the same size, cloud-free, normalised to a common range, and pre-split into train/validation/test groups, you can load it directly into PyTorch or TensorFlow and start training. The cube does the boring, error-prone data prep so you can focus on the science. A fused cube is the same thing with layers from more than one mission (say, Sentinel-2 optical plus Sentinel-1 radar plus elevation) resampled onto one grid.
It is called a cube because the stack has three axes: rows x columns x bands (a time axis can be added for time series). Every pixel location carries the same list of values, one per layer.
Key terms
- AOI (area of interest) is the geographic box you want data for. It can be given as a bounding box, a shapefile, a centre point plus a side length, or a point inside a Sentinel-2 tile.
- Mission is one satellite or data product the package can download, for example Sentinel-2 L2A, Landsat, NAIP or ESA WorldCover. Each has its own bands and resolution. Some entries, such as land-cover maps, are derived products rather than a single satellite.
- Band is one layer of an image, such as red or near-infrared reflectance.
- Tile (chip) is a small, equal-sized image crop used as one training sample. Stride is how far the tiling window moves between tiles; a stride equal to the tile size means no overlap.
- Provider is the web service that hosts the data (Earth Search, Planetary Computer, and others).
What it does
- 26 missions in a unified registry — Sentinel-1 / 2, Landsat, NAIP, PlanetScope, MODIS, HLS, ALOS, Copernicus DEM, 3DEP, ESA WorldCover, JRC-GSW, USDA-CDL, Hansen-GFC, and more. Full per-mission band / resolution / value-range reference in
docs/data_layers.md. - Four interchangeable providers (Earth Search, Microsoft Planetary Computer, Planet Orders, Sentinel Hub) plus a
direct_httppath for non-STAC datasets, unified behind one dispatcher. The defaultPROVIDER = "auto"routes each mission to its best free host. Seedocs/providers.mdfor the trade-offs and routing table. - Declarative per-band metadata. Every band carries a
kindand a normalisation recipe;apply_band_norm+get_band_normproduce ML-ready features in one call without hiding the scale factors. - Multi-mission fusion onto a common UTM grid via
fuse_response_tiffs(...)with mission-prefixed band descriptions so provenance survives. Seedocs/fusion.md. - Robust pre-processing — smear-protected reprojection, polygon-aware Sentinel-1 same-day mosaicking, cloud / shadow / haze masking via mission-aware QA bands (Sentinel-2 SCL, Landsat BQA, PlanetScope UDM2).
- Spatially-aware train / val / test splits (
random,block,stripes,regions) selectable as a single argument, closing the leakage hole that random tile splits leave open on autocorrelated imagery. - On-the-fly PyTorch tile sampling via
LazyTileDataset— sweep tile size, stride, augmentation, NaN handling, and split assignment at training time without materialising tiles to disk.
Two ways to use geoai-datacubes
The package supports two typical workflows; you can pick either, and you can move between them freely.
- Notebook path — the on-ramp for anyone new to satellite data or ML/DL. The bundled notebooks (
notebooks/00_geoai_datacubes_tour.ipynband its siblings, above) are documented, interactive, and easy to adapt. Open one in Colab, swap the AOI and time range to your area of interest, and iterate. This is the recommended starting point for students and researchers coming from adjacent fields. - Script / library path — for users comfortable with remote sensing or ML who want to compose the pipeline into their own code. Import the package as a library, chain the fetch / fuse / tile helpers into your own workflow, embed it in a bigger pipeline, or run headless on an HPC cluster. Notebooks can also be stripped down to a plain Python script for SLURM runs —
smoke-tests/perf_bench.slurmis one worked example of that pattern.
Both paths share the same underlying package — the notebooks are just curated call-sites of the same public API a script user would call directly.
Install
The recommended path is a single mamba (or conda) command from conda-forge plus one pip install. mamba is a drop-in conda replacement that solves environments much faster; if you already have conda installed, substitute conda for mamba in the commands below and everything works the same.
mamba create -y -n geoai-cubes -c conda-forge \
python=3.11 \
geoai-py leafmap torchgeo omniwatermask \
rasterio gdal libgdal-jp2openjpeg pyproj shapely \
pystac pystac-client planetary-computer \
"pytorch>=2.0" "torchvision>=0.15" \
zarr lmdb scikit-image pillow \
matplotlib numpy pandas tqdm requests \
scikit-learn xgboost ultralytics transformers \
jupyterlab ipywidgets seaborn geopandas contextily
mamba activate geoai-cubes
pip install geoai-datacubes # or: pip install -e . from a clone
libgdal-jp2openjpeg is the JPEG-2000 GDAL plugin — needed for Earth Search's Sentinel-2 L1C assets, which are hosted as .jp2. Every other mission is COG-native and does not need it; if you skip it, all missions except S2 L1C still work.
For Docker, pip-only, slimmer installs via [ml] / [geoai] / [notebooks] / [planet] extras, and the first-run recipe, see docs/install.md. PlanetScope and Sentinel Hub credential setup is in docs/credentials.md.
Try the notebooks
The repo ships with three complementary reviewed notebooks in notebooks/ plus one in-development scaffold. See notebooks/README.md for a detailed walkthrough of each.
1. The grand tour (start here if you are new)
notebooks/00_geoai_datacubes_tour.ipynb
A pedagogical walkthrough of every feature on the data side of the pipeline — AOI formats, free missions, cloud masking, NaN handling, tiling with/without overlap, the four split strategies, multi-mission fusion, reading metadata back from a tile, augmentation, and submitting jobs to SLURM. Click the Colab badge to launch in your browser — the first cell clones the repo and installs everything, no local Python required.
2. Land-cover classification end-to-end (ML / DL)
notebooks/01_classification.ipynb
A complete machine-learning workflow that picks up where the tour leaves off. Fetches and fuses Sentinel-2 + Sentinel-1 + Copernicus DEM + ESA WorldCover for Columbus, Cincinnati, and Cleveland; trains and compares four standard classifiers (Logistic Regression, Random Forest, XGBoost, and a lightweight U-Net) on a binary target — the chosen ESA WorldCover class vs everything else. The class is a user input at the top, with a per-class quality table. Includes conditional NDWI / NDVI baselines, KMeans unsupervised bonus, multi-modal fusion comparison, threshold tuning on validation, and a collapsible binary-classification metrics explainer. Cached weights for the default water target ship in the repo so a fresh Colab launch lands in ~5 min instead of ~30.
3. Integration with opengeos/geoai (segmentation hand-off)
notebooks/03_with_opengeos_geoai.ipynb
A worked example of composing geoai-datacubes (data-prep front-end) with opengeos/geoai (Wu, 2026, JOSS 11(118):9605 — modelling back-end). Builds fused multi-mission cubes for three Ohio cities and hands them off to geoai-py in two patterns: pretrained inference via geoai.segment_water on a NAIP scene, and custom training via select_bands + geoai.train_segmentation_landcover + geoai.semantic_segmentation. Trains on Cleveland + Cincinnati and holds Columbus out entirely — in-distribution F1 reaches ~0.95 while OOD F1 collapses to ~0.05, an honest illustration of the standard remote-sensing-ML reality of training on a handful of AOIs.
⚠️ Work in progress: object detection on NAIP
notebooks/02_building_detection.ipynb
In development — not part of the reviewed examples. This notebook is a scaffold for the first object-detection workflow in the series: YOLOv8 fine-tuned on NAIP 1 m aerial imagery + Microsoft US Building Footprints, with OWLv2 zero-shot and a community-trained YOLO as pretrained baselines. The pipeline runs end-to-end but the trained detector does not converge reliably enough for us to include it as a reviewed example alongside notebooks 00 / 01 / 03. It is kept in the repo as a starting point for object-detection experimentation; contributions and issue reports are welcome.
Documentation
The detailed reference docs live under docs/:
install.md— clone, env, full install matrix, first run, AOI formats.providers.md— Earth Search / Planetary Computer / Sentinel Hub / Planet /direct_httptrade-offs, capability matrix,autorouting.fusion.md— multi-mission fusion onto a common UTM grid.data_layers.md— per-mission band / resolution / value-range / normalisation recipe reference.configuration.md—main.pyparameter knobs + pipeline-script reference.credentials.md— Sentinel Hub + Planet credential setup.adding_a_mission.md— how to wire a new mission profile intoMISSION_PROFILES.project_structure.md— directory tree + per-module summary.HPC_QUICKSTART.md— short cluster-side install + SLURM training recipe.
For contributing, reporting issues, or getting support, see CONTRIBUTING.md (which also covers the Contributor Covenant code of conduct).
License
Released under the MIT License — see LICENSE for the full text. Copyright © The Ohio State University / BuckAI Observatory.
Acknowledgements & contact
Built and maintained by the BuckAI Observatory at The Ohio State University.
- Website: https://ai-observatory.osu.edu
- More tools & tutorials: BuckAI Observatory resources page
This project was developed over approximately one year by Jain, Bhavika; Radhakrishnan, Aswathnarayan; Chowdhury, Satyaki Roy; Hsu, Hsiao Jou; and Moortgat, Joachim (principal investigator) at OSU. See CHANGELOG.md for the full timeline and CONTRIBUTORS.md for a per-area breakdown of who contributed what. Code development since May 2026 was substantially accelerated by Claude Code, Anthropic's AI coding assistant, used under continuous human direction and review.
If you use geoai-datacubes in your research, please cite via the GitHub "Cite this repository" dropdown (sourced from CITATION.cff) or the JOSS paper draft at paper.md.
We welcome collaboration. If this tool helps your research, we'd love to hear about it.
Metadata
Release files for geoai-datacubes 1.0.0
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 |
|---|---|---|---|---|
| geoai_datacubes-1.0.0.tar.gz | 1.5 MB | With provenance | Details for geoai_datacubes-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| geoai_datacubes-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for geoai_datacubes-1.0.0-py3-none-any.whl |
Total release size: 1.6 MB
Release files / geoai_datacubes-1.0.0.tar.gz
| Download URL | geoai_datacubes-1.0.0.tar.gz |
|---|---|
| Size | 1.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd9bcc589de52336740adfe11bc8f6b60cfeeca46c7f0a1cb06967122a5f6c86
|
|
BLAKE2b-256 checksum How to use checksums |
07c4bfc77f96ae82ac20b8ff9d8af686154150abe2fd06b6065fa1cc19feeed9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 2, 2026.
Transparency logRelease files / geoai_datacubes-1.0.0-py3-none-any.whl
| Download URL | geoai_datacubes-1.0.0-py3-none-any.whl |
|---|---|
| Size | 144.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90006efd6315a3e072406989fff3cf707b246692f4f44e18125b66c8d9ec07e3
|
|
BLAKE2b-256 checksum How to use checksums |
6e2c01899b4501e64950633493f2dcccf4a86cc0ca1f9d71c614bcf9f2f3b037
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 2, 2026.
Transparency logSecurity for geoai-datacubes 1.0.0
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
Both files in this release have been uploaded with provenance metadata.
Attestation for geoai_datacubes-1.0.0.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 Nov 2, 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.