How aatyaa/grwu works
GRWU is an interactive educational site for gravitational-wave data analysis, paired with a Python pipeline that prepares real and synthetic detector datasets. The main reader journey is through workshop-aligned articles and browser-based analysis; the README describes three learning depths, while the sampled runtime shows DSP and Python execution in workers. Pipeline call relationships come from the source index and excerpts. Some page-to-component wiring and data-loading details were not sampled, so those links are omitted.
Main entry points: synthetic.py Synthetic dataset · welch.ts Welch PSD · gwosc_data.py GWOSC event fetch · dataset.ts Dataset loader
Components 20
Learning site
- Workshop articles
src/content/articles/hidden-in-the-noise/index.mdx - Curriculum metadata
src/content.config.ts - Site pages and layouts
src/pages
Browser analysis
- Dataset loader
src/lib/data/dataset.ts - DSP worker
src/lib/workers/dsp.worker.ts - Welch PSD
src/lib/dsp/welch.ts - Real FFT
src/lib/dsp/fft.ts - Hann window
src/lib/dsp/window.ts - Python worker
src/lib/workers/python.worker.ts - Python execution
src/lib/python/run.ts - Pyodide config
src/lib/python/config.ts
Dataset pipeline
- Pipeline CLI
pipeline/grwu_pipeline/cli.py - GWOSC event fetch
pipeline/grwu_pipeline/gwosc_data.py - Synthetic dataset
pipeline/grwu_pipeline/synthetic.py - Toy chirp model
pipeline/grwu_pipeline/chirp.py - Noise generation
pipeline/grwu_pipeline/noise.py - Dataset writer
pipeline/grwu_pipeline/dataset.py
Published data
- GW event files
public/data/events/GW150914 - Toy chirp files
public/data/synthetic/toy-chirp
Other components
- Reader
Connections 19
- Reader → Workshop articles: reads
README.md - Reader → Site pages and layouts: uses
README.md - Workshop articles → Curriculum metadata: follows tracks
src/content.config.ts - Pipeline CLI → GWOSC event fetch: dispatches
pipeline/grwu_pipeline/cli.py - Pipeline CLI → Synthetic dataset: dispatches
pipeline/grwu_pipeline/cli.py - GWOSC event fetch → Dataset writer: writes datasets
pipeline/grwu_pipeline/gwosc_data.py - Synthetic dataset → Toy chirp model: generates signal
pipeline/grwu_pipeline/synthetic.py - Synthetic dataset → Noise generation: generates noise
pipeline/grwu_pipeline/synthetic.py - Synthetic dataset → Dataset writer: writes datasets
pipeline/grwu_pipeline/synthetic.py - Toy chirp model → Noise generation: uses PSD type
pipeline/grwu_pipeline/chirp.py - GWOSC event fetch → GW event files: exports files
- Synthetic dataset → Toy chirp files: exports files
- DSP worker → Welch PSD: calls
src/lib/workers/dsp.worker.ts - Welch PSD → Real FFT: calls
src/lib/dsp/welch.ts - Welch PSD → Hann window: uses
src/lib/dsp/welch.ts - Python worker → Pyodide config: loads runtime
src/lib/workers/python.worker.ts - Python worker → Python execution: runs code
src/lib/workers/python.worker.ts - Dataset loader → GW event files: reads data
- Dataset loader → Toy chirp files: reads data