Gravitational wave frame file I/O elements for sgn-ts
Project description
sgn-gwframe
Gravitational wave frame file I/O elements for sgn-ts
Resources
Installation
pip install sgn-gwframe
Features
- Read timeseries data from
.gwfframe 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
.gwffiles 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 FrameSource
from sgn.apps import Pipeline
src = FrameSource(
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 FrameWatchSource
from sgn.apps import Pipeline
src = FrameWatchSource(
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 FrameSink
from sgn.apps import Pipeline
sink = FrameSink(
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.1.0.tar.gz
(4.1 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sgn_gwframe-0.1.0.tar.gz.
File metadata
- Download URL: sgn_gwframe-0.1.0.tar.gz
- Upload date:
- Size: 4.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.16.3 cpython/3.13.11 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b10ba0342d0c015ccf3dbecf5eeb307df53198ceba98dbc4f1387b1b0448bb47
|
|
| MD5 |
1532fec738f6686db062229d931f5dcc
|
|
| BLAKE2b-256 |
0c504295491f251a085bce86a01ccb9cd3b9485dce6396885384ad5b7874cd38
|
File details
Details for the file sgn_gwframe-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sgn_gwframe-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.16.3 cpython/3.13.11 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d1feb591a20965631c776d7933599e8370474ed0d111bfa33f969016f2c52a2
|
|
| MD5 |
122fbf40ac81505bc7b2452692f7ac51
|
|
| BLAKE2b-256 |
97bf662c537babe214aa81f02593c57f95d27c6f4ef492a4778981e120d60232
|