Skip to main content

Gravitational wave frame file I/O elements for sgn-ts

Project description

sgn-gwframe

Gravitational wave frame file I/O elements for sgn-ts

ci coverage documentation pypi version


Resources

Installation

pip install sgn-gwframe

Features

  • Read timeseries data from .gwf frame files, frame caches, or lists of frame files
  • Watch directories for new frame files in real-time with automatic gap detection
  • Write timeseries data to .gwf files with compression, multi-frame support, and retention policies
  • Integrates as source and sink elements for SGN pipelines

Quickstart

Read from frame files

from sgn_gwframe.sources import GWFrameSource
from sgn.apps import Pipeline

src = GWFrameSource(
    name="gwosc",
    channels=["L1:GWOSC-16KHZ_R1_STRAIN"],
    frames="frames.cache",
    start=1187008882,
    end=1187008896,
)

pipeline = Pipeline()
pipeline.insert(src, ...)
pipeline.run()

Watch a directory for live frame data

from sgn_gwframe.sources import GWFrameWatchSource
from sgn.apps import Pipeline

src = GWFrameWatchSource(
    name="L1_live",
    channels=["L1:GDS-CALIB_STRAIN"],
    watch_dir="/data/frames/L1",
)

pipeline = Pipeline()
pipeline.insert(src, ...)
pipeline.run()

Write frame files

from sgn_gwframe.sinks import GWFrameSink
from sgn.apps import Pipeline

sink = GWFrameSink(
    name="writer",
    channels=["H1:GDS-CALIB_STRAIN"],
    duration=1,
    path="output/{instruments}-{description}-{gps_start_time}-{duration}.gwf",
    description="FILTERED",
    max_files=100,
)

pipeline = Pipeline()
pipeline.insert(..., sink)
pipeline.run()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sgn_gwframe-0.2.0.tar.gz (4.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sgn_gwframe-0.2.0-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file sgn_gwframe-0.2.0.tar.gz.

File metadata

  • Download URL: sgn_gwframe-0.2.0.tar.gz
  • Upload date:
  • Size: 4.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.4 cpython/3.13.11 HTTPX/0.28.1

File hashes

Hashes for sgn_gwframe-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cd9c99e10892826989dbae750d9ffa071c9f8a25201867e49415d34a5d8ded25
MD5 2431ba7a7c9245a93df8f28c0f4a74f7
BLAKE2b-256 fc05a49fdfbbd316ba5e30ed356abf67877828d8cdeb394d236e39b49b098d5f

See more details on using hashes here.

File details

Details for the file sgn_gwframe-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: sgn_gwframe-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.4 cpython/3.13.11 HTTPX/0.28.1

File hashes

Hashes for sgn_gwframe-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4dfa4c4fa0a5385391cded86c353e18f4c448f16f9c8bdad26e3775fcc4426fb
MD5 4f40f717aa44eec0681fb3203bd9d8d2
BLAKE2b-256 bb464f022f0d90671ed735d2a29b383daad570f8243f02a77d697da881dcce78

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page