Skip to content

About

Space-domain-awareness architecture demo: Python pipelines on live CelesTrak data, FastAPI/WebSocket, Terraform (AWS EKS/MSK/RDS), Docker, CI, CesiumJS ops center

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

156 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SentinelForge

Personal Architecture Prototype — Space Domain Awareness (SDA)

🚀 Live Demo: sentinelforge.vercel.app — Operations center with CesiumJS 3D globe, live CelesTrak satellite data, and simulated sensor telemetry. No login required.

SentinelForge is a prototype of a full-stack space surveillance pipeline: ML inference at the edge, multi-sensor fusion in the cloud, and orbital-mechanics modules aimed at the catalog staleness problem in space domain awareness.

Status and scope

SentinelForge is a personal learning and portfolio project, not an operational system. It was built by directing a team of 20 AI agents (see agents/) that generated, tested, reviewed and documented the code.

  • Real: the ops center loads the public CelesTrak GP catalog; the Python orbital-mechanics and science modules run and pass their tests; the streak-detection CNN trains on synthetic data and its checkpoint is included.
  • Simulated: ground-station telemetry, the 172-site network (modeled on public descriptions of real networks), self-healing events, and the ASCOM observatory layer (simulation mode by default).
  • Reference only: the C++/CUDA edge pipeline and the cloud infrastructure code (Terraform, Kubernetes, Kafka) target hardware and services this project has not been deployed on.

19,000+ lines of code across 85+ files — Python, C++/CUDA, HTML/JS, Terraform, Kubernetes.


Architecture

sentinelforge/
├── main.py                              # Entry point — boots the Orchestrator
├── config.py                            # Sites, credentials, model paths
├── db.py                                # SQLite task/sprint tracking
├── knowledge.py                         # Domain knowledge loader
├── end_to_end_test.py                   # Full pipeline integration test
├── requirements.txt                     # Python dependencies
├── CI_CD_pipeline.yml                   # GitHub Actions CI/CD
├── SOTA_2026_EXECUTIVE_SUMMARY.md       # Technical executive summary (A–N)
│
├── agents/                              # 20-AGENT AI SYSTEM (5 Tiers)
│   ├── tier1_cpp/                       # C++/CUDA code generation (Agents 1-4)
│   ├── tier2_python/                    # Python pipeline agents (Agents 5-8)
│   ├── tier3_testing/                   # Testing & validation (Agents 9-12)
│   ├── tier4_deploy/                    # Deployment & ops (Agents 13-16)
│   └── tier5_mgmt/                      # Management & orchestration (Agents 17-20)
│
├── output/builds/src/                   # GENERATED PIPELINE CODE
│   ├── cpp/                             # Edge inference (C++/CUDA)
│   │   ├── photometry.cpp               #   Aperture photometry extraction
│   │   └── plate_solver.cpp             #   Gaia DR3 astrometric calibration
│   │
│   ├── api/                             # Cloud API layer
│   │   ├── api_server.py                #   FastAPI REST endpoints
│   │   └── twin_ws.py                   #   Digital Twin WebSocket (1Hz streaming)
│   │
│   ├── science/                         # SOTA SCIENCE MODULES (14 modules)
│   │   ├── light_curve_analyzer.py      #   A. Contrastive Transformer fingerprinting
│   │   ├── graph_associator.py          #   B. GNN + Sinkhorn optimal transport
│   │   ├── pinn_orbit.py                #   C. Physics-Informed Neural Network (J2-J6+Drag)
│   │   ├── non_gaussian_pc.py           #   D. Skewness tensor conjunction screening
│   │   ├── data_assimilation_engine.py  #   F. Global catalog assimilation (weather model)
│   │   ├── thermospheric_model.py       #   G. ML-corrected NRLMSISE-00 density
│   │   ├── bayesian_iod.py              #   H. MCMC orbit determination for UCTs
│   │   ├── srp_estimator.py             #   I. Solar radiation pressure + HAMR detection
│   │   ├── koopman_propagator.py        #   J. EDMD linearized propagation
│   │   ├── cislunar_dynamics.py         #   K. CR3BP Lagrange points + manifolds
│   │   ├── fourier_neural_operator.py   #   L. FNO propagation surrogate
│   │   ├── spectral_characterizer.py    #   M. Multi-band material identification
│   │   └── rcs_fusion.py               #   N. Radar + optical size estimation
│   │
│   ├── core/                            # Coordinate frames, FITS, hardware
│   │   └── coordinate_frames.py         #   J2000/TEME/ITRF transforms
│   ├── data/                            # Neuromorphic event stream parser
│   ├── hardware/                        # ASCOM telescope/camera HAL
│   │
│   ├── simulate_frames.py              # Synthetic telescope frame generator
│   ├── source_extract.py               # Detection table assembly
│   ├── correlator.py                   # Mahalanobis catalog matching
│   ├── anomaly_detect.py               # Maneuver/breakup/new-object alerts
│   ├── orbit_propagator.py             # Gauss IOD + Kepler/J2 propagation
│   ├── multi_sensor_fusion.py          # Kalman filter, multi-site fusion
│   ├── conjunction_screener.py         # Foster-Estes collision probability
│   ├── observation_scheduler.py        # Priority-based telescope tasking
│   ├── autonomous.py                   # Night-cycle state machine
│   ├── cloud_ingest.py                 # Async Kafka consumer pipeline
│   ├── train_model.py                  # PyTorch training + ONNX export
│   ├── deploy.py                       # Fleet deployment orchestration
│   └── monitor.py                      # Site health monitoring
│
├── frontend/                            # VISUALIZATION & OPS CENTER
│   ├── sentinel_ops.html                #   S. Operations Center (mission ops dashboard)
│   ├── sentinel_ops.css                 #   S. Ops Center design system (1,280 lines)
│   ├── sentinel_state.js                #   Centralized system state (260 lines)
│   ├── sentinel_core.js                 #   S. Ops Center engine (2,400+ lines)
│   ├── sentinel_globe_chat.js           #   CesiumJS 3D globe + AI chat (11 knowledge domains)
│   ├── sentinel_drilldown.js            #   Network modal drill-down + site detail
│   ├── sentinel_slingshot_catalog.html   #   20-station Slingshot technology catalog
│   ├── sentinel_slingshot_catalog.js     #   Catalog grid + detail slide-over + programmer sheet
│   ├── sentinel_slingshot_technician.html #   Onsite technician field guide
│   ├── sentinel_celestrak.js            #   CelesTrak GP data integration (live satellite catalog)
│   ├── sentinel_resilience.js           #   Self-healing engine (10 subsystems, fleet resilience)
│   ├── sentinel_catalog.html            #   Object catalog search
│   ├── sentinel_portal.html             #   Engineering reference portal
│   ├── site_registry.json               #   172 ground station definitions
│   └── digital_twin.html               #   E. CesiumJS 3D globe + WebSocket
│
├── terraform/                           # INFRASTRUCTURE AS CODE
│   └── main.tf                          #   AWS EKS + MSK + RDS provisioning
│
├── models/                              # TRAINED ML ARTIFACTS
│   ├── streak_det_best.pth              #   PyTorch best checkpoint (2.5MB)
│   ├── streak_det.onnx                  #   ONNX export (opset 17)
│   └── streak_det.onnx.data             #   ONNX external weights
│
├── training_artifacts/                  # ML ENGINEERING EVIDENCE
│   ├── TRAINING_SUMMARY.md              #   Fleet-wide model comparison table
│   ├── *_model_card.md                  #   Per-model cards (arch, hyperparams, results)
│   └── *_training_log.json             #   Per-epoch loss/accuracy curves
│
└── data/                                # DOMAIN KNOWLEDGE
    ├── sentinelforge.db                 #   Task/sprint tracking database
    └── knowledge/                       #   Equations, algorithms, hardware specs

The Science & Engineering (20 SOTA Modules)

SentinelForge includes prototype implementations of twenty techniques drawn from current research in orbital mechanics, sensor physics, machine learning, applied astrophysics, site resilience, and operational engineering. They are working sketches for learning and demonstration, not validated against operational data. See SOTA_2026_EXECUTIVE_SUMMARY.md for full details.

# Module Technique What It Solves
A light_curve_analyzer.py Contrastive Transformer embeddings Satellite anomaly detection without IRL
B graph_associator.py GNN + Sinkhorn optimal transport O(N²) data association
C pinn_orbit.py Physics-Informed Neural Network Sparse-data orbit determination
D non_gaussian_pc.py Skewness tensor propagation False-alarm collision reduction
E digital_twin.html + twin_ws.py CesiumJS + WebSocket Real-time 3D visualization
F data_assimilation_engine.py Global meteorological model Space weather-coupled catalog
G thermospheric_model.py ML-corrected NRLMSISE-00 40% → 20% density error
H bayesian_iod.py Admissible Region + MCMC UCT orbit probability cloud
I srp_estimator.py SRP + A/m estimation GEO HAMR debris tracking
J koopman_propagator.py EDMD linearization Ultra-fast matrix propagation
K cislunar_dynamics.py CR3BP + Lagrange manifolds Earth-Moon tracking
L fourier_neural_operator.py Spectral convolution Single-pass orbit surrogate
M spectral_characterizer.py Multi-band color indices Satellite material ID
N rcs_fusion.py NASA SEM + optical fusion Joint radar-optical sizing
O event_stream.py Neuromorphic AER + Hough Microsecond-resolution streak detection
P catalog_lifecycle.py Finite-state machine UCT→Cataloged→Stale→Lost lifecycle
Q conjunction_decision.py Risk tier + maneuver planning Actionable conjunction response
R covariance_realism.py NEES + CCR validation Filter overconfidence detection
S sentinel_ops.html + 4 JS modules Live ops center + CelesTrak + Cesium Ion Mission ops, 3-tier field docs, live data
T sentinel_resilience.js 10-subsystem autonomic engine (simulated) Self-healing behavior for the demo network

The Pipeline

Raw CCD Frame (32 MB)
  → calibration.cu         (dark subtract, flat field, sky background)
  → streak_detect.cu       (matched filter bank, 900 filters, 5σ)
  → plate_solver.cpp       (Gaia DR3 triangle matching, WCS fit)
  → source_extract.py      (detection table assembly)
  → correlator.py          (Mahalanobis distance vs. catalog)
  → graph_associator.py    (Sinkhorn OT assignment + UCT flagging)
  → bayesian_iod.py        (MCMC orbit determination for UCTs)
  → light_curve_analyzer.py (FFT spin + contrastive fingerprint)
  → Detection package (10 KB) uploaded to cloud via Kafka
  → data_assimilation_engine.py (global catalog correction)
  → conjunction_screener.py (non-Gaussian Pc evaluation)
  → observation_scheduler.py (telescope tasking for next pass)

Performance Benchmarks

Measured on Python 3.13 / NumPy 2.4 (single-thread, no GPU). Run python run_benchmarks.py to reproduce.

Module Latency Throughput Notes
Orbit Propagator (J2–J6+Drag) 0.04 ms/orbit 25,000 obj/s Kepler + secular perturbations
Orbit Propagator (100-object batch) 0.61 ms total 163,934 obj/s Batch amortized
Conjunction Screener (Foster-Estes 2D) 4.21 ms/pair 237 pairs/s Full Pc computation + RTN covariance
Multi-Sensor Fusion (EKF) < 0.01 ms/ingest > 100K/s Extended Kalman filter track update
Observation Scheduler 0.02 ms/schedule 50,000 sched/s Priority queue + visibility check
Coordinate Transforms (J2000→TEME→ITRF) 66 µs/transform 15,151/s Precession + nutation + sidereal
Atmospheric Refraction (Bennett 1982) 0.38 µs/correction 2.6M/s Used in plate solver astrometry
Initial Orbit Determination < 0.01 ms Instant 3-obs angles-only Gauss method
Knowledge Base Search 1.15 ms/query 869 queries/s Full-text domain knowledge lookup

End-to-End Test

$ python end_to_end_test.py
[1] Knowledge Base...         PASS
[2] Orbit Propagator...       PASS (ISS at r=6778 km, v=7668 m/s)
[3] Conjunction Screener...   PASS (Pc=8.94e-02, miss=0.510 km, alert=EMERGENCY)
[4] Multi-Sensor Fusion...    PASS (1 tracks, multi-site)
[5] Observation Scheduler...  PASS (4/4 tasks scheduled)
[6] Initial Orbit Determ...   PASS (altitude=380 km, period=92 min)
RESULTS: 6/6 PASSED ✓

Quick Tour

🌐 Operations Center

Interactive 3D CesiumJS globe with 10,000+ satellites from CelesTrak live data. Click any dot — satellites show NORAD ID, orbit parameters, and classification. Ground stations show sensor type, GPU load, and network affiliation. Conjunction events open detailed modal with Pc, miss distance, escalation protocol, and maneuver decision support.

📊 Telemetry & Diagnostics

8 real-time gauges with mean-reverting drift simulation. Priority reacquisition queue for stale/lost objects. SOTA module health monitoring with latency tracking. Dynamic alert system with toast notifications and drill-down escalation tiers.

💻 Programmer's Terminal (Gemini NLU)

Embedded terminal with 3-layer intelligence: direct commands, regex NLP, and Gemini 2.5 Flash LLM reasoning. Type natural language — "show me the orbit code" — and it translates to the correct command. Serverless backend on Vercel with 3-model fallback chain for resilience.

📋 3-Tier Field Documentation

Tier 1: Site Tech Catalog → Tier 2: Technician Upgrade Sheet → Tier 3: Programmer Integration Reference. Each tier drills down from the previous with back-navigation. Built for analysts, field techs, and remote software engineers respectively.


Quick Start

Option A: Live Demo (Instant — No Setup)

Visit the hosted Operations Center at sentinelforge.vercel.app — zero install, zero login.

Page URL
Operations Center sentinelforge.vercel.app/sentinel_ops.html
Slingshot Catalog sentinelforge.vercel.app/sentinel_slingshot_catalog.html
Object Catalog sentinelforge.vercel.app/sentinel_catalog.html
Engineering Portal sentinelforge.vercel.app/sentinel_portal.html
Technician Guide sentinelforge.vercel.app/sentinel_slingshot_technician.html

Option B: Run Locally

# 1. Clone
git clone https://github.com/KARLalpha4768/SentinelForge.git
cd SentinelForge

# 2. Install Python dependencies (standard pip — no C++ build required)
pip install -r requirements.txt

# 3. Verify — runs the full pipeline integration test
python main.py              # Shows CLI banner
python end_to_end_test.py   # Runs 6 module tests — expect "6/6 PASSED"

# 4. Run science modules independently (each has a built-in self-test)
cd output/builds/src/science/
python light_curve_analyzer.py      # → "All tests passed" + spin/embedding/classification
python graph_associator.py          # → "All graph associator tests passed"
python bayesian_iod.py              # → MCMC orbit determination
python koopman_propagator.py        # → EDMD linearized propagation
python cislunar_dynamics.py         # → CR3BP Lagrange points + manifolds
python data_assimilation_engine.py  # → Global catalog assimilation
cd ../../../..

# 5. Launch Operations Center (ZERO build steps — pure static HTML/JS)
cd frontend/
python -m http.server 9876
# Open http://localhost:9876/sentinel_ops.html
#
# What you'll see:
#   → CesiumJS 3D globe with 172 ground stations
#   → CelesTrak fetches LIVE satellite catalog (~10K objects) within 3 seconds
#   → Catalog count turns GREEN when live data is active
#   → Hover any ground station → rich tooltip with sensor specs
#   → Click through: Site Tech Catalog → Technician Sheet → Programmer Sheet
#   → Real-time gauge drift, alert toasts, conjunction panels
#   → Console shows: [CelesTrak] and [Resilience] log messages

# 6. Launch Digital Twin (optional — requires FastAPI)
pip install fastapi uvicorn websockets
uvicorn src.api.twin_ws:app --port 8001
# Open frontend/digital_twin.html in browser

Note: The Operations Center (sentinel_ops.html) requires no npm, no node, no build step. It is pure HTML/CSS/JS served by any static file server. CesiumJS loads from CDN. CelesTrak data is fetched client-side with zero authentication.


Tech Stack

Layer Technology
Edge Inference C++/CUDA targeting NVIDIA Jetson AGX Orin (reference code)
Cloud Backend FastAPI + Async Kafka + PostgreSQL/PostGIS
ML Framework PyTorch + ONNX + TensorRT
Visualization CesiumJS 3D globe + WebSocket (1Hz streaming)
Live Data CelesTrak GP catalog (10,000+ active satellites, no auth)
Self-Healing 10-subsystem autonomic engine, simulated in the ops center (watchdog, circuit breaker, canary deploy)
Orchestration Kubernetes (EKS) + Docker
Infrastructure Terraform (AWS EKS/MSK/RDS)
CI/CD GitHub Actions
Monitoring Prometheus + Grafana + PagerDuty

ML Training Pipeline

SentinelForge defines 5 model architectures. One is trained; the other four are reference designs:

Model Architecture Status
streak_detection_cnn Conv2d(1-32-64-128)+FC Trained on synthetic cutouts; checkpoint and ONNX export in models/
pinn_orbit_j2drag MLP+PhysicsLoss(J2-J6+Drag) Reference architecture, not trained
contrastive_lightcurve Transformer(d=128,h=4,L=3) Reference architecture, not trained
fno_propagator FourierLayer x4 Reference architecture, not trained
thermospheric_corrector MLP residual on NRLMSISE-00 Reference architecture, not trained

About output/training_artifacts/: those model cards, training logs and benchmark files are produced by generate_training_artifacts.py from preset values. They show the intended reporting format and target metrics, not results from actual training runs. Run train_model.py to get real metrics for the streak-detection CNN.

ONNX export uses opset 17; TensorRT compilation targets Jetson AGX Orin (sm_87).

# Train the streak detection model (generates .pth + .onnx)
python output/builds/src/train_model.py

# Generate model cards and training logs for all models
python output/builds/src/generate_training_artifacts.py

The models/ directory contains the trained .pth checkpoint and .onnx export from the streak detection CNN.


C++/CUDA Build System

The edge inference pipeline compiles with CMake (CUDA Toolkit >= 11.8):

cd output/builds/src
mkdir build && cd build
cmake .. -DCMAKE_CUDA_ARCHITECTURES=87  # sm_87 = Jetson AGX Orin
make -j$(nproc)

Targets: calibration.cu (flat-field + dark), streak_detect.cu (Hough + morphological), plate_solver.cpp (triangle matching + WCS), photometry.cpp (aperture + PSF fitting).


Site Resilience & Self-Healing

The ops center simulates a 10-subsystem autonomic recovery engine: a design for how a ground-station network could recover from common faults without manual intervention. The uptime figure shown in the dashboard is a simulation value, not a measured result.

# Subsystem What It Does Recovery Time
1 🐕 Watchdog Timer Hardware WDT reboots edge node if kernel heartbeat stops 45-90s
2 🔄 Process Supervisor systemd auto-restarts crashed services 5-15s
3 🌡️ GPU Thermal Governor Auto-throttles at 85°C, stops at 95°C, resumes at 75°C 2-10 min
4 💾 Disk Pressure Relief LRU purge of raw frames at 90% disk usage Instant
5 📡 Network Failover Starlink → LTE → VSAT → store-and-forward 5-30s
6 ⚡ Pipeline Circuit Breaker ML inference fallback to classical detection at >5% error 5-15 min
7 🔬 Auto-Calibration Nightly flat-field + dark cycle, self-adjusting gain 20 min
8 🔒 Immutable Boot Read-only squashfs root — reboot = clean state 90-120s
9 🐤 Canary Deployment Roll to 1 site → 24h hold → cascade (auto-rollback on anomaly) < 2 min
10 ☠️ Dead Man's Switch 3 missed heartbeats → PagerDuty P1 + IPMI wake Variable

Redundancy layers: N+1 sensor overlap, hot-spare edge nodes, dual power (grid + LiFePO4 + solar), hourly config snapshots, DNS failover, 3× Kafka replication.


Live Data Integration

CelesTrak GP Catalog

The Ops Center fetches real satellite orbital elements from CelesTrak's public API on page load:

  • Active satellites, space stations, brightest objects, recent launches
  • Classified by orbit regime (LEO/MEO/GEO/HEO) and type (Starlink, OneWeb, Kuiper, debris, R/B)
  • Updates the command bar catalog count with live data (green = real)

Cesium Ion 3D Globe

Interactive 3D Earth with ground stations, orbital shells, and conjunction events. Authenticated via Cesium Ion token.


Ops Center — Ground Station UX Flow

Hovering and clicking on any of the 172 ground stations in the map opens a three-tier deep-dive documentation system:

┌─────────────────────────────────────────────────────────────────────────┐
│  2D MAP: 172 ground stations (color-coded by status)                   │
│  ● green = active   ● amber = degraded   ● red = offline              │
│  Slingshot sites pulse yellow when tracking conjunction events          │
│                                                                         │
│  HOVER over any dot →                                                   │
│  ┌──────────────────────────────────────────────────┐                   │
│  │ Rich Tooltip: site name, coords, sensor type,    │                   │
│  │ detection rate, GPU load, network, status         │                   │
│  │ [📋 TECHNICIAN SHEET]  [🔧 View Tech Catalog]    │                   │
│  └──────────┬───────────────────────┬───────────────┘                   │
│             │ click                  │ click                             │
│             ▼                        ▼                                   │
│  ┌─── Tier 1 ───────────┐  ┌─── Tier 2 ───────────────┐               │
│  │ Site Tech Catalog     │  │ Technician Upgrade Sheet  │               │
│  │ Sensor specs, network │  │ Checklists, upgrade tasks │               │
│  │ detection inventory   │  │ tools/parts, sign-off     │               │
│  │ [📋 TECH SHEET →]     │  │ [🖥 PROGRAMMER SHEET →]   │               │
│  └───────────────────────┘  └──────────┬────────────────┘               │
│                                        │ click                          │
│                                        ▼                                │
│                             ┌─── Tier 3 ───────────────┐               │
│                             │ Programmer Integration    │               │
│                             │ Role matrix, deploy flow  │               │
│                             │ Slingshot alignment,      │               │
│                             │ self-healing, observability│               │
│                             └───────────────────────────┘               │
└─────────────────────────────────────────────────────────────────────────┘
Tier Modal Audience Content
1 Site Tech Catalog Executives / Analysts Sensor specs, data network, detection inventory, operational status
2 Technician Upgrade Sheet Field Technicians Pre-visit checklists, upgrade tasks, tools/parts, post-upgrade validation
3 Programmer Integration Sheet Software Engineers Role matrix, deployment workflow, Slingshot alignment, self-healing, observability

All tiers have back-navigation links to traverse the hierarchy in either direction.


Testing & Verification

SentinelForge ships a 25-test pytest suite covering orbital mechanics, science modules, and frame processing:

# Run all tests (requires numpy, scipy)
python tests/test_science_modules.py

# Or via pytest with coverage
pip install pytest pytest-cov
pytest tests/test_science_modules.py -v --cov=output/builds/src/science

Test coverage areas:

  • Kepler equation solver, J2-J6 perturbation hierarchy, orbital energy conservation
  • Collision probability bounds, Kalman filter convergence, miss distance units
  • Observation scheduling priority ordering, visibility windowing
  • Admissible region bounds, eccentricity range, DMD eigenvalue stability
  • CR3BP Lagrange points, Jacobi constant conservation
  • WGS-84 parameter consistency, rotation matrix orthogonality
  • Frame calibration noise reduction, source extraction, photometric magnitude ordering

Performance Benchmarks

python benchmarks/benchmark_science.py

Measured on Intel Core i7 / Python 3.13 (CPU-only — GPU benchmarks require Jetson Orin):

Benchmark Mean (ms) Std (ms) Status
Kepler Solver (1K objects) 23.4 1.8 ✅
J2 Secular Perturbation (1K objects) 8.6 0.6 ✅
6×6 Covariance Prop (100 objects) 1.8 0.1 ✅
Conjunction Screening (100 pairs) 2.0 0.2 ✅
EKF Update (500 iterations) 22.2 1.5 ✅
Matched Filter (512×512, 8 angles) 14.2 0.4 ✅
Triangle Plate Solve (100 stars) 3.2 0.4 ✅
Light Curve FFT (100 curves) 7.8 0.4 ✅

All benchmarks run with 2 warmup iterations + 10 timed runs. Results saved to benchmarks/benchmark_results.json.


Real Frame Processing

SentinelForge includes a complete image processing pipeline that runs against real astronomical data:

python process_real_frame.py

Pipeline stages: Calibration (bias, dark, flat, background) → Source Extraction (sigma-clipped detection) → Streak Detection (elongation analysis) → Astrometric Plate Solve (WCS + SIP) → Photometric Calibration (aperture photometry + zeropoint).

Downloads a real HST/WFPC2 FITS frame from NASA GSFC, or generates a synthetic 2048×2048 frame with 200 injected stars and 5 satellite streaks. Outputs: source catalog with RA/Dec, calibrated magnitudes, and streak candidates.


ASCOM Hardware Abstraction Layer

The ASCOM HAL (output/builds/src/hardware/ascom_hal.py) is an observatory-control layer that runs in simulation mode by default (it can also drive ASCOM simulator devices on Windows):

python output/builds/src/hardware/ascom_hal.py

Subsystems: Direct-drive mount (PlaneWave L-500 class, 8°/s slew, 5°/s LEO tracking), sCMOS camera (ZWO ASI6200MM Pro, 9576×6388, 1.2e⁻ read noise), filter wheel (BVRI+Clear), motorized focuser (V-curve autofocus), dome control (weather-gated), weather station (wind/humidity/rain safety interlock).

LEO Tracking Benchmark (simulated):

Altitude (km) Angular Rate (°/s) Trackable?
200 1.942 ✅ Yes
420 (ISS) 0.914 ✅ Yes
800 0.471 ✅ Yes
2000 0.178 ✅ Yes

Note: The C++/CUDA edge pipeline (streak_detect.cu, calibration.cu, plate_solver.cpp, photometry.cpp) targets NVIDIA Jetson AGX Orin (sm_87, CUDA 11.8+). The CMake build requires the CUDA Toolkit and Jetson hardware. The Python science modules and frame processing pipeline are fully executable on any platform.


Author

Karl David — Rochester, NY (LinkedIn)

A personal project, built independently of my work at Kham Enterprises. I set the goals and architecture and directed a team of 20 AI agents that generated, tested, reviewed and documented the code. The aim was to see how far one person could take a complex engineering system with agent orchestration, and to learn the space-surveillance workflow end to end: detect, track, identify, characterize, screen, and task.


License

Proprietary. All rights reserved. For evaluation and interview demonstration purposes only.

About

Space-domain-awareness architecture demo: Python pipelines on live CelesTrak data, FastAPI/WebSocket, Terraform (AWS EKS/MSK/RDS), Docker, CI, CesiumJS ops center

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages