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): theClusterwith pixels and metadata.skymap_statistics.json(save_sky_map):SkyMapStatistics, the per-direction sky arrays (nLikelihood,nProbability, …) andl_max.PNGs:
likelihood_mapandnull_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.jsonrecords 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 |
|
|
Time, shifts |
|
GPS s; offsets and shifts in s; |
Signal |
|
Hz, s; see First-detector columns |
Ranking |
|
cWB |
Energies, pixels |
|
cWB |
Sky |
|
|
Reconstruction |
|
|
Chirp, FAR |
|
0 unless estimated (below); |
Simulation |
|
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.
catalog.parquetand its job list: statistics and XGBoost features;lag_idx, shift columns and per-job shifts separate zero lag and drive train/FAR splits (pycwb.modules.postprocess.selection.trigger_selection()).progress.parquet: livetime per (job, trial, lag). Exposure comes from these rows, so lags and jobs without triggers still count.simulations.parquet: one row per injection, frompycwb simulation-summary(defaultcatalog/simulations.parquet).wave.h5: only for the waveform report (pycwb.modules.postprocess.waveform_report.generate_waveform_report()), which needssave_waveformandsave_injection.
Implementation¶
pycwb.types.network_event.Event.output_py()fills cWB-style arrays from a cluster;pycwb.types.trigger.Trigger.from_event()names them.pycwb.modules.catalog.catalog.Catalogappends catalog and progress rows under a soft file lock with atomic replacement;pycwb.modules.workflow_utils.trigger_utils.save_trigger()andpycwb.workflow.subflow.postprocess_and_plots.add_wf_to_wave()write the folder JSON and HDF5 groups.pycwb.workflow.execution.writer.OutputWriteracknowledges segment output only after durable writes;pycwb.workflow.mergeimplementspycwb merge.
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 |
|---|---|---|
|
|
Directories for catalogs, trigger folders and the wave file |
|
|
Write |
|
|
Write |
|
|
Store REC/DAT/NUL and injected (INJ) waveforms in the wave file |
|
|
Write the PNGs listed under Trigger folders |
|
|
Plot conditioned detector-data spectrograms with the native CPU processor |
|
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 progressn_triggers; fewer means a failed conversion or write (see the job log).Catalog.triggers()drops duplicate rows;pandas.read_parquetdoes not.Merged and traceable: after a batch run, check that
catalog.parquetholds every fragment’s rows and thatCatalog.open(path).jobsloads.Zero lag: rows with all
time_lag_<ifo>andsegment_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