LIGO Scientific Collaboration Algorithm Library - minimal Python package

7.26.4 · active · verified Wed Apr 15

LALSuite is the LIGO Scientific Collaboration Algorithm Library for gravitational-wave analysis. Its primary purpose is searching for and characterizing astrophysical signals in gravitational-wave time series data, particularly data from ground-based detectors such as LIGO and Virgo. This Python package provides a standalone, dependency-free binary distribution of the libraries and Python modules in LALSuite for Linux and macOS. Current version is 7.26.4, with underlying C components (like LAL, LALSimulation) also updated regularly.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to import the `GPSTime` class from the `lal` module and instantiate a GPS time object. LALSuite offers a wide range of functionalities for gravitational-wave data analysis, including signal generation (e.g., via `lalsimulation`), data manipulation, and parameter estimation. Further examples would involve specific physics computations.

from lal import GPSTime

# Create a GPSTime object representing a specific GPS second
try:
    gps_time = GPSTime(1126259642.4) # Example GPS time
    print(f"Created GPSTime object: {gps_time}")
    print(f"Year of GPS time: {gps_time.gps_year}")
    print(f"Fractional seconds: {gps_time.gps_fraction}")
except Exception as e:
    print(f"An error occurred: {e}")
    print("Note: LALSuite often requires specific environment setups or data files for full functionality.")

# More advanced usage often involves lalsimulation for waveform generation
# import lalsimulation
# hp, hc = lalsimulation.SimIMRSpinAlignedEOBWaveform(...) # Example, not runnable without parameters

view raw JSON →