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 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 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 import GWFrameSink
from sgn.apps import Pipeline
sink = GWFrameSink(
name="writer",
channels=["H1:GDS-CALIB_STRAIN"],
duration=1,
output_dir="output",
description="FILTERED",
max_files=100,
)
pipeline = Pipeline()
pipeline.insert(..., sink)
pipeline.run()
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.7.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.7.0.tar.gz.
File metadata
- Download URL: sgn_gwframe-0.7.0.tar.gz
- Upload date:
- Size: 4.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
Hatch/1.16.5 cpython/3.13.12 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cd177e58d1f0576139c73ae6101479d2701c72f0adc870c99d2e5049e662e4e
|
|
| MD5 |
c0695617ade4405aed3449dd425487bd
|
|
| BLAKE2b-256 |
a0f500c7d8543157521dbf4a22f44f920157a5353515c439e46e74c4c3c7a068
|
File details
Details for the file sgn_gwframe-0.7.0-py3-none-any.whl.
File metadata
- Download URL: sgn_gwframe-0.7.0-py3-none-any.whl
- Upload date:
- Size: 22.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
Hatch/1.16.5 cpython/3.13.12 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51523481f9a1f6012d7076bc5b8c65d926827ee718dd6425353dac9bb92ce58a
|
|
| MD5 |
e3ff86602dd189ce82e928fb3bbe4b4e
|
|
| BLAKE2b-256 |
d904b6a29dbc4a7a774111c8bd4f93d5199ee940629d5eeee3ce25c1b88606cd
|