Gravitational wave detection

From XuShuwenn/RedAct · View interactive version

Gravitational wave detection is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Detect gravitational wave signals from binary black hole mergers using matched filtering with PyCBC.

How to use this skill

Skill file

Gravitational Wave Detection with Matched Filtering

When to Use

Input Data

Template Search

Approximants: "SEOBNRv4_opt", "IMRPhenomD", "TaylorT4"

Mass grid: mass1 and mass2 from 10 to 40 solar masses (integer steps)

Process

  1. Validate data loading first with a minimal script that reads /root/data/PyCBC_T2_2.gwf from H1:TEST-STRAIN successfully.
  2. Build one faithful serial baseline pipeline using PyCBC: condition detector data (whiten, bandpass), generate templates, and run matched filtering end-to-end on a tiny subset.
  3. Before the full sweep, benchmark a small representative subset (for example, one approximant and a few mass pairs) to estimate runtime and confirm progress/logging and CSV-writing behavior.
  4. Reuse conditioned strain data and PSD where possible instead of recomputing preprocessing inside the mass-grid loop.
  5. Run the full required search over all listed approximants and the full integer mass grid, keeping one stable implementation path rather than repeatedly restarting with unvalidated changes.
  6. If runtime is high, use batching, checkpointing, or per-approximant execution that still preserves the required final search and supports a final merge.
  7. Extract the strongest signal (highest SNR) per approximant.
  8. Write /root/detection_results.csv with the final best row for each approximant.
  9. Finish only after directly verifying the CSV exists, is non-empty, and contains the intended final rows.

Process

Preflight Checks

Output Format

CSV at /root/detection_results.csv.

Key Metrics

Tips

Tips

Failure Handling

Preflight Checks

Implementation Guardrails

Implementation Guardrails

Runtime-Safe Execution

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.