Skip to main content

OmniEarth

CI/CD Documentation Release PyPI version npm version Coverage Socket.dev Security Snyk Security Security Policy Supply Chain DOI Platform Python uv pnpm License

Interactive Documentation & User Manual: Read the complete in-depth guide with parameter tables, sensor physics, and tutorials at lokeshsk.github.io/omniearth/guide.html or browse locally at docs/guide.html. Main showcase website is at docs/index.html.

OmniEarth is an open-source, universal multi-modal Earth Observation (EO), hyperspectral cube, topography, and environmental data aggregation engine. It provides a unified Python SDK, Node.js / TypeScript SDK, and Universal CLI to discover, query, filter, and stream open earth observation data across all modalities:

  • Optical Multispectral: Sentinel-2 (Level-2A Surface Reflectance & Level-1C Top-of-Atmosphere), Landsat-8/9 (30m) via AWS Open Data STAC.
  • Hyperspectral Cubes: DLR EnMAP (224 spectral bands), NASA EMIT (285 bands), and ASI PRISMA (240 bands).
  • Synthetic Aperture Radar (SAR): Sentinel-1 (GRD / RTC VV/VH 10m COGs).
  • Digital Elevation Models (DEM / DSM / DTM): Copernicus DEM GLO-30 (30m DSM), SRTM GL1 (30m), ALOS World 3D (AW3D30 30m).
  • Land Use / Land Cover (LULC): ESA WorldCover 10m (2020 v100 and 2021 v200 global maps).
  • Weather & Climate Profiles: Open-Meteo zero-config global forecasts, hourly soil moisture (0-9cm), FAO-56 reference evapotranspiration (ET0), vapour pressure deficit (VPD), and ERA5 historical reanalysis.
  • Soil & 3D Profiles: ISRIC SoilGrids v2.0 (250m global physical and chemical soil profiles across 0-200cm).
  • Atmospheric Composition & Air Quality: Copernicus Sentinel-5P TROPOMI (NO2, CO, CH4, SO2, O3, Aerosol Index) and CAMS ECMWF.
  • Active Fire & Thermal Anomalies: NASA FIRMS VIIRS (375m) and MODIS (1km) near-real-time active fire hotspots and Fire Radiative Power (FRP).
  • Ocean Color, Marine Biology & SST: Copernicus Sentinel-3 OLCI (21 spectral bands chlorophyll-a and turbidity) and SLSTR sea surface temperature (SST).
  • Radar Altimetry & Water Surface Levels: Copernicus Sentinel-6 Michael Freilich / Jason-3 Poseidon-4 SAR altimeter (Significant Wave Height, Sea Surface Height Anomaly, lake levels).
  • High-Resolution Precipitation: NASA GPM IMERG (0.1 deg half-hourly/daily global calibrated precipitation) and CHIRPS v2.0 (0.05 deg daily rainfall 1981-present).
  • Hydrology & Root-Zone Soil Moisture: NASA SMAP (L-band 9km/3km radiometer surface 0-5cm and root-zone 0-100cm soil water content).
  • Nighttime Lights & Nocturnal Radiance: Suomi-NPP / NOAA-20 VIIRS Day/Night Band (DNB 750m) and NASA Black Marble (calibrated nocturnal radiance and stable lights).

Table of Contents

  1. Supported Modalities and Provider Matrix
  2. Installation and Setup
  3. Sequential CLI User Guide
  4. Sequential Python SDK Guide
  5. Sequential Node.js / TypeScript SDK Guide
  6. Direct Underlying REST and STAC API Calls (cURL)
  7. High-Performance Engine Features
  8. Authentication and Environment Configuration
  9. Security and Supply Chain Provenance
  10. License and Mandatory Attribution
  11. Citation
  12. Author and Maintainer

Supported Modalities and Provider Matrix

Modality Sensor / Dataset Spatial / Spectral Backend Architecture Authentication
Optical Sentinel-2 (L2A SR / L1C TOA), Landsat-8/9 10m-30m, 12-13 bands AWS Earth Search STAC Zero-Config (Free public COGs)
SAR Sentinel-1 GRD / RTC 10m, VV / VH dual-pol AWS Earth Search STAC Zero-Config (Free public COGs)
Copernicus CDSE Sentinel-1, 2, 3, 5P (Raw SAFE & Selective Bands) Native JP2/SAFE/SEN3/NC Copernicus Data Space Ecosystem OData/STAC CDSE Account (CDSE_USERNAME/CDSE_PASSWORD)
Elevation Copernicus DEM GLO-30, SRTM GL1, ALOS 30m, DSM / DTM AWS Open Data / OpenTopography S3 Zero-Config (Free direct COGs)
Land Cover ESA WorldCover 10m (2020, 2021) 10m global classification AWS Open Data S3 Zero-Config (Free direct COGs)
Hyperspectral DLR EnMAP 30m, 224 bands (420-2450 nm) DLR EOC STAC + Geoservice Free DLR Account (Optional)
Hyperspectral NASA EMIT 60m, 285 bands (381-2493 nm) NASA CMR STAC Free Earthdata Login (Optional)
Hyperspectral ASI PRISMA 30m, 240 bands ASI PRISMA Portal Free ASI Account (Optional)
Weather Open-Meteo, ERA5, FAO-56 ET0, VPD Global 1-11km, hourly Open-Meteo REST API Zero-Config (Public open API)
Soil & 3D ISRIC SoilGrids v2.0 250m 3D profiles (0-200cm) ISRIC REST API Zero-Config (Public open API)
Atmosphere Sentinel-5P TROPOMI, CAMS NO2, CO, CH4, SO2, O3, AOD Copernicus STAC / Open-Meteo Zero-Config (Public open API)
Fire NASA FIRMS (VIIRS 375m, MODIS 1km) 375m-1km active hotspots, FRP NASA FIRMS REST API Zero-Config (Public open API)
Ocean Sentinel-3 OLCI (21 bands) & SLSTR 300m-1km Chlorophyll, SST Copernicus Data Space STAC Zero-Config (Public open data)
Altimetry Sentinel-6 Poseidon-4, Jason-3 SWH (m), SSHA (m), lake heights PO.DAAC CMR STAC / Copernicus Zero-Config (Public open data)
Precipitation NASA GPM IMERG, CHIRPS v2.0 0.05-0.1 deg daily/hourly rain NASA GES DISC / UCSB S3 Zero-Config (Public open data)
Hydrology NASA SMAP (L-band), CGLS SWI 9km/1km Root-zone soil moisture NSIDC DAAC CMR STAC Zero-Config (Public open data)
Nightlights VIIRS Day/Night Band, Black Marble 750m nocturnal radiance NASA LPCLOUD CMR STAC Zero-Config (Public open data)

Note: 12 of the 14 modalities require zero credentials and work out of the box with zero setup! Free accounts are optionally supported for direct raw hyperspectral mission downloads (DLR EnMAP and NASA EMIT) or official Copernicus Data Space Ecosystem (CDSE) raw .SAFE.zip archives and selective band extraction.


Installation and Setup

OmniEarth is maintained using modern package workflows: Astral uv for Python and pnpm for Node.js.

Python Package & CLI

# Using Astral uv (recommended):
uv add omniearth
# or via uv pip:
uv pip install omniearth

# Using standard pip:
pip install omniearth

Node.js / TypeScript Package & CLI

# Using pnpm (recommended):
pnpm add omniearth
# or install CLI globally:
pnpm add -g omniearth

# Using npm:
npm install omniearth
# or install CLI globally:
npm install -g omniearth

Sequential CLI User Guide

OmniEarth provides an identical, cross-platform CLI in both Python and Node.js environments.

Step 1: Healthcheck and System Diagnostics

Verify your environment, detected credentials, and cache directory:

omniearth info

Step 2: Explore Supported Categories and Modalities

List all available sensor modalities, spectral resolutions, and backend STAC endpoints:

omniearth categories

Step 3: Spatial Search using Bounding Box, Point, or GeoJSON

Search for scenes intersecting an area of interest (AOI):

# Search using bounding box: min_lon min_lat max_lon max_lat
omniearth search --category optical --bbox 78.50 20.65 78.60 20.72 --limit 3

# Search using point with radius: lon lat [radius_km]
omniearth search --category sar --point 78.55 20.68 5.0 --limit 3

# Search using GeoJSON boundary file
omniearth search --category elevation --geojson ./field_boundary.geojson

# Search 10m ESA WorldCover
omniearth search --category landcover --bbox 78.50 20.65 78.60 20.72 --year 2021

Step 4: Apply Temporal, Processing Level (SR vs TOA), and Cloud Cover Filters

Narrow your search to specific acquisition windows, cloud thresholds, or optical processing level. All searches across all 14 modalities strictly return results in chronological descending order (newest acquisitions first):

# 1. Surface Reflectance (SR / Level-2A, default) for agriculture, soil, and vegetation:
omniearth search --category optical \
  --bbox 78.50 20.65 78.60 20.72 \
  --level sr \
  --max-cloud 15 \
  --limit 5

# 2. Top-of-Atmosphere (TOA / Level-1C) preserving Band 10 (1375 nm Cirrus) & water body reflectances:
omniearth search --category optical \
  --bbox 78.50 20.65 78.60 20.72 \
  --level toa \
  --limit 5

# 3. Single-year scoping (automatically bounds to YYYY-01-01 through YYYY-12-31):
omniearth search --category hyperspectral \
  --bbox 78.50 20.65 78.60 20.72 \
  --year 2026 \
  --limit 5

Step 5: Output Raw JSON and Export GIS Footprints (.geojson / .csv)

Pipe search results directly to jq, or export GIS footprints directly for QGIS, ArcGIS, and pandas:

# Output raw JSON to stdout:
omniearth search --category weather --point 78.55 20.68 --json | jq .

# Export bounding polygons and metadata to GeoJSON FeatureCollection:
omniearth search --category optical --point 78.55 20.68 10.0 --export footprints.geojson

# Export metadata and download links to tabular CSV:
omniearth search --category optical --bbox 78.50 20.65 78.60 20.72 --export results.csv

Step 6: Unified Search-to-Download Pipeline & Interactive Selection

Seamlessly bridge catalog search and concurrent asset download without copying IDs:

# 1. Download ALL matching search results concurrently:
omniearth search --category optical --bbox 78.50 20.65 78.60 20.72 --limit 3 --download-all --outdir ./downloads

# 2. Download top N matching search results:
omniearth search --category sar --point 78.55 20.68 5.0 --download-top 2 --outdir ./downloads

# 3. Download specific search results by 1-based index or range:
omniearth search --category hyperspectral --bbox 78.50 20.65 78.60 20.72 --select 1,3 --outdir ./downloads
omniearth search --category optical --bbox 78.50 20.65 78.60 20.72 --select 1-2 --outdir ./downloads

# 4. Interactive selection prompt after inspecting search results:
omniearth search --category optical --bbox 78.50 20.65 78.60 20.72 -i
# Displays search results table, then prompts:
# Enter indices to download (e.g. '1,3', '1-2', 'all', or 'q' to quit):

Step 7: Official Copernicus CDSE Raw SAFE & Selective Band Downloads

Directly access the Copernicus Data Space Ecosystem (CDSE) for Sentinel-1, 2, 3, and 5P:

# 1. Download full raw .SAFE.zip archive directly from CDSE:
omniearth download --category optical --id "<CDSE_UUID>" --provider cdse --format safe --outdir ./safe_products

# 2. Selective Band Extraction: Download only RGB 10m bands (B02, B03, B04) without downloading full 1.1 GB ZIP:
omniearth download --category optical --id "<CDSE_UUID>" --provider cdse --bands rgb --outdir ./bands

# 3. Selective Band Extraction with other presets (ndvi, 10m, 20m, swir, all):
omniearth download --category optical --id "<CDSE_UUID>" --provider cdse --bands 10m --outdir ./bands

# 4. Cryptographic Checksum Verification against space agency manifests:
omniearth download --category optical --id "<CDSE_UUID>" --provider cdse --verify-checksum

# 5. On-the-Fly Multiband GeoTIFF Compositing (rgb, cir, or ndvi):
omniearth download --category optical --id "<CDSE_UUID>" --provider cdse --bands rgb --composite rgb --outdir ./composites

Step 8: Single-Asset and Multi-Scene Batch Download

Download specific assets or multiple scene IDs in one dispatch:

# Download a specific asset from a scene:
omniearth download --category elevation \
  --bbox 78.50 20.65 78.60 20.72 \
  --dataset copernicus \
  --outdir ./downloads

# Download multiple scene IDs in parallel via comma-separated list:
omniearth download --category hyperspectral \
  --id "ENMAP01-____L2A-DT0000191613_20260428T062203Z_019_V010506_20260501T163400Z,EMITL2ARFL_001_20260501T120000" \
  --outdir ./downloads

# Download all matching scenes in an AOI:
omniearth download --category optical \
  --bbox 78.50 20.65 78.60 20.72 \
  --all-scenes \
  --limit 5 \
  --outdir ./downloads

Step 9: High-Speed Multi-Threaded All-Asset Download

Download all assets associated with a scene concurrently using worker threads:

omniearth download --category optical \
  --id S2A_32TPT_20260315_0_L2A \
  --all \
  --threads 8 \
  --outdir ./downloads

Step 10: Network Interruption Resumption

If a connection drops during a large download, re-run the same command. OmniEarth detects the <file>.part staging file, queries byte ranges via HTTP 206 Partial Content, and automatically resumes without restarting from byte 0.

Step 11: On-the-Fly Biophysical & Spectral Indices (9 Sensors-Agnostic Indices)

Compute standard remote sensing vegetation, water, soil, and burn ratio indices directly from CLI:

  • Supported: ndvi, ndwi, ndre, evi, nbr, savi, msavi, bsi, mndwi.
# Compute NDVI from scalar band reflectances
omniearth compute --index ndvi --nir 0.82 --red 0.18

# Compute SAVI with soil adjustment factor (L=0.5)
omniearth compute --index savi --nir 0.80 --red 0.20 --l-factor 0.5

# Compute EVI from band values
omniearth compute --index evi --nir 0.75 --red 0.15 --blue 0.08

# Compute from JSON array and save output
omniearth compute --index ndvi --nir "[0.8, 0.7, 0.85]" --red "[0.2, 0.15, 0.22]" --outpath ./ndvi_stats.json

Step 12: Historical Time-Series Extraction

Extract chronological time-series profiles across satellite passes or hourly weather observations:

# Hourly meteorological time-series
omniearth timeseries --category weather --bbox 78.50 20.65 78.60 20.72 --limit 24

# Chronological satellite observation pass timeline
omniearth timeseries --category optical --bbox 78.50 20.65 78.60 20.72 --start 2026-01-01 --end 2026-03-31

Sequential Python SDK Guide

The Python SDK exposes a clean, synchronous interface with full type hints, thread pools, and zero-config shortcuts.

Step 1: Import and Initialize Client

import omniearth as oe

# Default initialization (auto-detects .env and environment variables)
client = oe.OmniEarth()

# Optional: specify custom .env file path
# client = oe.OmniEarth(env_path="/path/to/custom.env")

Step 2: Define Spatial Area of Interest (AOI) & Ray-Casting Containment

# Bounding box AOI: [min_lon, min_lat, max_lon, max_lat]
bbox = [78.50, 20.65, 78.60, 20.72]

# Point AOI: (lon, lat, radius_km)
point = (78.55, 20.68, 5.0)

# GeoJSON AOI: from file or GeoJSON dict
aoi = oe.AOI.from_geojson("./field_boundary.geojson")

# Pure Python ray-casting point containment (checks boundary & exclusion holes):
is_inside = aoi.contains(78.55, 20.68)
print(f"Coordinate is inside field polygon: {is_inside}")

Step 3: Search Multi-Modal Catalog

# 1. Optical (Level-2A Surface Reflectance or Level-1C Top-of-Atmosphere)
optical_scenes = client.search(
    category="optical",
    bbox=bbox,
    level="toa",           # "sr" (default) or "toa" (preserves B10 Cirrus)
    start_date="2026-01-01",
    end_date="2026-03-31",
    max_cloud_cover=20,
    limit=3
)

# 2. Elevation DEM (Copernicus DEM GLO-30, SRTM, or ALOS)
elevation_tiles = client.search(
    category="elevation",
    bbox=bbox,
    dataset="copernicus"
)

# 3. Land Cover (ESA WorldCover 10m)
landcover_tiles = client.search(
    category="landcover",
    bbox=bbox,
    year=2021
)

# 4. Hyperspectral (DLR EnMAP 224 spectral bands)
hsi_scenes = client.search(
    category="hyperspectral",
    bbox=bbox,
    limit=2
)

# 5. SAR (Sentinel-1 GRD Radar passes)
sar_scenes = client.search(
    category="sar",
    point=point,
    limit=2
)

Step 4: Inspect Search Results and STAC Assets

for scene in optical_scenes:
    print(f"ID: {scene.id}")
    print(f"Acquired: {scene.datetime}")
    print(f"Cloud Cover: {scene.cloud_cover}%")
    print("Available Assets:")
    for key, asset in scene.assets.items():
        print(f"  - {key}: {asset.href} ({asset.media_type})")

Step 5: Download Single Asset (Resumable and Parallel Multipart)

# Downloads the visual RGB Cloud-Optimized GeoTIFF with automatic resumption
if optical_scenes:
    scene = optical_scenes[0]
    file_path = client.download(
        result=scene,
        asset_key="visual",
        outdir="./downloads",
        resume=True,       # Auto-resume partial .part downloads
        multipart=True,    # Parallel chunked ranges for files >= 10MB
        max_workers=4      # Parallel chunk threads
    )
    print(f"Downloaded to: {file_path}")

Step 6: Concurrent Multi-Asset Download (download_all)

# Concurrently download all assets (B02, B03, B04, B08, visual) for a scene:
downloaded_map = client.download_all(
    result=scene,
    outdir="./downloads",
    max_workers=4
)
for asset_key, path in downloaded_map.items():
    print(f"Asset '{asset_key}' saved to: {path}")

Step 7: Bulk Downloading Across Multiple Scenes (download_many)

# Concurrently download assets across an entire list of search results:
all_paths = client.download_many(
    results=optical_scenes,
    asset_key="visual",
    outdir="./downloads",
    max_workers=4
)
print(f"Successfully downloaded {len(all_paths)} scenes in parallel.")

Step 8: Fluent SearchResults Chaining, GIS Export & Search-and-Download

OmniEarth v1.4.0 returns a list-compatible SearchResults collection supporting direct method chaining and GIS footprint exports:

# 1. Search and immediately download all scenes in parallel:
paths = client.search_and_download(
    category="optical",
    bbox=bbox,
    max_cloud_cover=15,
    outdir="./downloads"
)

# 2. Or chain fluent methods directly on search results:
results = client.search(category="optical", bbox=bbox, limit=5)

# Download the latest/top scene directly:
latest_path = results.first().download(asset_key="visual", outdir="./downloads")

# Concurrently download all scenes in the results list:
all_paths = results.download_all(outdir="./downloads")

# Concurrently download selected scenes by index:
selected_paths = results.download_indices([0, 2], outdir="./downloads")

# Export footprints to GIS vector formats (.geojson / .csv):
results.export_geojson("./footprints.geojson")
results.export_csv("./footprints.csv")

# In-memory filtering:
cloud_free = results.filter(max_cloud_cover=5.0)

Step 9: Copernicus CDSE Adapter & Selective Band Extraction

Connect directly to the Copernicus Data Space Ecosystem for official Sentinel products:

# 1. Download full raw .SAFE archive from CDSE with space-agency checksum verification:
safe_path = client.download(
    id="<CDSE_UUID>",
    provider="cdse",
    format="safe",
    verify_checksum=True,
    outdir="./safe_downloads"
)

# 2. Selective Band Extraction: Download only RGB 10m bands (B02, B03, B04) via OData /Nodes tree:
rgb_bands = client.download(
    id="<CDSE_UUID>",
    provider="cdse",
    bands="rgb",          # Or list: ["B02", "B03", "B04"]
    outdir="./selective_bands"
)

# 3. On-the-Fly GeoTIFF Compositing: Download bands and synthesize 3-band RGB GeoTIFF:
rgb_composite = client.download(
    id="<CDSE_UUID>",
    provider="cdse",
    bands="rgb",
    composite="rgb",      # Automatically creates <scene_id>_composite_rgb.tif
    outdir="./composites"
)

Step 10: Zero-Config Convenience Shortcuts

# 1. Optical Scenes (Instant SR or TOA)
opt_sr = client.get_optical(bbox=bbox, level="sr")
opt_toa = client.get_optical(bbox=bbox, level="toa")

# 2. SAR Radar Scene (Sentinel-1 GRD)
sar = client.get_sar(bbox=bbox)

# 3. Digital Elevation Model (Copernicus DEM 30m)
dem = client.get_elevation(bbox=bbox, dataset="copernicus")

# 4. ESA WorldCover 10m LULC map
lc = client.get_landcover(bbox=bbox, year=2021)

# 5. Instant Weather & Soil Moisture Profile
weather = client.get_weather(bbox=bbox)
print(f"Elevation: {weather.properties['elevation']}m")
print(f"Hourly Temp: {weather.properties['_raw_data']['hourly']['temperature_2m'][:5]}")

# 6. ISRIC SoilGrids 3D Soil Chemistry & Texture Profile
soil = client.get_soil(bbox=bbox, depth="0-5cm")
print("Topsoil Summary:", soil.properties["summary_topsoil"])

Step 11: On-the-Fly Biophysical & Spectral Indices (9 Indices)

# Direct high-level function calls:
savi_val = oe.calculate_savi(nir=0.82, red=0.18, l_factor=0.5)
msavi_val = oe.calculate_msavi(nir=0.82, red=0.18)
ndwi_val = oe.calculate_ndwi(green=0.45, nir=0.12)
nbr_val = oe.calculate_nbr(nir=0.75, swir=0.25)

# Or via client.compute_index:
savi = client.compute_index("savi", nir=0.82, red=0.18, l_factor=0.5)
print("SAVI Mean:", savi["mean"])

Step 12: Time-Series Extraction

# Historical hourly meteorological records
series = client.get_time_series(
    category="weather",
    bbox=bbox,
    start_date="2026-10-01",
    end_date="2026-10-10"
)
for record in series[:5]:
    print(record["datetime"], record.get("temperature_2m"))

Sequential Node.js / TypeScript SDK Guide

The Node.js SDK provides a native ESM / TypeScript interface built on fetch, ReadableStream, and node:fs.

Step 1: Import and Instantiate

import { OmniEarth, Category } from "omniearth";

const client = new OmniEarth();

Step 2: Search with Full Type Safety

const results = await client.search({
  category: Category.OPTICAL,
  bbox: [78.50, 20.65, 78.60, 20.72],
  startDate: "2026-01-01",
  endDate: "2026-03-31",
  maxCloudCover: 15,
  limit: 5
});

for (const scene of results) {
  console.log(`Scene: ${scene.id} | Date: ${scene.datetime}`);
  console.log(`Assets: ${Object.keys(scene.assets).join(", ")}`);
}

Step 3: Resumable and Parallel Multipart Download

if (results.length > 0) {
  const filePath = await client.download(results[0], "visual", "./downloads", {
    resume: true,
    multipart: true,
    concurrency: 4
  });
  console.log(`Downloaded: ${filePath}`);
}

Step 4: Concurrent Multi-Asset Download (downloadAll)

// Download all assets for a given scene in concurrent batches:
const assetMap = await client.downloadAll(results[0], undefined, "./downloads", {
  concurrency: 4
});
console.log("Downloaded assets:", assetMap);

Step 5: Bulk Downloads Across Scenes (downloadMany)

const allPaths = await client.downloadMany(results, "visual", "./downloads", {
  concurrency: 4
});
console.log(`Batch downloaded ${allPaths.length} visual rasters.`);

Step 6: Fluent SearchResults Chaining, GIS Export & SearchAndDownload

// 1. Search and immediately download top visual scenes:
const paths = await client.searchAndDownload({
  category: Category.OPTICAL,
  bbox: [78.50, 20.65, 78.60, 20.72],
  outdir: "./downloads"
});

// 2. Or chain fluent methods on SearchResults:
const results = await client.search({
  category: Category.OPTICAL,
  bbox: [78.50, 20.65, 78.60, 20.72],
  limit: 5
});

// Export footprints directly to GeoJSON or CSV:
await results.exportGeoJSON("./footprints.geojson");
await results.exportCSV("./footprints.csv");

// Download first scene or all scenes:
const firstScene = results.first();
if (firstScene) {
  await firstScene.download("visual", "./downloads");
}

Step 7: Copernicus CDSE Adapter & Selective Band Extraction

// 1. Download raw SAFE product with space agency checksum verification:
const safeFile = await client.download({
  id: "<CDSE_UUID>",
  provider: "cdse",
  format: "safe",
  verifyChecksum: true,
  outdir: "./safe_downloads"
});

// 2. Selective Band Extraction: Download only RGB JP2 bands without downloading full ZIP:
const rgbBands = await client.download({
  id: "<CDSE_UUID>",
  provider: "cdse",
  bands: "rgb",
  outdir: "./bands"
});

// 3. Automated On-the-Fly Multiband GeoTIFF Composite:
const compositeFile = await client.download({
  id: "<CDSE_UUID>",
  provider: "cdse",
  bands: "rgb",
  composite: "rgb",
  outdir: "./composites"
});

Step 8: Zero-Config Convenience Shortcuts & TOA/SR Levels

// Optical Scenes (Instant SR or TOA)
const optSR = await client.getOptical({ bbox: [78.50, 20.65, 78.60, 20.72], level: "sr" });
const optTOA = await client.getOptical({ bbox: [78.50, 20.65, 78.60, 20.72], level: "toa" });

// SAR Radar Scene (Sentinel-1 GRD)
const sar = await client.getSar({ bbox: [78.50, 20.65, 78.60, 20.72] });

// Elevation DEM
const dem = await client.getElevation([78.50, 20.65, 78.60, 20.72], "copernicus");

// Land Cover 10m
const lc = await client.getLandcover([78.50, 20.65, 78.60, 20.72], 2021);

// Weather Feed
const wx = await client.getWeather([78.50, 20.65, 78.60, 20.72]);
console.log("Weather elevation:", wx?.properties.elevation);

// SoilGrids 3D Profile
const soil = await client.getSoil([78.50, 20.65, 78.60, 20.72], "0-5cm");
console.log("Topsoil profile:", soil?.properties.summary_topsoil);

// Pure TypeScript Ray-Casting Polygon Containment
const aoi = client.resolveAOI({ geojson: "./field_boundary.geojson" });
const inside = aoi.contains(78.55, 20.68);
console.log("Point within boundary:", inside);

Step 9: Index Computation & Time-Series

// Radiometric Index calculation (9 indices supported, including SAVI with lFactor)
const savi = client.computeIndex("savi", { nir: 0.82, red: 0.18, lFactor: 0.5 });
console.log("Computed SAVI:", savi);

// Time-series extraction (chronological ascending)
const timeSeries = await client.getTimeSeries({
  category: Category.WEATHER,
  bbox: [78.50, 20.65, 78.60, 20.72]
});
console.log("Time-steps extracted:", timeSeries.length);

Direct Underlying REST and STAC API Calls (cURL)

OmniEarth orchestrates open standard STAC and REST APIs under the hood. You can query these exact backends directly using raw curl or any HTTP client:

1. Optical Multispectral (AWS Earth Search STAC)

Queries Sentinel-2 L2A Cloud-Optimized GeoTIFFs (zero-config, free public egress):

curl -s -X POST "https://earth-search.aws.element84.com/v1/search" \
  -H "Content-Type: application/json" \
  -d '{
    "collections": ["sentinel-2-l2a"],
    "bbox": [78.50, 20.65, 78.60, 20.72],
    "datetime": "2026-01-01T00:00:00Z/2026-03-31T23:59:59Z",
    "query": { "eo:cloud_cover": { "lte": 20 } },
    "limit": 3
  }' | jq '.features[] | {id: .id, visual: .assets.visual.href}'

2. Synthetic Aperture Radar (Sentinel-1 GRD STAC)

Queries Sentinel-1 dual-polarization (VV/VH) radar backscatter:

curl -s -X POST "https://earth-search.aws.element84.com/v1/search" \
  -H "Content-Type: application/json" \
  -d '{
    "collections": ["sentinel-1-grd"],
    "bbox": [78.50, 20.65, 78.60, 20.72],
    "limit": 2
  }' | jq '.features[] | {id: .id, vv: .assets.vv.href, vh: .assets.vh.href}'

3. Digital Elevation Model (Copernicus DEM 30m S3)

Direct zero-config COG download from AWS Open Data:

curl -s -I "https://copernicus-dem-30m.s3.amazonaws.com/Copernicus_DSM_COG_10_N20_00_E078_00_DEM/Copernicus_DSM_COG_10_N20_00_E078_00_DEM.tif"

4. Land Cover (ESA WorldCover 10m S3)

Direct zero-config 10m classification map COG download from AWS Open Data:

curl -s -I "https://esa-worldcover.s3.eu-central-1.amazonaws.com/v200/2021/map/ESA_WorldCover_10m_2021_v200_N18E075_Map.tif"

5. Weather & Climate Profile (Open-Meteo REST API)

Fetches hourly temperature, relative humidity, solar radiation, and soil moisture:

curl -s "https://api.open-meteo.com/v1/forecast?latitude=20.68&longitude=78.55&hourly=temperature_2m,relative_humidity_2m,soil_moisture_0_to_1cm,surface_solar_radiation" \
  | jq '{elevation: .elevation, current_temp: .hourly.temperature_2m[0]}'

6. Soil Chemistry & 3D Texture (ISRIC SoilGrids REST API)

Fetches clay, sand, silt, soil organic carbon (SOC), pH, and bulk density across standard depths:

curl -s "https://rest.isric.org/soilgrids/v2.0/properties/query?lon=78.55&lat=20.68&property=clay&property=sand&property=soc&property=phh2o&depth=0-5cm" \
  | jq '.properties.layers[] | {name: .name, mean_value: .depths[0].values.mean}'

7. Hyperspectral Data Cubes (DLR EOC STAC API)

Queries DLR EnMAP 224-band hyperspectral cubes:

curl -s "https://geoservice.dlr.de/eoc/ogc/stac/v1/search?collections=ENMAP_L2A&bbox=78.50,20.65,78.60,20.72&limit=2" \
  | jq '.features[] | {id: .id, datetime: .properties.datetime, assets: .assets | keys}'

High-Performance Engine Features

1. Parallel Chunked Multipart Downloading

For files >= 10MB, OmniEarth probes the server with HEAD, determines range support (Accept-Ranges: bytes), pre-allocates the local file, and distributes byte intervals across worker threads. Chunk downloads are written via thread-safe seek-write operations, maximizing network saturation.

2. Resumable Downloads via .part Staging

Downloads stream to <destination>.part. If interrupted, OmniEarth queries the file size of the existing partial file and issues a Range: bytes=<existing_size>- request. Upon receiving HTTP 206 Partial Content, it appends remaining bytes. If the server returns HTTP 416 Range Not Satisfiable (e.g. file changed upstream), OmniEarth automatically restarts cleanly from byte 0.

3. Multi-Platform Homogeneity

  • Windows File Locking Protection: Implements a shared handle with synchronized locking, preventing Windows PermissionError during concurrent multi-threaded writes.
  • Line Ending Homogeneity: Enforces LF line endings via .gitattributes to prevent checkout corruptions on Windows systems.

Authentication and Environment Configuration

OmniEarth automatically discovers credentials from local .env files, parent directories, or system environment variables:

cp .env.example .env
# Copernicus Data Space Ecosystem (CDSE)
# (Optional: for raw .SAFE.zip downloads and selective band extraction on Sentinel-1, 2, 3, 5P)
# Register free: https://dataspace.copernicus.eu/
CDSE_USERNAME=your_cdse_username
CDSE_PASSWORD=your_cdse_password

# DLR Geoservice (Required for downloading raw EnMAP 224-band hyperspectral cubes)
# Register free: https://eoweb.dlr.de/egp/
DLR_USERNAME=your_dlr_username
DLR_PASSWORD=your_dlr_password

# NASA Earthdata (Optional: for direct NASA EMIT cube downloads)
# Register free: https://urs.earthdata.nasa.gov/
EARTHDATA_USERNAME=your_earthdata_username
EARTHDATA_PASSWORD=your_earthdata_password

# ASI PRISMA (Optional: for PRISMA hyperspectral missions)
# Register free: https://prisma.asi.it/
PRISMA_USERNAME=your_prisma_username
PRISMA_PASSWORD=your_prisma_password

(Optical Sentinel-2 COGs, Sentinel-1 SAR COGs, Copernicus DEM, ESA WorldCover, Open-Meteo Weather, and ISRIC SoilGrids require zero credentials!)


Security and Supply Chain Provenance

OmniEarth is engineered with defense-in-depth principles, enterprise security standards, zero telemetry, and verifiable software supply-chain integrity:

  • Cryptographic Build Provenance (PEP 740 & Sigstore): All official package releases published to PyPI and npm are built in isolated CI environments via GitHub Actions with OpenID Connect (OIDC) authentication. Build attestations are cryptographically signed using Sigstore and logged to public transparency records (Rekor), guaranteeing that every binary wheel, source tarball, and npm package directly maps to this exact repository and git commit.
  • Automated SAST & CodeQL: Continuous Static Application Security Testing via GitHub Advanced Security CodeQL runs on every push, pull request, and weekly schedule across Python and TypeScript.
  • Automated Dependency Auditing: Monitored continuously via Dependabot, pip-audit, and npm audit with 0 known CVEs across all direct and transitive dependencies.
  • Zero Telemetry & Local Execution: OmniEarth contains no analytics, background tracking pixels, call-homes, or post-install scripts. All geospatial data requests are dispatched directly from your local machine to sovereign Earth Observation API endpoints over TLS.
  • Security Policy & Vulnerability Disclosure: Detailed guidelines, threat modeling, SLA timelines, and private vulnerability reporting channels are documented in SECURITY.md.

License and Mandatory Attribution

OmniEarth is distributed under the OmniEarth Open Source License with Mandatory Attribution & Academic Citation. See LICENSE for the full legal text.

  1. Academic Citation: Any research, preprint, paper, or published benchmark utilizing OmniEarth must cite the software using Zenodo DOI or the citation below.
  2. Corporate & Commercial Attribution: Any commercial SaaS platform, internal corporate dashboard, website, or data pipeline utilizing OmniEarth must display prominent attribution:
    "Powered by OmniEarth (https://github.com/lokeshsk/omniearth)" in user interfaces and technical documentation.
  3. Upstream Data Provider Liability and Usage Policies: OmniEarth is an orchestration and aggregation tool. It does not own, host, or re-license upstream satellite imagery, trace gas models, altimetry data, or meteorological feeds. All users and organizations are strictly and solely responsible for reviewing and complying with each provider's individual license:

Disclaimer of Liability: OmniEarth is a decentralized data orchestration engine. The authors and maintainers of OmniEarth assume no liability and are NOT responsible for any misuse, unintended interpretation, commercial compliance failure, or breach of individual upstream data provider licenses committed by users of this library. Users must independently ensure their data access patterns comply with each sovereign provider's operational terms.


Citation

If you use OmniEarth in your research or project, please cite:

@software{omniearth2026,
  author       = {Lokesh Kumar},
  title        = {OmniEarth: Universal Multi-Modal Open Earth Observation, Hyperspectral, and Weather Data Engine},
  month        = oct,
  year         = 2026,
  publisher    = {Zenodo},
  doi          = {10.5281/zenodo.23689449},
  url          = {https://github.com/lokeshsk/omniearth}
}

Author and Maintainer

Lokesh Kumar

Metadata

Release files for omniearth 1.4.0

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

Source distribution (sdist)

Source distribution for omniearth 1.4.0
File Size Uploaded Provenance Actions
omniearth-1.4.0.tar.gz 113.8 kB With provenance Details for omniearth-1.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for omniearth 1.4.0
File Interpreter ABI Platform Actions
omniearth-1.4.0-py3-none-any.whl Python 3 none any Details for omniearth-1.4.0-py3-none-any.whl

Total release size: 194.3 kB

Release files / omniearth-1.4.0.tar.gz

Download URL omniearth-1.4.0.tar.gz
Size 113.8 kB
Tags Source
SHA-256 checksum
How to use checksums
286337e9b20dc40a8707f8ab42a3fb4479fa4d1bf9236e7c533a4a9e68e5b7a5
BLAKE2b-256 checksum
How to use checksums
ba9419551e47aa81992e56e370c3bd1b5f0b9526f0bcd3cd3a45dbb0a8183f0e
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 19, 2026.

Transparency log

Release files / omniearth-1.4.0-py3-none-any.whl

Download URL omniearth-1.4.0-py3-none-any.whl
Size 80.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9a93d666e0266e514ba28d5983cedab86a0e1bb5487e96443de40aa5b9dfdc8
BLAKE2b-256 checksum
How to use checksums
9cbc8d82f51af544869776cd3dfa267c02d5464a45b15fa5aa4fbdd8cfa5457c
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 19, 2026.

Transparency log

Security for omniearth 1.4.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.

Select from 2 files

Attestation for omniearth-1.4.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 19, 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