Skip to main content

Premium desktop workstation for Earth observation segmentation.

Project description

SpectraForge

A premium desktop workstation for Earth observation processing and visualization across sensors. Unsupervised segmentation and uncertainty are optional modules inside a much broader EO workflow. Built to run locally on Windows/macOS/Linux.

Why it exists

  • Multi-sensor preprocessing (Sentinel‑1/2/3, Landsat, ERA5, ENMAP, hyperspectral, PlanetScope, UAV)
  • Band management and index generation for fast EO analysis
  • Interactive ROI labeling for ground‑truthing and validation
  • Optional unsupervised segmentation with probability maps and uncertainty
  • Designed for patent-ready workflows (keep private until filing)

Features (v1)

  • Clean, modern studio UI (not a QGIS clone)
  • GeoTIFF, NetCDF, ENVI (hyperspectral), Sentinel‑2 folder support
  • Sensor presets (Sentinel‑1/2/3, Landsat, PlanetScope, UAV, ERA5, ENMAP, hyperspectral)
  • Auto feature selection across multi-band data
  • Unsupervised segmentation with probability maps and entropy-based uncertainty (optional)
  • Index Builder with curated indices per sensor + custom JSON/YAML recipes
  • ROI selection + cluster labeling workflow
  • Run history saved to runs/
  • Copernicus + Planet API panels (offline stub in this build)

Install

From PyPI:

python -m pip install spectraforce

From source:

python -m pip install -r requirements.txt

Run

spectraforge

Alternative:

python -m spectraforge

Data formats

  • GeoTIFF: .tif, .tiff
  • NetCDF: .nc (ERA5 and other gridded products)
  • ENVI: .hdr + .img (hyperspectral)
  • Sentinel‑2: SAFE folder with .jp2 band files
  • NumPy: .npy arrays (2D or 3D)
  • Tabular: .csv, .xlsx

Indices

SpectraForge ships with curated indices (NDVI, NDWI, etc.) per sensor. You can add your own:

  • JSON/YAML recipe files (see samples/ for examples)
  • Index layers appear in the layer stack like any other band Example custom indices file: samples/indices_example.json

NPY export

Export data to .npy directly from the UI:

  • All bands in one file
  • Selected bands in one file
  • Individual band files
  • Optional index layer exports

Offline samples

Synthetic samples live in samples/ so the repo runs without downloads. Real cropped samples live in samples/real/. Manipur example outputs live in samples/manipur/.

API keys (stored locally)

API keys are stored in ~/.spectraforge/config.json on your machine.

Why I Use SpectraForge

I use SpectraForge when I want a fast, repeatable path from raw EO images to clean indices, analysis layers, and exportable outputs. I need it because I do not want to rebuild custom scripts for every dataset. It saves me time because I can run the same workflow across sensors and get consistent results. I use it easily by loading a folder, letting the app auto detect bands, choosing indices, and optionally running unsupervised segmentation with ROI labeling when I need it.

Step by Step Outputs for Manipur Sentinel‑2

I ran the full pipeline on real Sentinel‑2 data from Manipur and saved the outputs below.

Step 1 — Load bands and true color

Manipur True Color

Step 2 — NDVI and NDWI indices

Manipur NDVI
NDVI
Manipur NDWI
NDWI

Step 3 — Unsupervised segmentation with 8 clusters

Manipur Segmentation Labels

Step 4 — ROI selection and labeling

Manipur ROI Overlay
ROI overlay
Manipur ROI Labels
ROI labels

Step 5 — Uncertainty and confidence I use the same color rule for both maps: blue means low, red means high.
For uncertainty, blue means low uncertainty and red means high uncertainty.
For confidence, blue means low confidence and red means high confidence.

Manipur Segmentation Uncertainty
Uncertainty
Manipur Segmentation Confidence
Confidence

Saved outputs full resolution

  • samples/manipur_full/manipur_full_stack.npy
  • samples/manipur_full/manipur_full_stack_preview.tif
  • samples/manipur_full/manipur_full_<index>.npy
  • samples/manipur_full/manipur_full_<index>.tif

Color Legend for segmentation labels

Clusters are unsupervised. Colors map to cluster IDs in order:

  • 0 → maroon #800000
  • 1 → darkblue #00008B
  • 2 → darkgreen #006400
  • 3 → cyan #00FFFF
  • 4 → darkcyan #008B8B
  • 5 → magenta #FF00FF
  • 6 → indigo #4B0082
  • 7 → grey #808080
  • 8 → peru #CD853F
  • 9 → slateblue #6A5ACD
  • 10 → mediumspringgreen #00FA9A
  • 11 → orangered #FF4500

If you run fewer than 12 clusters, only the first N colors are used.

Color Notes for indices

Index quicklooks use a viridis scale: brighter colors indicate higher values.

Uncertainty calibration made easy

  • Run segmentation → get probability maps (predict_proba)
  • Use entropy + confidence to visualize uncertain regions
  • Assign labels with ROI selections (no labeled data required)

Segmentation engine

If your environment has scientific stack conflicts, switch the engine to Safe mode in the UI.
Fast mode uses scikit‑learn when available.

SpectraForge vs QGIS (Pros & Cons)

Aspect SpectraForge QGIS
Focus EO segmentation + indices + uncertainty Full GIS for all domains
Setup One command local run Heavier install + plugins
Unsupervised segmentation + uncertainty Built‑in, turnkey Requires plugins/workflows
Indices Curated EO indices + custom recipes Many tools, but more manual setup
UI style Modern studio layout (not QGIS style) Traditional GIS layout
Extensibility Focused feature set Huge plugin ecosystem
Geoprocessing breadth Focused EO analytics Broad GIS toolbox
Best for Fast EO segmentation + research demos Full GIS analysis & cartography

Pros of SpectraForge: fast EO‑first workflow, built‑in uncertainty, simple NPY export, easy to demo.
Cons vs QGIS: fewer GIS tools, smaller plugin ecosystem, less advanced cartography.

Contributions

See CONTRIBUTING.md and CODE_OF_CONDUCT.md.

Credits

Arnab Bhowmik, Chandrabali Karmakar

Privacy note

Runs locally. No data leaves your machine.

License

Proprietary (permission required for any use)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spectraforce-0.1.1.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spectraforce-0.1.1-py3-none-any.whl (32.1 kB view details)

Uploaded Python 3

File details

Details for the file spectraforce-0.1.1.tar.gz.

File metadata

  • Download URL: spectraforce-0.1.1.tar.gz
  • Upload date:
  • Size: 27.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for spectraforce-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1af3141b356d418bb74d2f9e679a31d625d9eeb47c03fbc7cc3fc1fb2e847878
MD5 199629f646a6c0f7d72c258719d65d96
BLAKE2b-256 435bd79e7539415a964e844be9eadf7584d617802206273426300f46ffa99818

See more details on using hashes here.

File details

Details for the file spectraforce-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: spectraforce-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 32.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for spectraforce-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 33b4211b84ae39e6dbbfd754fc1105814b02ba632a59edcbc1467ade6e25abfd
MD5 f496ed97ab65c7e6514b1fb313fb8853
BLAKE2b-256 325147f114b8ee4d5146bb38d6282e0360ed3cf131d744c024948cbda85277c5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page