Skip to main content

ReadLIGO

This module provides tools for reading LIGO data files. Data along with supporting documentation can be downloaded from the GWOSC web site.

! Notice
This module has been deprecated and we recommend using GWPy instead.
We keep this module public for archival reasons only. No further development is planned.

Installation

To install download the repo and install with pip

git clone https://git.ligo.org/gwosc/readligo.git; cd readligo
pip install .

Documentation

Some possible use cases are shown below.

Example 0

To load all data from a single file:

strain, time, dq = rl.loaddata("ligo_data/H-H1_LOSC_4_V1-842653696-4096.hdf5", "H1")

Some GWF files require parameters to name the strain, DQ, and hardware injection channel:

strain, time, dq = rl.loaddata(
    "H-H1_LOSC_16_V1-1127415808-4096.gwf",
    "H1",
    strain_chan="H1:GWOSC-16KHZ_R1_STRAIN", 
    dq_chan="H1:GWOSC-16KHZ_R1_DQMASK",
    inj_chan="H1:GWOSC-16KHZ_R1_INJMASK"
)

Example 1

This default configuration assumes that the needed LIGO data files are available in the current working directory or a subdirectory. LIGO data between the input GPS times are loaded into STRAIN. META is a dictionary of gps start, gps stop, and the sample time. DQ is a dictionary of data quality flags.

segList = getsegs(842657792, 842658792, 'H1')
for (start, stop) in segList:
  strain, meta, dq = getstrain(start, stop, 'H1')
  # -- Analysis code here
  ...

Example 2

In Example 2, H1_segs.txt is a segment list downloaded from the GWOSC web site using the Timeline application. This may be used in the same manner as segList in example 1.

segList = SegmentList("H1_segs.txt")

Example 3

In this example, the first command searches the indicated directory and sub-directories for LIGO data files. This list of data files is then used to construct a segment list and load the requested data.

filelist = FileList(directory="/home/ligodata")
segList = getsegs(842657792, 842658792, "H1", filelist=filelist)
for start, stop in segList:
  strain, meta, dq = getstrain(start, stop, "H1", filelist=filelist)
  # -- Analysis code here

Segment Lists

Segment lists may be downloaded from the GWOSC web site using the Timeline Query Form or constructed directly from the data files.

Read in a segment list downloaded from the Timeline application on the GWOSC web site with SegmentList.

from readligo import SegmentList
seglist = SegmentList("H1_segs.txt")

Or Construct a segment list directly from the LIGO data files with getsegs.

from readligo import getsegs
seglist = getsegs(842657792, 842658792, 'H1', flag='DATA', filelist=None)

Metadata

Release files for readligo 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for readligo 0.6.1
File Size Uploaded Provenance Actions
readligo-0.6.1.tar.gz 8.0 kB Without provenance Details for readligo-0.6.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for readligo 0.6.1
File Interpreter ABI Platform Actions
readligo-0.6.1-py3-none-any.whl Python 3 none any Details for readligo-0.6.1-py3-none-any.whl

Total release size: 16.8 kB

Release files / readligo-0.6.1.tar.gz

Download URL readligo-0.6.1.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c07baaf7febac6406d6ad566d116d6dee7b219492a12d19f02b93b3e3c967f4b
BLAKE2b-256 checksum
How to use checksums
d03c3fe25867b26478420b798e99e40b11c7e8457efd13fa42899100c87f05ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release files / readligo-0.6.1-py3-none-any.whl

Download URL readligo-0.6.1-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
294ab78c7da9dc20f1c2ddbe1c5550f10caf334860ecca4d3293474b74f33f4e
BLAKE2b-256 checksum
How to use checksums
d6182edbe78d9bbfee8638302fdf75caf4594679d801b3558d7906bdac3bb70a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Security for readligo 0.6.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.6.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page