SegmentTable๏ƒ

Stability: Stable

What it is๏ƒ

Use SegmentTable to store or manipulate time segments together with metadata needed for data-quality and analysis windows.

Representative Signatures๏ƒ

SegmentTable.from_segments(segments, **kwargs)
SegmentTable.plot(**kwargs)

Minimal Example๏ƒ

from gwexpy.table import SegmentTable

segments = SegmentTable.from_segments([(0, 1), (2, 3)])
plot = segments.plot()

API Reference๏ƒ

The detailed generated API continues below on this page.

Inherits from: GWpy table documentation

A container for time segments and associated metadata, extending the standard GWpy/Astropy Table functionality.

Overview๏ƒ

SegmentTable is designed to store lists of segments (start and end times) along with arbitrary columns of metadata (e.g., flags, process IDs, or amplitude values). It provides specialized methods for segment intersection, union, and plotting.

Methods๏ƒ

read๏ƒ

read(source, format=None, **kwargs)

Read a SegmentTable from a file.

write๏ƒ

write(target, format=None, **kwargs)

Write the SegmentTable to a file.

plot๏ƒ

plot(**kwargs)

Visualize the segments in the table.

API Reference๏ƒ

.. currentmodule:: gwexpy.table

.. autoclass:: SegmentTable :members: :show-inheritance: