GeoChip CLI
Beginner-Friendly Satellite Imagery Ingestion, Raster Chipping, and Roboflow Annotation Pipeline
Overview
GeoChip CLI is a native Python command-line tool that guides you from defining an Area of Interest (AOI) to downloading cloud-filtered satellite imagery from Google Earth Engine (GEE), slicing rasters into ML-ready image chips, and uploading labeled task batches to Roboflow.
Key Highlights
- Beginner-Friendly Interactive UI: Arrow-key menus, live GEE/Roboflow connection status badges, date validation, progress spinners, and a Quick Start: Full Pipeline mode.
- Multi-Sensor Earth Observation Catalog:
- Copernicus Sentinel-2 L2A (10m) — Optical multispectral with QA60 + SCL cloud masking
- USGS Landsat 9 & Landsat 8 C2 L2 (30m) — Surface reflectance with
QA_PIXELmasking - Copernicus Sentinel-1 SAR GRD (10m) — All-weather, cloud-penetrating radar
- MODIS Terra Surface Reflectance (250m/500m) — Daily global revisit
- NASA SRTM Digital Elevation Model (30m) — Global elevation terrain
- Single-Scene or Cloud-Free Composite: Pick an individual acquisition or merge scenes with Median, 25th Percentile (Q25), Mean, or Lowest Cloud Cover.
- Raster Chipping & WGS84 Manifest: Slice GeoTIFFs into
160×160,320×320,640×640, or1280×1280px PNG chips grouped into task batches with a WGS84manifest.json. - Direct Roboflow Upload: Push task folders straight to Roboflow as annotation batches, with masked secret handling.
Architecture & Pipeline Flow
flowchart TD
subgraph Step1["Step 1: Download Satellite Imagery"]
A["AOI File (GeoJSON or Shapefile)\ndata/aoi/"] --> B["Auto-Reproject CRS to WGS84\n& Select Satellite Dataset"]
B --> C["Date Range, Cloud Filter\n& GEE Catalog Query"]
C -->|"Single Scene or Composite"| D["Raw UInt8 GeoTIFF\ndata/raw/*.tif"]
end
subgraph Step2["Step 2: Chipping & Roboflow Upload"]
D --> E["Select Chip Size\n160 / 320 / 640 / 1280 px"]
E --> F["Tile Grid + WGS84 manifest.json\ndata/chips/<raster>/task*/"]
F --> G{"Upload to Roboflow?"}
G -->|"Yes"| H["Roboflow Annotation Batches"]
G -->|"Local Only"| I["Saved Locally"]
end
Quickstart Installation
Requirement: Python 3.10+ (modern geospatial wheels bundle GDAL and PROJ automatically).
Option 1: One-Command Installer (Recommended for Beginners)
Windows (PowerShell):
irm https://raw.githubusercontent.com/Anovvy/GeoChip-CLI/main/scripts/install.ps1 | iex
macOS / Linux (Bash):
curl -fsSL https://raw.githubusercontent.com/Anovvy/GeoChip-CLI/main/scripts/install.sh | bash
Option 2: Install via pip / pipx
pip install git+https://github.com/Anovvy/GeoChip-CLI.git
Launch GeoChip CLI
GeoChip
To verify your installed version or run inside a specific project folder:
GeoChip --version
GeoChip --work-dir path/to/project
Preparing Your Area of Interest (AOI)
Place one or more AOI files inside data/aoi/ in your working folder:
- GeoJSON (Recommended for Beginners): Draw a polygon at geojson.io, save as
.geojson, and drop that single file intodata/aoi/. - ESRI Shapefile: Place
.shp,.shx,.dbf, and.prjinsidedata/aoi/. Projected coordinate systems (such as UTM) are automatically reprojected to WGS84 (EPSG:4326).
Credentials Setup
Credentials are stored securely in ~/.config/geochip/.env (with optional local .env overrides), so they work across any directory:
- Run
GeoChipand choose🔑 Setup Credentials & Authentication(or runGeoChip auth). - Google Earth Engine: Sign in via browser OAuth and enter your GCP Project ID (registered for Earth Engine at console.cloud.google.com/earth-engine/configuration).
- Roboflow (Optional): Enter your Private API Key (masked on input), Workspace Slug, and Target Project ID.
CLI Subcommands (Scripting & Automation)
# Interactive main menu
GeoChip
# Authentication setup
GeoChip auth --login
GeoChip auth --roboflow
# Download satellite imagery interactively
GeoChip download
# Slice a GeoTIFF into chips headlessly
GeoChip chip --raster data/raw/sentinel-2_AOI-1_median.tif --chip-size 640 --chips-per-task 5
# Upload generated batches to Roboflow
GeoChip upload --chips-dir data/chips/sentinel-2_AOI-1_median --task all
Repository Structure
GeoChip-CLI/
├── .github/
│ ├── scripts/
│ │ └── devops_pr_reviewer.py # AGY SDK Senior DevOps PR Reviewer (4-tier Gemini fallback)
│ ├── workflows/
│ │ ├── ci.yml # PR CI: Ruff, Pytest, Build, Bandit, CodeQL, pip-audit, AGY review
│ │ └── cd.yml # Tag CD: SemVer dist/ build, Canary Pre-Release, Prod promotion
│ └── dependabot.yml # Automated dependency & action updates
├── docs/
│ └── assets/
│ └── hero-banner.gif # Terminal hero banner animation
├── geochip/
│ ├── __init__.py # Package exports & version (3.0.0)
│ ├── auth.py # GEE OAuth & Roboflow credential setup
│ ├── cli.py # Main GeoChip CLI entrypoint & subcommands
│ ├── config.py # Global/local .env config, workspace paths & secret masking
│ ├── datasets.py # Satellite catalog definitions & cloud masks
│ ├── downloader.py # Optimized GEE query, compositing & GeoTIFF download
│ ├── geometry.py # GeoJSON & Shapefile loader with auto CRS reprojection
│ ├── tiler.py # Raster chipping & WGS84 manifest.json generator
│ ├── ui.py # Interactive menus, spinners & masked prompts
│ └── uploader.py # Roboflow batch uploader
├── scripts/
│ ├── install.ps1 # Windows one-command installer
│ └── install.sh # macOS/Linux one-command installer
├── tests/ # Offline unit & regression test suite
├── AGENTS.md # Engineering, CI/CD, Git & multi-agent governance
├── CHANGELOG.md # Release history (Keep a Changelog)
├── cliff.toml # Automated changelog generator config
├── LICENSE # MIT License
└── pyproject.toml # Package metadata, GeoChip scripts & tool configs
Development & Release Workflow
- Create a feature branch from
mainand make atomic commits following AGENTS.md. - Open a Pull Request targeting
main— CI runs linting, matrix tests, wheel build checks, Bandit/CodeQL SAST,pip-audit, and the AGY SDK Senior DevOps PR Reviewer. - After the Project Owner merges the PR, pushing a SemVer tag (
vMAJOR.MINOR.PATCH) triggers CD to builddist/, publish a Canary Pre-Release, and promote to Production after manual approval.
License
This project is licensed under the MIT License.
Metadata
Release files for geochip 3.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 |
|---|---|---|---|---|
| geochip-3.0.0.tar.gz | 38.9 kB | Without provenance | Details for geochip-3.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| geochip-3.0.0-py3-none-any.whl | Python 3 | none | any | Details for geochip-3.0.0-py3-none-any.whl |
Total release size: 72.9 kB
Release files / geochip-3.0.0.tar.gz
| Download URL | geochip-3.0.0.tar.gz |
|---|---|
| Size | 38.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4da182359b5610c2e61ec27687b4984e3b63099cb4f387a4c44b1bcbe63bfec3
|
|
BLAKE2b-256 checksum How to use checksums |
f716263c7cfe46e092a3c1887e7cc5ff0c6848fefd92fb7d9fb25e96300b27ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / geochip-3.0.0-py3-none-any.whl
| Download URL | geochip-3.0.0-py3-none-any.whl |
|---|---|
| Size | 34.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7eda665c6328f5c206692bac166606ad49f8f4857301e03bfce28dfac2d01197
|
|
BLAKE2b-256 checksum How to use checksums |
837ed67d1659b879a3fec3f1405752d62ed7ff79901f2786afc75f0f268169ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for geochip 3.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.