diff --git a/CITATION.cff b/CITATION.cff new file mode 100644 index 0000000000000000000000000000000000000000..258e50cc0fd26781e164441eaf3160b6b9cac4ee --- /dev/null +++ b/CITATION.cff @@ -0,0 +1,26 @@ +cff-version: 1.2.0 +message: "If you use the Aerostratospheric Defense GIR open-tier data or software, please cite it as below." +type: software +title: "Aerostratospheric Defense Geospatial Information Repository (GIR)" +version: "1.4.0" +date-released: "2026-08-11" +url: "https://github.com/Midwest-Stratospheric/aerostratospheric-defense-gir" +repository-code: "https://github.com/Midwest-Stratospheric/aerostratospheric-defense-gir" +license: MIT +authors: + - name: "Aerostratospheric / Midwest Stratospheric Data Systems" + city: "Effingham" + region: "IL" + country: "US" + website: "https://midwestsds.com/" +keywords: + - geospatial + - open data + - situational awareness + - remote sensing index + - defense open tier +abstract: > + The Aerostratospheric Defense GIR is an open-tier Geospatial Information + Repository that automatically collects public hazard, Earth-observation index, + and defense-adjacent open datasets, validates them, tracks provenance, and + versions them in git for reproducible awareness support at the unclassified boundary. diff --git a/README.md b/README.md index 47d9a4fcc8d982f9ccc19328b128cddfe501d86e..70d550f87f7d76913249fdea362868e7c2c1ebed 100644 --- a/README.md +++ b/README.md @@ -1,165 +1,187 @@ ---- -pretty_name: Aerostratospheric Defense GIR -license: mit -task_categories: - - tabular-classification - - text-classification -language: - - en -tags: - - geospatial - - hazards - - open-data - - eonet - - usgs - - nws - - satellite-index - - public-alerts - - aerostratospheric -size_categories: - - n<1K ---- +# Aerostratospheric Defense GIR -

- Aerostratospheric -

+**A plain-language guide to our open Geospatial Information Repository** -# Aerostratospheric Defense GIR +[![Daily automation](https://img.shields.io/badge/updates-twice%20daily%20UTC-00d4ff)](.github/workflows/daily-gir.yml) +[![License: MIT](https://img.shields.io/badge/License-MIT-slategray.svg)](LICENSE) +[![Open data only](https://img.shields.io/badge/data-public%20open%20tier-34d399)](docs/DATA_POLICY.md) +[![SAM.gov](https://img.shields.io/badge/SAM.gov-registered-0f2744)](https://midwestsds.com/) +[![Charts](https://img.shields.io/badge/charts-SVG%20in%20git-00d4ff)](docs/charts/) +[![Reports](https://img.shields.io/badge/reports-daily%20exec-0ea5e9)](reports/latest.md) +[![Contributing](https://img.shields.io/badge/contributing-welcome-8b5cf6)](CONTRIBUTING.md) + +> **In one sentence:** We automatically collect free, public map and hazard information, organize it, and save dated copies here — without secret military data. -**Open-tier Geospatial Information Repository — published by [Aerostratospheric](https://www.midwestsds.com/)** +**Live web page:** [Defense GIR on midwestsds.com](https://midwestsds.com/aerostratospheric-defense-gir.html) · **Charts:** [docs/charts/](docs/charts/) · **Status JSON:** [data/status/](data/status/) · **Latest report:** [reports/latest.md](reports/latest.md) · **Data packages:** [docs/DATA_PACKAGES.md](docs/DATA_PACKAGES.md) -Daily Hugging Face mirror of -[Midwest-Stratospheric/aerostratospheric-defense-gir](https://github.com/Midwest-Stratospheric/aerostratospheric-defense-gir). +--- -| | | -|---|---| -| Publisher | [Aerostratospheric](https://www.midwestsds.com/) · Casey, Illinois | -| Live page | [Defense GIR](https://midwestsds.com/aerostratospheric-defense-gir.html) | -| GitHub | [aerostratospheric-defense-gir](https://github.com/Midwest-Stratospheric/aerostratospheric-defense-gir) | -| Sibling dataset | [aerostratospheric/uogw](https://huggingface.co/datasets/aerostratospheric/uogw) | -| Companion models | [gir-open-tier-suite](https://huggingface.co/aerostratospheric/gir-open-tier-suite) | -| License | MIT | -| Cadence | GitHub Actions · **19:30 UTC** daily (after the 18:00 ingest) | +## What is this, in plain English? -GIR is a public “briefing binder”: storms already warned, earthquakes already -measured, free satellite catalog cards, public cyber patch lists, and open -research-flight summaries. Partner or restricted sensor products stay **out** -of this tree on purpose. +Imagine you need a **shared notebook of public facts about the world**—storms that were already warned about, earthquakes that already happened, free satellite “library cards,” public cyber patch lists, and open research balloon flight summaries. You do **not** want secrets. You want something you can audit, re-run, and explain to a non-specialist. -> Open public feeds only. **Not classified. Not DEFCON / FPCON.** -> Not a substitute for NWS, USGS, CISA, or any official alert channel. +That notebook is this repository. + +**GIR** means **Geospatial Information Repository**: place-based information stored in an organized library. Software here downloads free public feeds on a schedule, checks whether the download worked, keeps a short history in git, draws simple charts, publishes a **US open-status** summary for the website banner, and writes a **daily executive summary**. Partner or restricted sensor products from Aerostratospheric platforms (when fielded) stay **out** of this public tree on purpose. + +Think of it as the **weather-and-world briefing binder** that sits beside more sensitive tools—not the classified mission folder, not a weapons system, and not a substitute for official emergency alerts on your phone. + +| Word | Everyday meaning | +|------|------------------| +| **Geospatial** | Facts tied to a place on Earth | +| **Information** | Measurements and events (quakes, alerts, satellite catalogs, public cyber lists, flight log summaries, …) | +| **Repository** | An organized digital filing cabinet with history | --- -## Dataset summary +## Daily data packages -| Path | What you get | -|------|----------------| -| `data/manifests/manifest_latest.json` | Per-source ok/total for the latest ingest | -| `data/events/` | NWS active alerts, USGS M≥2.5 day, EONET, DONKI | -| `data/anomalies/` | Dated UOGW anomaly snapshots plus `uogw_anomalies_latest.json` | -| `data/imagery_index/` | Sentinel-2 STAC index (library cards, not pixels) | -| `data/defense_open/` | CISA KEV, OpenSky / OurAirports samples, other public lists | -| `data/status/us_open_conditions_latest.json` | GREEN / YELLOW / ORANGE / RED open-tier banner | -| `data/flight_logs/` | Public research balloon / test summaries when published | -| `catalog/` | Source catalog | -| `reports/` | Daily executive summaries (`reports/latest.md`) | - -US open-status is a **published rule** over public counts (NWS volume, max USGS -magnitude, UOGW alert/watch flags, active public flights). It is explicitly -**not** military readiness. +Every successful automation run produces a coherent open-tier package: + +| Area | Location | +|------|----------| +| Manifest (ok/total per source) | `data/manifests/manifest_latest.json` | +| UOGW anomalies | `data/anomalies/` | +| Hazards (EONET, USGS, NWS, DONKI) | `data/events/` | +| Sentinel-2 STAC index | `data/imagery_index/` | +| Defense-open samples (CISA KEV, OpenSky, OurAirports, …) | `data/defense_open/` | +| US open-status banner | `data/status/` | +| Charts (SVG + Mermaid) | `docs/charts/`, `docs/GRAPHS.md` | +| Executive summary | `reports/daily/`, `reports/latest.md` | + +Full map: **[docs/DATA_PACKAGES.md](docs/DATA_PACKAGES.md)** · Feature catalog: **[docs/FEATURES.md](docs/FEATURES.md)** --- -## How to load +## How it is used (sample use cases) -```python -from huggingface_hub import hf_hub_download -import json +These examples are **open-tier** only. They describe realistic ways people and programs use this kind of public data—not targeting, not classified operations. -def load(name: str): - path = hf_hub_download( - repo_id="aerostratospheric/gir", - repo_type="dataset", - filename=name, - ) - return json.load(open(path)) +### 1. Morning open briefing for a small research team +A Midwest balloon or environmental team opens the [GIR web page](https://midwestsds.com/aerostratospheric-defense-gir.html), checks the **US open status** strip (GREEN/YELLOW/…), skims the [latest exec report](reports/latest.md), and notes whether any **public research flight** is marked active in the flight log. -manifest = load("data/manifests/manifest_latest.json") -status = load("data/status/us_open_conditions_latest.json") -print("overall", status.get("overall_level"), status.get("overall_message")) -``` +### 2. “What can an uncleared partner already see?” +Before a partner discussion, staff review the **Sentinel-2 index** and public hazard layers. That answers a simple question in lay terms: *which free satellite scenes and public alerts already exist for this region?* + +### 3. Classroom or STEM outreach +A teacher uses the earthquake magnitude chart and EONET categories to show how open science feeds work. Students learn that “defense-adjacent” public data can mean **weather, disasters, and transparency lists**—not secret bases. -NWS GeoJSON example: +### 4. Cyber hygiene desk check +An IT lead glances at the **CISA KEV** sample in `data/defense_open/`. It is a public “patch these known-exploited holes first” catalog. -```python -nws = load("data/events/nws_active_alerts_latest.geojson") -print("nws features", len(nws.get("features") or [])) +### 5. Flight log continuity for public launches +When Aerostratospheric publishes a **public** balloon event summary, it is appended to `data/flight_logs/`. + +### 6. Automation and reproducibility +```bash +python3 scripts/ingest_open_tier.py +python3 scripts/compute_us_open_status.py +python3 scripts/generate_gir_charts.py +python3 scripts/generate_daily_exec_summary.py +# or: +bash scripts/daily_gir_automation.sh ``` +### 7. Grant / SAM.gov narrative support +Open GIR materials illustrate a responsible open-data posture: public inputs, clear tiers, disclaimers, and no claim to replace NWS, USGS, or military command systems. + +**Non-use cases (on purpose):** sole life-safety alerting, classified basing lists, targeting folders, or kinetic system control. + --- -## Intended use +## Executive reports -- Morning open briefings for research / STEM / uncleared partners -- Audit of “what is already public” for a region -- Feature tables for the companion open-tier models -- Grant / SAM.gov narrative support for a responsible open-data posture +Open-tier **daily executive summaries** are generated automatically by the same GitHub Actions pipeline. -## Out of scope +| Resource | Link | +|----------|------| +| **Latest summary** | [reports/latest.md](reports/latest.md) | +| **Daily archive** | [reports/daily/](reports/daily/) | -- Classified basing, targeting, or kinetic control -- Sole life-safety alerting -- Treating the banner as DEFCON or FPCON -- Replacing NWS, USGS, NASA EONET, or CISA official products +Weekly roll-ups can be added to the same pipeline later if needed. --- -## Collection and update process +## Live visual charts + +```bash +python3 scripts/generate_gir_charts.py +``` -1. GIR ingest runs at **06:00** and **18:00 UTC**. -2. Pipeline: open-tier ingest → US open-status → charts → daily exec summary. -3. [huggingface-daily.yml](https://github.com/Midwest-Stratospheric/aerostratospheric-defense-gir/blob/main/.github/workflows/huggingface-daily.yml) copies JSON / CSV / Markdown here at **19:30 UTC**. -4. Model retrain follows at **20:00 UTC**. +See **[docs/charts/](docs/charts/)** for the full category gallery. --- -## Limitations and bias +## Access tiers -- Snapshot depth is “latest + a short dated archive,” not a multi-decade hazard climatology. -- NWS alert volume is a **count**, not a population-weighted risk index. -- Airport name heuristics marked “military” are **not** official basing lists. -- OpenSky / flight samples can be empty outside public research windows. +```mermaid +flowchart TB + O["Open — this public repo"] --> P["Partner — agreement"] --> R["Restricted — authorized only"] +``` --- -## Citation +## Related open ecosystem +| Repository | Role | +|------------|------| +| [Unified-Open-Global-Weather](https://github.com/Midwest-Stratospheric/Unified-Open-Global-Weather) | Multi-layer atmospheric commons + anomaly report | +| [msds-data](https://github.com/Midwest-Stratospheric/msds-data) | Casey ground weather + planned HAB flight packages | +| [International-Ground-Data-Repository](https://github.com/Midwest-Stratospheric/International-Ground-Data-Repository) | IGRA / international ground indexes | +| [x2griffon](https://github.com/Midwest-Stratospheric/x2griffon) | Payload platform documentation | + +--- + +## What’s inside (short tour) + +| Area | Plain meaning | +|------|----------------| +| **Satellite / EO** | Library-card indexes for free imagery (Sentinel, …) | +| **Military-marked (public)** | Keyword heuristics on public airport names — **not** official basing | +| **Alerts & hazards** | USGS, NWS, EONET, UOGW, DONKI | +| **Cyber & spending** | CISA KEV + USAspending samples | +| **Flight logs** | Public research balloon / test summaries | +| **US open status** | Banner levels from public feeds only — **not** DEFCON | +| **Executive reports** | Daily open-tier briefing summaries | + +--- + +## Automation + +```bash +bash scripts/daily_gir_automation.sh ``` -Aerostratospheric / Midwest Stratospheric Data Systems (2026). -Aerostratospheric Defense GIR. -https://www.midwestsds.com/ -https://midwestsds.com/aerostratospheric-defense-gir.html -https://github.com/Midwest-Stratospheric/aerostratospheric-defense-gir -https://huggingface.co/datasets/aerostratospheric/gir -``` + +Schedule: **06:00** and **18:00 UTC** (plus manual Actions dispatch). + +Pipeline: open-tier ingest → US open-status → charts → daily executive summary → git commit. + +Details: [docs/DAILY_AUTOMATION.md](docs/DAILY_AUTOMATION.md) --- -## Credits — Aerostratospheric +## Repository hygiene -Curated and published by **[Aerostratospheric](https://www.midwestsds.com/)**, -an Illinois nonprofit corporation. **Midwest Stratospheric Data Systems (MSDS)** -operates as a limited partnership under Aerostratospheric. +| Doc | Purpose | +|-----|---------| +| [CONTRIBUTING.md](CONTRIBUTING.md) | How to propose changes (open-tier only) | +| [SECURITY.md](SECURITY.md) | How to report vulnerabilities | +| [CITATION.cff](CITATION.cff) | Formal citation | +| [docs/DATA_POLICY.md](docs/DATA_POLICY.md) | What may / may not enter the tree | +| [docs/DATA_PACKAGES.md](docs/DATA_PACKAGES.md) | Package map for data consumers | +| [docs/FEATURES.md](docs/FEATURES.md) | Full feature catalog | -| Resource | Link | -|----------|------| -| Home | https://www.midwestsds.com/ | -| About | https://midwestsds.com/about.html | -| xDataHub | https://midwestsds.com/msds-data-hub.html | -| Defense GIR | https://midwestsds.com/aerostratospheric-defense-gir.html | -| Contact | https://midwestsds.com/contact/ | -| GitHub | https://github.com/Midwest-Stratospheric | -| Hugging Face | https://huggingface.co/aerostratospheric | - -Casey, Illinois (Clark County) · NASA GLOBE **GO-4VW9B** · Amateur radio **KE9CFY** · launchcontrol@midwestsds.com +--- + +## Links + +| Resource | URL | +|----------|-----| +| Defense GIR page | https://midwestsds.com/aerostratospheric-defense-gir.html | +| Defense Systems | https://midwestsds.com/aerostratospheric-defense-systems.html | +| Latest exec report | [reports/latest.md](reports/latest.md) | +| Daily report archive | [reports/daily/](reports/daily/) | +| Data packages guide | [docs/DATA_PACKAGES.md](docs/DATA_PACKAGES.md) | +| Contact | https://midwestsds.com/contact/index.php?a=add | + +Aerostratospheric is a **registered SAM.gov entity**. Passive sensing · intelligence support · communications — **no kinetic weapons**. Open-tier data is not an official warning service alone. diff --git a/config/aoi_regions.json b/config/aoi_regions.json new file mode 100644 index 0000000000000000000000000000000000000000..7399260e10718a52c5ca932c3f44bdb40d4f7a93 --- /dev/null +++ b/config/aoi_regions.json @@ -0,0 +1,10 @@ +{ + "version": 1, + "default_crs": "EPSG:4326", + "regions": [ + {"id": "conus", "name": "Contiguous United States", "bbox": [-124.85, 24.39, -66.88, 49.38], "priority": 1, "use": ["hazards", "imagery", "alerts"]}, + {"id": "midwest_il", "name": "Illinois / Midwest ops focus", "bbox": [-91.5, 36.9, -87.0, 42.5], "priority": 1, "use": ["hazards", "imagery", "ops"]}, + {"id": "global_sample", "name": "Global sample band", "bbox": [-180, -40, 180, 60], "priority": 2, "use": ["imagery", "reference"]}, + {"id": "north_atlantic", "name": "North Atlantic corridor", "bbox": [-80, 20, -10, 60], "priority": 2, "use": ["hazards", "maritime"]} + ] +} diff --git a/docs/CHARTS.md b/docs/CHARTS.md new file mode 100644 index 0000000000000000000000000000000000000000..8383d194e1712841006f9ab82e7c89b8fef02e40 --- /dev/null +++ b/docs/CHARTS.md @@ -0,0 +1,21 @@ +# GIR graphs — git markup only + +Graphs live as **Mermaid + Markdown tables** in [`docs/GRAPHS.md`](GRAPHS.md). + +No PNG/JPG chart binaries are stored in this repository (avoids failed image renders and large binary commits). + +## Regenerate from open data + +```bash +python3 scripts/generate_gir_charts.py +``` + +That script reads `data/**` and rewrites `docs/GRAPHS.md`. + +## Daily automation + +`scripts/daily_gir_automation.sh` runs the generator after ingest so graph markup stays in sync with open-tier feeds. + +## View + +GitHub renders Mermaid in Markdown automatically when you open `docs/GRAPHS.md`. diff --git a/docs/DAILY_AUTOMATION.md b/docs/DAILY_AUTOMATION.md new file mode 100644 index 0000000000000000000000000000000000000000..b78a35f2d381b051099954a49103927ea5cec438 --- /dev/null +++ b/docs/DAILY_AUTOMATION.md @@ -0,0 +1,87 @@ +# GIR Daily Git Automation (comprehensive) + +## Schedule + +| Channel | When | +|---------|------| +| GitHub Actions | **06:00 UTC** and **18:00 UTC** daily + manual dispatch | +| Local cron (optional) | `0 6 * * *` via `scripts/install_cron.sh` | + +## What runs every time + +`scripts/daily_gir_automation.sh` executes this sequence: + +1. **Open-tier ingest** (`scripts/ingest_open_tier.py`) +2. **US open-status banner** (`scripts/compute_us_open_status.py`) +3. **Mermaid / SVG charts** (`scripts/generate_gir_charts.py`) +4. **Daily executive summary** (`scripts/generate_daily_exec_summary.py`) +5. **Git commit** of all refreshed data + reports +6. **Email** the summary via Hostinger SMTP (if secrets are set) + +## Data outputs + +| Source | Output | +|--------|--------| +| UOGW anomalies | `data/anomalies/uogw_anomalies_latest.json` | +| NASA EONET events | `data/events/eonet_open_latest.json` + `.geojson` | +| USGS earthquakes (M2.5+ day) | `data/events/usgs_quakes_2.5_day_latest.geojson` | +| NWS active alerts (US) | `data/events/nws_active_alerts_latest.geojson` | +| Sentinel-2 STAC (Casey region) | `data/imagery_index/sentinel2_*.json` | +| NASA DONKI CME (7-day) | `data/events/donki_cme_latest.json` | +| CISA KEV, OpenSky, OurAirports, etc. | `data/defense_open/` | +| Run manifest | `data/manifests/manifest_latest.json` | +| US open-status | `data/status/us_open_conditions_latest.json` | + +All sources are **public open-tier** only. + +## Executive reports + +Daily open-tier executive summaries are written automatically: + +| Resource | Link | +|----------|------| +| **Latest summary** | [reports/latest.md](../reports/latest.md) | +| **Daily archive** | [reports/daily/](../reports/daily/) | + +Each file is named `YYYY-MM-DD-gir-exec.md`. + +## Daily email (Hostinger SMTP) + +After each successful run, the workflow can email the executive summary. + +| Setting | Value | +|---------|--------| +| From / To | `launchcontrol@midwestsds.com` | +| SMTP host | `smtp.hostinger.com` | +| SMTP port | `465` (SSL) | + +### Required GitHub Actions secrets + +Add these under **Settings → Secrets and variables → Actions** (repository or org): + +| Secret name | Value | +|-------------|--------| +| `SMTP_USERNAME` | `launchcontrol@midwestsds.com` | +| `SMTP_PASSWORD` | Hostinger mailbox password for that address | + +If `SMTP_PASSWORD` is missing, the email step is skipped (ingest/report still run). + +Subject line example: `GIR Daily Exec — 2026-08-19` +Body: full text of the day’s `reports/daily/YYYY-MM-DD-gir-exec.md` plus a GitHub link. + +## Commands + +```bash +bash scripts/daily_gir_automation.sh +# or step-by-step: +python3 scripts/ingest_open_tier.py +python3 scripts/compute_us_open_status.py +python3 scripts/generate_gir_charts.py +python3 scripts/generate_daily_exec_summary.py +``` + +## GitHub + +Repo: https://github.com/Midwest-Stratospheric/aerostratospheric-defense-gir + +Actions → **Daily GIR open-tier ingest** → **Run workflow** for an immediate refresh (and test email once secrets are set). diff --git a/docs/DATA_PACKAGES.md b/docs/DATA_PACKAGES.md new file mode 100644 index 0000000000000000000000000000000000000000..f989da15f172b032f78bb2666da16286ba079aed --- /dev/null +++ b/docs/DATA_PACKAGES.md @@ -0,0 +1,43 @@ +# GIR Open-Tier Data Packages + +This document describes the **daily data packages** produced by the Aerostratospheric Defense GIR automation. Everything here is public open-tier only. + +## Daily package contents + +Each successful run of `scripts/daily_gir_automation.sh` refreshes and commits: + +| Package area | Path(s) | Description | +|--------------|---------|-------------| +| **Manifest** | `data/manifests/manifest_latest.json` | Per-source ok/fail, counts, timestamp | +| **Anomalies** | `data/anomalies/uogw_anomalies_latest.json` | UOGW research anomaly report (alert/watch/info) | +| **Events** | `data/events/` | EONET, USGS M2.5+ day, NWS active alerts, DONKI CME | +| **Imagery index** | `data/imagery_index/` | Sentinel-2 STAC search + index (Casey AOI) | +| **Defense-open** | `data/defense_open/` | CISA KEV, OurAirports military-keyword sample, OpenSky Midwest snapshot, OSM military landuse (IL), USASpending sample, GDELT lastupdate, FIRMS status | +| **US open status** | `data/status/us_open_conditions_latest.json` | GREEN/YELLOW/… banner from public factors only | +| **Charts** | `docs/charts/`, `docs/GRAPHS.md` | SVG + Mermaid summaries | +| **Executive report** | `reports/daily/YYYY-MM-DD-gir-exec.md`, `reports/latest.md` | Concise quality + observations + actions | + +## How to consume + +- **Latest everything:** clone or sparse-checkout `main`, or fetch individual raw files via `https://raw.githubusercontent.com/Midwest-Stratospheric/aerostratospheric-defense-gir/main/...` +- **Machine status:** `data/status/us_open_conditions_latest.json` and `data/manifests/manifest_latest.json` +- **Human briefing:** [reports/latest.md](../reports/latest.md) +- **Rebuild locally:** `bash scripts/daily_gir_automation.sh` + +## Related ecosystem packages + +| Repository | Role | +|------------|------| +| [Unified-Open-Global-Weather](https://github.com/Midwest-Stratospheric/Unified-Open-Global-Weather) | Multi-layer atmospheric commons; source of UOGW anomaly report | +| [msds-data](https://github.com/Midwest-Stratospheric/msds-data) | First-party ground weather + planned HAB flight packages | +| [International-Ground-Data-Repository](https://github.com/Midwest-Stratospheric/International-Ground-Data-Repository) | IGRA / international ground indexes | + +## License & attribution + +- Repository software: MIT (`LICENSE`) +- Upstream data: retain each provider’s terms (NWS, USGS, NASA, CISA, OpenSky, OurAirports, OSM ODbL, etc.) +- Cite this repo via `CITATION.cff` when using the curated package as a whole + +## What is intentionally excluded + +Classified, FOUO, partner-restricted, and export-controlled material. Higher tiers belong in separate private repositories under agreement. diff --git a/docs/DATA_POLICY.md b/docs/DATA_POLICY.md new file mode 100644 index 0000000000000000000000000000000000000000..47cd7e4fc9b64da9f52d2ecaebf8db3b89e9dced --- /dev/null +++ b/docs/DATA_POLICY.md @@ -0,0 +1,14 @@ +# GIR Data Policy + +## Principles + +1. Public repository contains **open** data only. +2. No classified military intelligence in this tree. +3. No kinetic, targeting, or weapons employment products. +4. Satellite imagery is **indexed and queried** via open STAC/APIs — full global archives are not duplicated here. +5. "Military info" in open tier means **publicly published** reference and research sources under their licenses. +6. Restricted defense detections from Aerodefener / partner sensors stay off the public repository. + +## Attribution + +Always attribute ESA Copernicus, USGS, NASA, NOAA, and other providers per their terms when redistributing products derived from their data. diff --git a/docs/FEATURES.md b/docs/FEATURES.md new file mode 100644 index 0000000000000000000000000000000000000000..bed2769d62ce2fcaa3ca87d9c535f383a6d58946 --- /dev/null +++ b/docs/FEATURES.md @@ -0,0 +1,39 @@ +# GIR feature set (v1.6 scientific open tier) + +## Core quality & science features + +| # | Feature | Code / artifacts | Output | +|---|---------|------------------|--------| +| 1 | **Provenance & integrity** | `scripts/lib/provenance.py` | `*.prov.json` sidecars | +| 2 | **Schema validation** | `scripts/lib/validate.py` | Quality report | +| 3 | **Temporal version index** | `data/temporal/` | Run history | +| 4 | **AOI spatial filters** | `scripts/lib/aoi.py` | Per-region subsets | +| 5 | **Statistical baselines** | `scripts/lib/baseline.py` | Rolling z-flags | +| 6 | **Multi-source fusion** | `scripts/lib/fusion.py` | Clusters | +| 7 | **STAC export** | `scripts/lib/stac_export.py` | STAC items | +| 8 | **Freshness SLA** | `scripts/lib/freshness.py` | Stale source list | +| 9 | **Research citation** | `CITATION.cff` | Citable artifact | +| 10 | **Scientific methodology** | `docs/methodology/` | Methods notes | + +## New scientific suite (v1.6) + +| # | Feature | Script | Output | +|---|---------|--------|--------| +| 17 | **Quality scorecard** | `generate_scientific_features.py` | `data/quality/scientific_scorecard_latest.json` — grade A–F from completeness × freshness × integrity | +| 18 | **Change detection** | same | `data/quality/change_detection_latest.json` — status flips + count deltas vs prior run | +| 19 | **Coverage report** | same | `data/quality/coverage_report_latest.json` — hazards / EO / defense-open layer inventory | +| 20 | **FAIR package card** | same | `data/quality/fair_package_card_latest.json` + `reports/scientific/` digest | + +## Daily automation & products + +| # | Feature | Output | +|---|---------|--------| +| 11–16 | Ingest, US status, charts, exec summary, Actions, auto-rerun | See `docs/DAILY_AUTOMATION.md` | + +## Run + +```bash +bash scripts/daily_gir_automation.sh +# or: +python3 scripts/generate_scientific_features.py +``` diff --git a/docs/FEATURE_EXAMPLES.md b/docs/FEATURE_EXAMPLES.md new file mode 100644 index 0000000000000000000000000000000000000000..914b88cd3246900b45e2e416cafdad48a154d6f9 --- /dev/null +++ b/docs/FEATURE_EXAMPLES.md @@ -0,0 +1,203 @@ +# GIR feature code examples + +Runnable examples for each of the ten open-tier scientific features. +Run from the repository root with `PYTHONPATH=.` if needed. + +--- + +## Feature 1 — Provenance & integrity + +```python +from pathlib import Path +from scripts.lib.provenance import make_provenance, write_sidecar, sha256_file + +path = Path("data/events/usgs_quakes_2.5_day_latest.geojson") +raw = path.read_bytes() + +prov = make_provenance( + record_id=path.name, + source_id="usgs_earthquakes", + source_url="https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_day.geojson", + content=raw, + license="USGS public domain", + attribution="U.S. Geological Survey", + tier="open", + transform={"parser": "geojson", "schema_version": "v1"}, +) +side = write_sidecar(path, prov) +print("sidecar:", side) +print("sha256:", prov["content_sha256"]) +assert sha256_file(path) == prov["content_sha256"] +``` + +--- + +## Feature 2 — Schema validation & completeness + +```python +import json +from pathlib import Path +from scripts.lib.validate import validate_manifest_v2, completeness_score, validate_geojson_minimal + +manifest = json.loads(Path("data/manifests/manifest_latest.json").read_text()) +ok, errors = validate_manifest_v2(manifest) +score = completeness_score(manifest) +print("schema_valid:", ok, "completeness:", score, "errors:", errors) + +quakes = json.loads(Path("data/events/usgs_quakes_2.5_day_latest.geojson").read_text()) +gok, gerr = validate_geojson_minimal(quakes) +print("geojson_valid:", gok, gerr) +``` + +--- + +## Feature 3 — Temporal version index + +```python +import json +from datetime import datetime, timezone +from pathlib import Path +from scripts.lib.provenance import sha256_file + +TEMPORAL = Path("data/temporal") +TEMPORAL.mkdir(parents=True, exist_ok=True) +index = TEMPORAL / "run_index.jsonl" + +entry = { + "ts": datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ"), + "completeness_score": 1.0, + "note": "manual example run", + "manifest_sha256": sha256_file(Path("data/manifests/manifest_latest.json")) + if Path("data/manifests/manifest_latest.json").exists() else None, +} +with index.open("a", encoding="utf-8") as f: + f.write(json.dumps(entry) + "\n") + +for line in index.read_text(encoding="utf-8").strip().splitlines()[-5:]: + print(json.loads(line)) +``` + +--- + +## Feature 4 — AOI spatial filters + +```python +import json +from pathlib import Path +from scripts.lib.aoi import load_regions, filter_features_by_bbox, point_in_bbox + +regions = load_regions(Path("config/aoi_regions.json")) +midwest = next(r for r in regions if r["id"] == "midwest_il") +bbox = midwest["bbox"] + +print("Chicago in midwest AOI?", point_in_bbox(-87.63, 41.88, bbox)) + +quakes = json.loads(Path("data/events/usgs_quakes_2.5_day_latest.geojson").read_text()) +subset = filter_features_by_bbox(quakes.get("features") or [], bbox) +print(f"quakes in {midwest['name']}:", len(subset)) +``` + +--- + +## Feature 5 — Statistical baselines (rolling z-score) + +```python +from pathlib import Path +from scripts.lib.baseline import update_baseline_store, mean_std, z_score + +result = update_baseline_store( + Path("data/quality/baseline_store.json"), + series_id="usgs_m25_count_1d", + value=39.0, + window=30, +) +print(result) # includes mu, sigma, z, flag (|z| >= 2) + +mu, sigma = mean_std([10, 12, 11, 40]) +print("z of 40:", z_score(40, mu, sigma)) +``` + +--- + +## Feature 6 — Multi-source fusion + +```python +from scripts.lib.fusion import fuse_events, haversine_km + +print("km:", round(haversine_km(38.0, -88.0, 38.1, -88.1), 2)) + +events = [ + {"id": "a1", "source": "usgs", "lat": 37.6, "lon": -88.2, + "time_utc": "2026-08-11T12:00:00Z", "label": "quake A"}, + {"id": "b1", "source": "eonet", "lat": 37.65, "lon": -88.18, + "time_utc": "2026-08-11T13:30:00Z", "label": "event B"}, + {"id": "c1", "source": "usgs", "lat": 10.0, "lon": 20.0, + "time_utc": "2026-08-11T12:00:00Z", "label": "far away"}, +] +for c in fuse_events(events, distance_km=50.0, time_hours=24.0): + print(c["cluster_id"], c["sources"], c["corroboration_score"]) +``` + +--- + +## Feature 7 — STAC export + +```python +import json +from pathlib import Path +from scripts.lib.stac_export import stac_collection, stac_item_from_index_row + +coll = stac_collection() +index = json.loads(Path("data/imagery_index/sentinel2_index_latest.json").read_text()) +items = [stac_item_from_index_row(row, coll["id"]) for row in (index.get("items") or [])[:5]] +print(coll["id"], "items:", len(items)) +``` + +--- + +## Feature 8 — Freshness SLA + +```python +from scripts.lib.freshness import evaluate_freshness, DEFAULT_SLA_HOURS + +results = [ + {"source": "usgs_quakes", "ok": True, "fetched_at_utc": "2026-08-11T08:00:00Z"}, + {"source": "nws_alerts", "ok": True, "fetched_at_utc": "2026-08-01T00:00:00Z"}, +] +report = evaluate_freshness(results) +print("sla_met:", report["sla_met"], "stale:", report["sources_stale"]) +``` + +--- + +## Feature 9 — Research citation package + +```python +from pathlib import Path +cff = Path("CITATION.cff").read_text(encoding="utf-8") +assert "cff-version:" in cff +print("CITATION.cff lines:", len(cff.splitlines())) +``` + +APA-style: Aerostratospheric / Midwest Stratospheric Data Systems. (2026). *Aerostratospheric Defense GIR* (Version 1.4.0) [Computer software]. https://github.com/Midwest-Stratospheric/aerostratospheric-defense-gir + +--- + +## Feature 10 — Scientific methodology & uncertainty + +```python +from pathlib import Path +for rel in ("docs/methodology/SCIENTIFIC_METHOD.md", "docs/methodology/UNCERTAINTY.md"): + p = Path(rel) + print(p, "OK" if p.exists() else "MISSING") +``` + +--- + +## Full suite + +```bash +python3 scripts/ingest_open_tier.py +python3 scripts/gir_quality_suite.py +python3 scripts/generate_gir_charts.py +``` diff --git a/docs/GRAPHS.md b/docs/GRAPHS.md new file mode 100644 index 0000000000000000000000000000000000000000..474c05b2ea9a1910b441ccfb53f5e029f376d09c --- /dev/null +++ b/docs/GRAPHS.md @@ -0,0 +1,106 @@ +# GIR graphs (git markup) + +_Generated 2026-09-16 10:58 UTC from open-tier data. Mermaid only — no image binaries._ + +Regenerate: + +```bash +python3 scripts/generate_gir_charts.py +``` + +## Data flow + +```mermaid +flowchart LR + A["Public feeds"] --> B["Ingest scripts"] + C["Open defense sources"] --> B + B --> D["data folders"] + D --> E["manifest"] + E --> F["git commit"] + D --> G["Defense GIR page / maps"] +``` + +## Access tiers + +```mermaid +flowchart TB + O["Open tier — this public repo"] + P["Partner tier — agreements"] + R["Restricted — authorized only"] + O --> P --> R +``` + +## Daily ingest status + +**Last run:** `2026-09-16T10:58:11.518762+00:00` · **14/15 sources OK** + +```mermaid +pie showData + title Ingest sources OK vs failed (14/15) + "OK" : 14 + "Failed or skipped" : 1 +``` + +| Source | Status | +|--------|--------| +| `uogw_anomalies` | OK | +| `eonet_events` | OK | +| `eonet_geojson` | OK | +| `usgs_quakes` | OK | +| `nws_alerts` | OK | +| `sentinel2_stac` | OK | +| `donki_cme` | OK | +| `cisa_kev` | OK | +| `ourairports_military_keywords` | OK | +| `usaspending_defense` | OK | +| `gdelt_lastupdate` | OK | +| `opensky_midwest` | OK | +| `osm_military_landuse` | FAIL | +| `firms` | OK | +| `partner_stubs` | OK | + +## UOGW anomaly severity + +Public anomaly flags (research-style). Not official emergency alerts. + +```mermaid +pie showData + title UOGW counts by severity + "alert" : 0 + "watch" : 2 + "info" : 0 +``` + +| alert | watch | info | +|-------|-------|------| +| 0 | 2 | 0 | + +## USGS earthquakes (M2.5+, past day) + +**Events:** 35 + +```mermaid +xychart-beta + title "Quake count by magnitude band" + x-axis ["2.5-3.4", "3.5-4.4", "4.5-5.4", "5.5+"] + y-axis "Count" 0 --> 14 + bar [14, 7, 14, 0] +``` + +## Public keyword-flagged airfields by country + +> Heuristic from public OurAirports — **not** an official basing list. + +**Records:** 259 + +```mermaid +xychart-beta + title "Top countries (keyword heuristic)" + x-axis ["US", "IN", "RO", "ZA", "RU", "TW", "KR", "CA", "BR", "NL", "AU", "IL"] + y-axis "Count" 0 --> 130 + bar [130, 40, 8, 5, 4, 4, 4, 3, 3, 3, 3, 3] +``` + +--- + +Open tier only. See OPEN_DEFENSE_DATA.md and DATA_POLICY.md. diff --git a/docs/HUGGINGFACE.md b/docs/HUGGINGFACE.md new file mode 100644 index 0000000000000000000000000000000000000000..8487ff797b28d6274ff3637a6c2a59bffa9b1577 --- /dev/null +++ b/docs/HUGGINGFACE.md @@ -0,0 +1,57 @@ +# Hugging Face daily mirror (GIR) + +Published by **[Aerostratospheric](https://www.midwestsds.com/)**. +Midwest Stratospheric Data Systems operates as a limited partnership under Aerostratospheric. + +GIR and UOGW publish to **separate** Hugging Face datasets and model suites under [`aerostratospheric`](https://huggingface.co/aerostratospheric). + +| Artifact | URL | +|---------|-----| +| **GIR dataset** | https://huggingface.co/datasets/aerostratospheric/gir | +| **GIR models** | https://huggingface.co/aerostratospheric/gir-open-tier-suite | +| UOGW dataset (sibling) | https://huggingface.co/datasets/aerostratospheric/uogw | +| UOGW models (sibling) | https://huggingface.co/aerostratospheric/uogw-scientific-suite | +| Hub card | https://huggingface.co/aerostratospheric/msds-open-models | + +## Aerostratospheric + +| Resource | Link | +|----------|------| +| Home | https://www.midwestsds.com/ | +| About | https://midwestsds.com/about.html | +| xDataHub | https://midwestsds.com/msds-data-hub.html | +| Defense GIR | https://midwestsds.com/aerostratospheric-defense-gir.html | +| Contact | https://midwestsds.com/contact/ | +| GitHub | https://github.com/Midwest-Stratospheric | +| Hugging Face | https://huggingface.co/aerostratospheric | + +Casey, Illinois · NASA GLOBE **GO-4VW9B** · Ham **KE9CFY** · launchcontrol@midwestsds.com + +## Data automation + +GitHub Action: [`.github/workflows/huggingface-daily.yml`](../.github/workflows/huggingface-daily.yml) + +- Schedule: **19:30 UTC daily** (after the 18:00 ingest) +- Manual: Actions → *Daily Hugging Face sync (GIR)* → Run workflow +- Script: [`scripts/sync_to_huggingface.sh`](../scripts/sync_to_huggingface.sh) + +Synced paths: `data/`, `catalog/`, `reports/`, `samples/` (JSON/CSV/Markdown only). + +## Model automation (daily retrain) + +GitHub Action: [`.github/workflows/huggingface-models-daily.yml`](../.github/workflows/huggingface-models-daily.yml) + +- Schedule: **20:00 UTC daily** +- Also runs after a successful *Daily Hugging Face sync (GIR)* +- Manual: Actions → *Daily Hugging Face model retrain (GIR)* → Run workflow +- Script: [`scripts/train_hf_models.py`](../scripts/train_hf_models.py) + +Pushes a new commit to `aerostratospheric/gir-open-tier-suite`. + +## Required secret + +Add a repository secret named **`HF_TOKEN`** (Hugging Face write token): + +https://github.com/Midwest-Stratospheric/aerostratospheric-defense-gir/settings/secrets/actions + +Do not commit the token. diff --git a/docs/OPEN_DEFENSE_DATA.md b/docs/OPEN_DEFENSE_DATA.md new file mode 100644 index 0000000000000000000000000000000000000000..c3c4e7ff37557a5efbb8b0231c3d501909be4094 --- /dev/null +++ b/docs/OPEN_DEFENSE_DATA.md @@ -0,0 +1,54 @@ +# Open Defense Data Strategy (Public GIR) + +## Principle + +This repository holds **open and publicly licensed** defense-adjacent data only. + +| Allowed | Not allowed | +|---------|-------------| +| Public government datasets | Classified / FOUO / CUI without authority | +| Academic conflict research under license | Targeting or kinetic products | +| Keyword-flagged public airfield databases | Live tactical unit locations from non-public sources | +| Cyber KEV / NVD public catalogs | Exploits or weaponization guides | +| Open EO, weather, space weather | Export-controlled technical data packages | + +## Layers for a comprehensive open defense GIR + +1. **Reference basemap** — Natural Earth, OSM, NASADEM +2. **Civil + published military airfields** — OurAirports heuristics (this repo) +3. **Maritime** — World Port Index, public AIS portals +4. **Hazard & anomaly** — UOGW, EONET, USGS, NWS, FIRMS +5. **Conflict research** — UCDP (cite), ACLED under partner agreement +6. **Cyber defense open** — CISA KEV, NVD +7. **Federal transparency** — USAspending, SAM.gov entity/opportunity data +8. **Aviation state** — OpenSky ADS-B (public broadcasts only) +9. **Space weather** — DONKI +10. **Mission products** — Partner/restricted Aerodefener outputs (not in public git) + +## Partner / Restricted (not in public git) + +- Aerodefener RF anomaly and fused threat products +- Controlled partner imagery +- Any dataset requiring government-to-government channels + +## Implemented in daily ingest (public) + +| Source | Status | +|--------|--------| +| UOGW, EONET, USGS, NWS, DONKI, Sentinel-2 | Daily | +| CISA KEV | Daily | +| OurAirports military-keyword airfields | Daily | +| USAspending defense NAICS (90-day) | Daily | +| GDELT lastupdate pointers | Daily | +| OpenSky Midwest ADS-B snapshot | Best-effort (rate limits) | +| OSM landuse=military (IL sample bbox) | Daily sample | +| FIRMS VIIRS USA | When FIRMS_MAP_KEY is set | +| UCDP / ACLED | Registration / partner key — stubs only in public repo | + +## Partner tier private repo (suggested) + +Create `aerostratospheric-defense-gir-restricted` (private) for: + +- Aerodefener restricted products +- ACLED extracts under license +- Partner EO diff --git a/docs/charts/README.md b/docs/charts/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b78db6e363315c5d59abf3cc2ec8f4f48e449b82 --- /dev/null +++ b/docs/charts/README.md @@ -0,0 +1,49 @@ +# GIR visual charts — all categories + +_Git-native SVG · open tier only_ + +```bash +python3 scripts/generate_gir_charts.py +``` + +## Overview +![overview](cat_overview_all.svg) +![architecture](cat_architecture.svg) + +## Manifests +![ingest](cat_manifest_ingest_status.svg) +![sources](cat_manifest_sources.svg) +![quality kpi](cat_manifest_quality_kpi.svg) + +## Anomalies +![uogw](cat_anomalies_uogw_severity.svg) +![kpi](cat_anomalies_kpi.svg) + +## Events +![usgs mags](cat_events_usgs_mags.svg) +![usgs aoi](cat_events_usgs_aoi.svg) +![nws](cat_events_nws_types.svg) +![eonet](cat_events_eonet_categories.svg) +![donki](cat_events_donki_kpi.svg) + +## Imagery & STAC +![sentinel](cat_imagery_sentinel_clouds.svg) +![imagery kpi](cat_imagery_kpi.svg) +![stac](cat_stac_kpi.svg) + +## Defense-open +![airfields](cat_defense_airfields_country.svg) +![cisa](cat_defense_cisa_vendors.svg) +![spending](cat_defense_usaspending.svg) +![osm](cat_defense_osm_kpi.svg) +![feeds](cat_defense_feed_status.svg) + +## Reference +![reference](cat_reference_types.svg) + +## Quality & temporal +![features](cat_quality_features_run.svg) +![baseline z](cat_quality_baseline_z.svg) +![fusion](cat_quality_fusion.svg) +![completeness](cat_temporal_completeness.svg) +![temporal kpi](cat_temporal_kpi.svg) diff --git a/docs/charts/airfields_by_country.svg b/docs/charts/airfields_by_country.svg new file mode 100644 index 0000000000000000000000000000000000000000..c78bd5429aab62e389a3ada2cd5fdd2319a4ea0b --- /dev/null +++ b/docs/charts/airfields_by_country.svg @@ -0,0 +1,10 @@ + + + Keyword-flagged airfields by country + + Public keyword-flagged airfields by country + OurAirports heuristic — not an official basing list + See generate_gir_charts.py for live bars from data + + top countries in open snapshot + diff --git a/docs/charts/cat_anomalies_kpi.svg b/docs/charts/cat_anomalies_kpi.svg new file mode 100644 index 0000000000000000000000000000000000000000..fb979ff14c582c84faaa04d2425acf77c090aedd --- /dev/null +++ b/docs/charts/cat_anomalies_kpi.svg @@ -0,0 +1,2 @@ + +Anomalies KPIAnomalies · KPI2Total2Alert0Watch0Info diff --git a/docs/charts/cat_anomalies_uogw_severity.svg b/docs/charts/cat_anomalies_uogw_severity.svg new file mode 100644 index 0000000000000000000000000000000000000000..b4a1b2b72aea5a9caed136eb3bad68682770d8e0 --- /dev/null +++ b/docs/charts/cat_anomalies_uogw_severity.svg @@ -0,0 +1,2 @@ + +UOGW severityAnomalies · UOGW severityalert (live from data)watchinfo diff --git a/docs/charts/cat_architecture.svg b/docs/charts/cat_architecture.svg new file mode 100644 index 0000000000000000000000000000000000000000..06059302cac62d28d7a6bf5804ca0a0310242583 --- /dev/null +++ b/docs/charts/cat_architecture.svg @@ -0,0 +1,2 @@ + +GIR categoriesGIR open data flow · all categoriesanomalieseventsimagerydefensequalitytemporal diff --git a/docs/charts/cat_defense_airfields_country.svg b/docs/charts/cat_defense_airfields_country.svg new file mode 100644 index 0000000000000000000000000000000000000000..6c4f48afa7c5bbacd6c521aa0453c3cd49128dac --- /dev/null +++ b/docs/charts/cat_defense_airfields_country.svg @@ -0,0 +1,2 @@ + +AirfieldsDefense-open · keyword airfields by countryHeuristic only — not official basingUSRUCNOther diff --git a/docs/charts/cat_defense_cisa_vendors.svg b/docs/charts/cat_defense_cisa_vendors.svg new file mode 100644 index 0000000000000000000000000000000000000000..1a659abaefa1c4097d49edaa867cbe9f62f72fe7 --- /dev/null +++ b/docs/charts/cat_defense_cisa_vendors.svg @@ -0,0 +1,2 @@ + +CISA KEVDefense-open · CISA KEV top vendorsKnown Exploited Vulnerabilities catalogMicrosoftAdobeGoogleAppleOther diff --git a/docs/charts/cat_defense_feed_status.svg b/docs/charts/cat_defense_feed_status.svg new file mode 100644 index 0000000000000000000000000000000000000000..6e4fadd8bb59faaede2339d3e823d786957bf65a --- /dev/null +++ b/docs/charts/cat_defense_feed_status.svg @@ -0,0 +1,2 @@ + +Feed statusDefense-open · auxiliary feed presenceGDELTOpenSkyFIRMSACLED/UCDP diff --git a/docs/charts/cat_defense_osm_kpi.svg b/docs/charts/cat_defense_osm_kpi.svg new file mode 100644 index 0000000000000000000000000000000000000000..40b932de8486d97202c965d510c1d10c954e7962 --- /dev/null +++ b/docs/charts/cat_defense_osm_kpi.svg @@ -0,0 +1,2 @@ + +OSM militaryDefense-open · OSM landuse=military sample10FeaturesIL sampleODbL diff --git a/docs/charts/cat_defense_usaspending.svg b/docs/charts/cat_defense_usaspending.svg new file mode 100644 index 0000000000000000000000000000000000000000..c4e1771127aa26e41de5336875baa4c866605bad --- /dev/null +++ b/docs/charts/cat_defense_usaspending.svg @@ -0,0 +1,2 @@ + +USAspendingDefense-open · USAspending sample ($M)Selected NAICS · public transparencyRecipient ARecipient BRecipient COthers diff --git a/docs/charts/cat_events_donki_kpi.svg b/docs/charts/cat_events_donki_kpi.svg new file mode 100644 index 0000000000000000000000000000000000000000..bca7f505445f30f5700da9f16ec2c04da5f692f4 --- /dev/null +++ b/docs/charts/cat_events_donki_kpi.svg @@ -0,0 +1,2 @@ + +DONKIEvents · DONKI CME space weather26CME countwindow liveopen tier diff --git a/docs/charts/cat_events_eonet_categories.svg b/docs/charts/cat_events_eonet_categories.svg new file mode 100644 index 0000000000000000000000000000000000000000..2f6d44dff3833bcecb8e1b78c4e1e5bf55505d1d --- /dev/null +++ b/docs/charts/cat_events_eonet_categories.svg @@ -0,0 +1,2 @@ + +EONETEvents · EONET categoriesOpen natural eventsWildfiresSevere StormsVolcanoesOther diff --git a/docs/charts/cat_events_nws_types.svg b/docs/charts/cat_events_nws_types.svg new file mode 100644 index 0000000000000000000000000000000000000000..ef9830e0e1aa3be3ad7b23296efc1af3d769f122 --- /dev/null +++ b/docs/charts/cat_events_nws_types.svg @@ -0,0 +1,2 @@ + +NWS alertsEvents · NWS alert typesActive public weather alertsFloodHeatWindStormOther diff --git a/docs/charts/cat_events_usgs_aoi.svg b/docs/charts/cat_events_usgs_aoi.svg new file mode 100644 index 0000000000000000000000000000000000000000..b53dd60f517a461873dc38b73042733df5be8c5f --- /dev/null +++ b/docs/charts/cat_events_usgs_aoi.svg @@ -0,0 +1,2 @@ + +USGS AOIEvents · USGS by AOI filterFeature 4 spatial subsetsconus6midwest_il0global_sample37north_atlantic0 diff --git a/docs/charts/cat_events_usgs_mags.svg b/docs/charts/cat_events_usgs_mags.svg new file mode 100644 index 0000000000000000000000000000000000000000..bf4104a3ba605778631057a29c802b993d7f99ed --- /dev/null +++ b/docs/charts/cat_events_usgs_mags.svg @@ -0,0 +1,2 @@ + +USGS magsEvents · USGS M2.5+ by band2.5–3.43.5–4.44.5–5.45.5+ diff --git a/docs/charts/cat_imagery_kpi.svg b/docs/charts/cat_imagery_kpi.svg new file mode 100644 index 0000000000000000000000000000000000000000..4faabd24dde833833a2fe30ee40e2ddff55df4ba --- /dev/null +++ b/docs/charts/cat_imagery_kpi.svg @@ -0,0 +1,2 @@ + +Imagery KPIImagery · index KPI6ScenesSentinel-2open diff --git a/docs/charts/cat_imagery_sentinel_clouds.svg b/docs/charts/cat_imagery_sentinel_clouds.svg new file mode 100644 index 0000000000000000000000000000000000000000..fcb5631394b7eccbdc8635c18c9508e609c84c5f --- /dev/null +++ b/docs/charts/cat_imagery_sentinel_clouds.svg @@ -0,0 +1,2 @@ + +Sentinel cloudsImagery · Sentinel-2 cloud cover %data/imagery_index/scene-1scene-2scene-3scene-4 diff --git a/docs/charts/cat_manifest_ingest_status.svg b/docs/charts/cat_manifest_ingest_status.svg new file mode 100644 index 0000000000000000000000000000000000000000..cfa8121087ba455fdb24c376094b23c493a993e4 --- /dev/null +++ b/docs/charts/cat_manifest_ingest_status.svg @@ -0,0 +1,11 @@ + + + Manifest ingest + + Manifests · ingest status + + + OK + + Regenerate for live counts + diff --git a/docs/charts/cat_manifest_quality_kpi.svg b/docs/charts/cat_manifest_quality_kpi.svg new file mode 100644 index 0000000000000000000000000000000000000000..3fbbc5fd4aec7be96dbf63f2c70d1d42b3820067 --- /dev/null +++ b/docs/charts/cat_manifest_quality_kpi.svg @@ -0,0 +1,2 @@ + +Quality KPIsManifests · quality & freshness KPIs0.93CompletenessyesSchema validyesSLA met1Stale sources diff --git a/docs/charts/cat_manifest_sources.svg b/docs/charts/cat_manifest_sources.svg new file mode 100644 index 0000000000000000000000000000000000000000..ad85ad436f49e78a27f23f2757e1635f7146103f --- /dev/null +++ b/docs/charts/cat_manifest_sources.svg @@ -0,0 +1,2 @@ + +Manifest sourcesManifests · per-source OKuogweonetusgsnwssentinel2donkiopensky diff --git a/docs/charts/cat_overview_all.svg b/docs/charts/cat_overview_all.svg new file mode 100644 index 0000000000000000000000000000000000000000..d988da1c86fd749d0b050f2b8c036b20a28af2d2 --- /dev/null +++ b/docs/charts/cat_overview_all.svg @@ -0,0 +1,2 @@ + +GIR categories overviewGIR data categories (record counts)Open tier snapshotanomalies2events_usgs36events_nws138events_eonet100imagery6defense_air294defense_kev1662defense_spend50reference15stac_items6 diff --git a/docs/charts/cat_quality_baseline_z.svg b/docs/charts/cat_quality_baseline_z.svg new file mode 100644 index 0000000000000000000000000000000000000000..3163096337b54093f6c8b44e9dbdb66c205e5177 --- /dev/null +++ b/docs/charts/cat_quality_baseline_z.svg @@ -0,0 +1,2 @@ + +Baseline zQuality · baseline last z-scoresusgs_m25_countz live diff --git a/docs/charts/cat_quality_features_run.svg b/docs/charts/cat_quality_features_run.svg new file mode 100644 index 0000000000000000000000000000000000000000..025fabaf025f772f96bd63882bd4487130cba831 --- /dev/null +++ b/docs/charts/cat_quality_features_run.svg @@ -0,0 +1,2 @@ + +Quality featuresQuality · scientific features executedschema_validationprovenancefreshness_slatemporal_indexaoi_filterstatistical_baselinemulti_source_fusionstac_export diff --git a/docs/charts/cat_quality_fusion.svg b/docs/charts/cat_quality_fusion.svg new file mode 100644 index 0000000000000000000000000000000000000000..f7502da871418fb1b558e44b8dcbbcfdf0b5ba63 --- /dev/null +++ b/docs/charts/cat_quality_fusion.svg @@ -0,0 +1,2 @@ + +FusionQuality · fusion clusters1 sourceclusters diff --git a/docs/charts/cat_reference_types.svg b/docs/charts/cat_reference_types.svg new file mode 100644 index 0000000000000000000000000000000000000000..40dd11bee3f3f819a31c2067bfa4f9d31f1577cf --- /dev/null +++ b/docs/charts/cat_reference_types.svg @@ -0,0 +1,2 @@ + +ReferenceReference · public landmarksfeatures15 diff --git a/docs/charts/cat_stac_kpi.svg b/docs/charts/cat_stac_kpi.svg new file mode 100644 index 0000000000000000000000000000000000000000..adf452b5deb55365782994ec68aa551671a56f43 --- /dev/null +++ b/docs/charts/cat_stac_kpi.svg @@ -0,0 +1,2 @@ + +STAC KPISTAC · export KPI6Itemsgir-sentinel2Collection1.0.0STAC ver diff --git a/docs/charts/cat_temporal_completeness.svg b/docs/charts/cat_temporal_completeness.svg new file mode 100644 index 0000000000000000000000000000000000000000..cee3434b3c55f49ff45d88eb1f26f7894c299ddb --- /dev/null +++ b/docs/charts/cat_temporal_completeness.svg @@ -0,0 +1,2 @@ + +Temporal completenessTemporal · completeness by runrun-1run-2 diff --git a/docs/charts/cat_temporal_kpi.svg b/docs/charts/cat_temporal_kpi.svg new file mode 100644 index 0000000000000000000000000000000000000000..95a4ac4068955ebdcc331aa3ab2b87c9b75fe50c --- /dev/null +++ b/docs/charts/cat_temporal_kpi.svg @@ -0,0 +1,2 @@ + +Temporal KPITemporal · latest run KPI0.93Completeness14/15OK/TotalmetSLA diff --git a/docs/charts/gir_data_flow.svg b/docs/charts/gir_data_flow.svg new file mode 100644 index 0000000000000000000000000000000000000000..91d3762593b9769a85d09239692900a9a06c032c --- /dev/null +++ b/docs/charts/gir_data_flow.svg @@ -0,0 +1,14 @@ + + + GIR data flow + +GIR open data flow + +Public feeds + +Ingest + git + +GIR page / maps + + + diff --git a/docs/charts/ingest_sources.svg b/docs/charts/ingest_sources.svg new file mode 100644 index 0000000000000000000000000000000000000000..9426e725c88c32d3b69b9e2fbfa5002e2e7c0be7 --- /dev/null +++ b/docs/charts/ingest_sources.svg @@ -0,0 +1,27 @@ + + + Sources (1=OK, 0=fail) + +Sources (1=OK, 0=fail) +uogw_anomalies + +1 +eonet_events + +1 +eonet_geojson + +1 +usgs_quakes + +1 +nws_alerts + +1 +sentinel2_stac + +1 +donki_cme + +1 + diff --git a/docs/charts/ingest_status.svg b/docs/charts/ingest_status.svg new file mode 100644 index 0000000000000000000000000000000000000000..80b81266065b156a4dd1c5b5a536d2a2cef7262c --- /dev/null +++ b/docs/charts/ingest_status.svg @@ -0,0 +1,12 @@ + + + Ingest status (7/7 OK) + +Ingest status (7/7 OK) + + + +OK: 7 + +Failed/skipped: 0 + diff --git a/docs/charts/sentinel2_clouds.svg b/docs/charts/sentinel2_clouds.svg new file mode 100644 index 0000000000000000000000000000000000000000..ff00f1f05a9aad52dd7d146ea89a84a43479a7c3 --- /dev/null +++ b/docs/charts/sentinel2_clouds.svg @@ -0,0 +1,9 @@ + + + Sentinel-2 cloud cover + +Sentinel-2 cloud cover % +scene sample + +see data + diff --git a/docs/charts/uogw_severity.svg b/docs/charts/uogw_severity.svg new file mode 100644 index 0000000000000000000000000000000000000000..8c3757aa600929f4e5351f7da1d9b0c7d50a4645 --- /dev/null +++ b/docs/charts/uogw_severity.svg @@ -0,0 +1,15 @@ + + + UOGW anomaly severity + +UOGW anomaly severity + + + + +alert: 1 + +watch: 3 + +info: 0 + diff --git a/docs/charts/usaspending_top.svg b/docs/charts/usaspending_top.svg new file mode 100644 index 0000000000000000000000000000000000000000..aa5b2d5d352f31bc376d508bd18948a6787197db --- /dev/null +++ b/docs/charts/usaspending_top.svg @@ -0,0 +1,9 @@ + + + USAspending sample + + USAspending sample (selected NAICS) + Public federal awards — not classified program data + + regenerate for live amounts + diff --git a/docs/charts/usgs_mags.svg b/docs/charts/usgs_mags.svg new file mode 100644 index 0000000000000000000000000000000000000000..5f3683b3e7746bd83ee7ca3dfa0d360b05c4831f --- /dev/null +++ b/docs/charts/usgs_mags.svg @@ -0,0 +1,18 @@ + + + USGS M2.5+ by band + +USGS M2.5+ by band (n=39) +2.5-3.4 + +24 +3.5-4.4 + +11 +4.5-5.4 + +2 +5.5+ + +2 + diff --git a/docs/methodology/SCIENTIFIC_METHOD.md b/docs/methodology/SCIENTIFIC_METHOD.md new file mode 100644 index 0000000000000000000000000000000000000000..f25deed80ff0a5ce615a76b1dacaa22cdc904c11 --- /dev/null +++ b/docs/methodology/SCIENTIFIC_METHOD.md @@ -0,0 +1,34 @@ +# GIR scientific methodology (open tier) + +## Purpose + +Document how the open Geospatial Information Repository acquires, validates, scores, and versions public geospatial and defense-adjacent data so results are **reproducible**, **auditable**, and **scientifically cautious**. + +## Design principles + +1. **Public sources only** in this repository (tier = open). +2. **Provenance first** — every retained payload can be tied to URL, time, license, and content hash. +3. **Uncertainty is stated** — open feeds have latency, gaps, and classification error; we measure freshness and validation, we do not claim ground truth. +4. **Separation of tiers** — partner/restricted products are out of band. +5. **Reproducibility** — git history + manifests + scripts allow re-running the pipeline. + +## Pipeline + +```text +Source APIs → Fetch → Hash + provenance → Parse → Schema checks → AOI filter + → Baseline / fusion → Manifest + freshness SLA → STAC → Charts → Git commit +``` + +## Statistical baseline + +Rolling window mean/σ and z-score flags (|z| ≥ 2) are **screening aids**, not calibrated detection probabilities. + +## Fusion score + +`corroboration_score = unique_sources / member_count` within distance/time thresholds. + +## Non-goals + +Not a sole life-safety source. Not a targeting system. Keyword military landmarks are heuristics only. + +See also: [UNCERTAINTY.md](UNCERTAINTY.md) diff --git a/docs/methodology/UNCERTAINTY.md b/docs/methodology/UNCERTAINTY.md new file mode 100644 index 0000000000000000000000000000000000000000..564de10091f9d6e21b9bc8f234ba9e885186a5b8 --- /dev/null +++ b/docs/methodology/UNCERTAINTY.md @@ -0,0 +1,14 @@ +# Uncertainty statement (open GIR) + +| Layer | Main uncertainties | +|-------|--------------------| +| USGS quakes | Magnitude revision, location error, completeness | +| NWS alerts | Office policy differences; cancellation lag | +| EONET | Taxonomy and source heterogeneity | +| UOGW anomalies | Research screening only | +| Sentinel index | Cloud metadata; AOI sampling | +| OurAirports keywords | Name strings ≠ operational status | +| GDELT | Media bias, geocoding error | +| USAspending | Reporting lag, NAICS error | + +Prefer multi-source corroboration. Check manifests for freshness. Escalate to authoritative systems for life-safety and classified decisions. diff --git a/schema/gir_schema_v1.json b/schema/gir_schema_v1.json new file mode 100644 index 0000000000000000000000000000000000000000..ae8666ff70f6bb25c95000c2f9b9e809248b5fab --- /dev/null +++ b/schema/gir_schema_v1.json @@ -0,0 +1,29 @@ +{ + "name": "Aerostratospheric Defense GIR", + "version": "1.0.0", + "description": "Geospatial Information Repository for Aerostratospheric Defense Systems. Open and partner tiers use public Earth-observation and OSINT-compatible reference data only. Restricted tier is defined structurally but not populated with classified content in this public repository.", + "access_tiers": { + "open": "Public science and open EO products", + "partner": "Controlled partner products under agreement", + "restricted": "Authorized government/military only — not stored in public repo" + }, + "collections": { + "imagery_index": { + "description": "Catalog of worldwide open satellite / EO imagery sources and STAC-compatible endpoints", + "fields": ["source_id", "provider", "constellation", "resolution_m", "revisit_days", "license", "stac_api", "coverage", "tier"] + }, + "anomalies": { + "description": "Anomaly and early-warning events (public UOGW + future partner streams)", + "fields": ["event_id", "timestamp_utc", "lat", "lon", "alt_m", "platform_id", "kind", "severity", "thermal_anomaly_score", "rf_anomaly_index", "ew_level", "source", "tier"] + }, + "reference_features": { + "description": "Public reference geospatial features (ports, airports, published infrastructure). No classified sites.", + "fields": ["feature_id", "name", "feature_type", "lat", "lon", "country", "source", "notes", "tier"] + } + }, + "policy": { + "classified_content": false, + "kinetic_or_targeting_products": false, + "public_repo_contains": "Open EO catalogs, public anomaly samples, public reference features only" + } +} diff --git a/sync-status.json b/sync-status.json index f008563ff4089e947d09f98aff29a9c26dc8a428..ffdde2e4c95cbfbdc663492e4cdd2d4fe00b3aa6 100644 --- a/sync-status.json +++ b/sync-status.json @@ -1,6 +1,7 @@ { "source": "https://github.com/Midwest-Stratospheric/aerostratospheric-defense-gir", "hf_repo": "https://huggingface.co/datasets/aerostratospheric/gir", - "synced_utc": "2026-09-16T17:28:27Z", - "github_commit": "d1a5050df7619c67927f8109f2f7a83cc797652f" + "synced_utc": "2026-09-16T17:30:21Z", + "github_commit": "5bca81fc4b5982e907a911721f49062f7e1825b6", + "trees": ["data", "catalog", "reports", "samples", "docs", "schema", "config"] }