Event Output

This guide explains what the search writes for each accepted trigger and each processed lag: the Parquet trigger catalog, per-trigger folders, the waveform file and the progress file, plus batch merging and what postproduction reads.

Why this matters

Postproduction reads these files, not the in-memory events. Knowing which columns are placeholders and how progress rows relate to catalog rows tells an empty lag from a failed one, and a measured zero from a value never computed.

What Is Written and When

<workdir>/
├── catalog/
│   ├── catalog.parquet       # one row per accepted trigger
│   ├── jobs.parquet          # immutable job manifest of the master catalog
│   ├── progress.parquet      # one row per completed or skipped lag
│   └── fragment/             # batch: catalog_<id>.parquet, progress_<id>.parquet
├── trigger/
│   └── trigger_<job_id>_<trial_idx>_<stop>_<hash>/
│       ├── cluster.json            # save_cluster
│       ├── skymap_statistics.json  # save_sky_map
│       ├── plot_products.json      # optional plot descriptors
│       └── *.png                   # plot_* flags
└── output/
    └── wave.h5               # save_waveform / save_injection (batch: wave_<id>.h5)

Run setup creates an empty catalog.parquet (resolved configuration and pycWB version in its schema metadata) and jobs.parquet. Then, for every lag of every trial, the native workflow (pycwb.workflow.subflow.process_job_segment_native) writes the trigger folders and reconstructs the waveforms. Reconstruction always runs, because q_veto and q_factor (minima over detectors, from the whitened reconstructed data and signal) need it; simulations also reconstruct the injection. Each event is appended as a Trigger, and one progress row records the lag’s trigger count and post-veto livetime.

In pycwb run and batch runs one writer process handles all catalog, progress and waveform writes and flushes buffered triggers before each progress row, so a progress row means its lag’s triggers are in the catalog. When a batch job restarts, lags with a progress row are skipped and triggers of (trial, lag) pairs without one are removed first. Progress columns and pycwb progress are under Progress Tracking in Job Control.

Trigger folders

The folder name reuses the stop time (first detector’s event_stop) and hash that end the catalog id, <job_id>_<trial_idx>_<lag_idx>_<stop>_<hash>, so every catalog row leads to its folder.

  • cluster.json (save_cluster): the Cluster with pixels and metadata.

  • skymap_statistics.json (save_sky_map): SkyMapStatistics, the per-direction sky arrays (nLikelihood, nProbability, …) and l_max.

  • PNGs: likelihood_map and null_map (plot_trigger), one per sky array (plot_sky_map), <ifo>_wf_REC/DAT/NUL[_whiten] (plot_waveform) and <ifo>_wf_INJ[_whiten] (plot_injection).

  • Detector spectrogram PNGs (plot_spectrogram): event-centered and/or complete analyzed-segment views of the already conditioned, whitened detector data, including surrounding noise. plot_products.json records their labels, detector, scope, physical GPS bounds, frequency scale and transform settings. These are distinct from the reconstructed-cluster likelihood/null maps.

With the defaults a folder holds only cluster.json; with save_cluster: false and nothing else enabled, no folders are created.

Detector-data spectrograms

Enable plot_spectrogram in a normal analysis configuration or in the same YAML partial passed to --override-profile for an event-only display run:

plot_spectrogram: true
spectrogram_options:
  views: [event, segment]
  event_padding: [1.0, 0.1]
  frequency_scale: [linear, log]

This native CPU plotting stage reads the existing full whitened detector buffer after the selected event is matched. It does not recondition data, change the whitening interval, or change event selection. Segment views exclude segEdge and retain detector-frame physical GPS times. Event zooms undo the analysis time lag; circular-wrap support is stitched from the same detector buffer, with the original physical sample intervals recorded in the manifest. Segment images are computed once per detector, segment and trial during a worker execution and reused across its triggers. Each trigger folder receives a portable hard link or copy, so its page remains self-contained when published.

The default transform uses nfft: 2048, hop: 10, window: gauss and gaussian_alpha: 24.0, following the cWB CED Gaussian-window settings. The window has unit RMS; normalized tile energy is abs(FFT(whitened_data * window))**2 / nfft, with expectation one for unit white noise. DC and Nyquist are represented separately. These plots are normalized energy, not strain amplitude or a strain ASD. frequency_min and frequency_max default to the analysis fLow and fHigh within the available FFT band. Configure them explicitly to narrow the display, without changing the analysis band.

All transform frames are evaluated. To bound plot memory and file size, max_time_bins: 1600 and max_frequency_bins: 1024 reduce the rendered image using the maximum energy in adjacent tiles when needed. These limits affect the displayed image only. Transform and rendering settings are recorded in plot_products.json for inspection and reproducibility.

Waveform file

save_waveform and save_injection write one HDF5 file in outputDir (wave.h5 locally, wave_<id>.h5 per batch fragment). Each trigger is a group named by its hash, the last part of id. Datasets are <ifo>_wf_REC (reconstructed signal), <ifo>_wf_DAT (signal plus noise) and <ifo>_wf_NUL (DAT − REC), each also as _whiten, plus <ifo>_wf_INJ[_whiten] with save_injection. Datasets carry sample_rate and start_time attributes.

Batch fragments and provenance

Batch workers write catalog/fragment/catalog_<id>.parquet and progress_<id>.parquet, with the job list inline because fragments travel without the run manifest. pycwb merge --work-dir <run> concatenates them into catalog.parquet and progress.parquet (--mlabel <label> writes catalog.<label>.parquet and progress.<label>.parquet). It keeps the master catalog’s provenance, rejects fragments whose job descriptions conflict with it, and asks before replacing rows of a non-empty master catalog. pycwb merge --wave separately combines output/wave_*.h5 into output/wave.h5. Provenance and transfer rules are in Catalog format and provenance.

Catalog Columns

The row schema is pycwb.types.trigger.Trigger.arrow_schema() for the configured ifo list. Per-detector quantities are flat <field>_<ifo> columns (time_H1, hrss_L1, …) in ifo order: 53 network columns, 23 per detector and one injection struct, i.e. 100 columns for H1–L1. GPS times are float64, most statistics float32. Definitions are in Likelihood; pycwb.types.trigger.Trigger documents each field and its cWB name.

Group

Columns

Notes

Identification

id, job_id, trial_idx, lag_idx, cluster_id, event_index, n_detectors, ifo_list, hybrid

hybrid is false for native output

Time, shifts

gps_time, time_<ifo>, event_start_<ifo>, event_stop_<ifo>, segment_start_<ifo>, left_edge_<ifo>, right_edge_<ifo>, time_lag_<ifo>, segment_lag_<ifo>

GPS s; offsets and shifts in s; gps_time = first detector’s time

Signal

central_freq_<ifo>, freq_low_<ifo>, freq_high_<ifo>, bandwidth_<ifo>, duration_<ifo>, sample_rate_<ifo>

Hz, s; see First-detector columns

Ranking

rho, rho_alt, net_cc, sky_cc, subnet_cc, subnet_cc2, penalty, likelihood

cWB rho[0..1], netcc[0..3]; penalty: \(\chi^2\)/nDoF

Energies, pixels

coherent_energy, net_null, net_energy, …; data_energy_<ifo>, signal_energy_<ifo>, …; n_pixels_*, …

cWB snr, sSNR, null per detector; data_energy ≈ SNR²

Sky

ra, dec, phi, theta, phi_det, theta_det, psi, iota, sky_error_regions, fp_<ifo>, fx_<ifo>

ra/dec/phi/theta in degrees (phi/theta Earth-fixed); sky_error_regions: 11 entries (cWB erA), NaN if unavailable

Reconstruction

hrss_<ifo>, strain, noise_rms_<ifo>, q_veto, q_factor

strain is the network hrss; noise_rms is in strain/√Hz

Chirp, FAR

mchirp, mchirp_err, chirp_ellip, chirp_pfrac, chirp_efrac; ifar

0 unless estimated (below); ifar stays 0 in search output

Simulation

injection (struct)

Null for background; no other column is null in search output

First-detector columns. As in cWB, the first detector’s slot holds a network value: central_freq is the reconstructed waveform’s centroid, and bandwidth and duration are energy-weighted over all resolutions. The other detectors hold pixel-based values.

Chirp mass. Original-2G rho uses Hough fitting; XGB rho uses the micropixel estimator for Search in CBC/BBH/IMBHB. Both require optim false and an eligible lower-case cfg_search in iecrpblsg; otherwise fields are reset. Both estimators populate mass, merger time, errors and morphology using the explicit run seed. A zero field from an ineligible or failed estimate is not an estimated physical value. See Native calculation conventions.

Injections. An injection is attached when its gps_time lies within 0.1 s of the first detector’s [event_start, event_stop]. The InjectionParams struct holds typed fields (name, hrss, gps_time, ra and dec in radians, …), per-detector lists (snr_sq, rec_snr_sq, …) and parameters, the injection dictionary as JSON (Units and Conventions). A null injection does not prove a miss; postproduction matching decides recovery.

What Postproduction Reads

These are the inputs of Training Set Preparation; Reading and Analyzing Results shows how to inspect them.

Implementation

cWB-2G correspondence

cWB-2G stored events in the waveburst tree of its wave*.root files and per-lag exposure in the liveTime tree; pycWB writes catalog.parquet and progress.parquet, with trigger folders and plots in place of CED pages (Migration from cWB). Positional arrays become named columns (rho[0] → rho, rho[1] → rho_alt, netcc[0] → net_cc, phi[2] → ra, time[ifo] → time_<ifo>). ROOT results convert with pycwb.modules.catalog.convert_root.convert_root_to_catalog() or load into postproduction with pycwb.modules.postprocess.root_adapter.read_cwb_root() (cWB ROOT input and same-trigger cross-checks).

Configuration

Parameter

Default

Meaning

catalog_dir, trigger_dir, outputDir

catalog, trigger, output

Directories for catalogs, trigger folders and the wave file

save_cluster

true

Write cluster.json

save_sky_map

false

Write skymap_statistics.json

save_waveform, save_injection

false

Store REC/DAT/NUL and injected (INJ) waveforms in the wave file

plot_trigger, plot_waveform, plot_injection, plot_sky_map

false

Write the PNGs listed under Trigger folders

plot_spectrogram

false

Plot conditioned detector-data spectrograms with the native CPU processor

spectrogram_options

Event/segment views; 1 s/0.1 s padding; linear/log frequency

Optional view, FFT, frequency-bound and rendering-limit settings above

pycwb run --plot turns on save_waveform, save_sky_map, plot_trigger, plot_waveform and plot_sky_map for that run.

Inspect saved products

  • Progress first: run pycwb progress --work-dir <run>. A missing (job, trial, lag) row means that lag failed, was interrupted or never ran.

  • Rows match counts: catalog rows per (job_id, trial_idx, lag_idx) should equal progress n_triggers; fewer means a failed conversion or write (see the job log). Catalog.triggers() drops duplicate rows; pandas.read_parquet does not.

  • Merged and traceable: after a batch run, check that catalog.parquet holds every fragment’s rows and that Catalog.open(path).jobs loads.

  • Zero lag: rows with all time_lag_<ifo> and segment_lag_<ifo> zero are physical zero lag and must stay out of the background.


See also: Pipeline Lifecycle · Catalog format and provenance · Reading and Analyzing Results

Next: Background Estimation — postproduction starts by estimating the background from these catalogs