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 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()
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.3.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.3.0.tar.gz.
File metadata
- Download URL: sgn_gwframe-0.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35c47cfe9f9bc5695681eba5a33f82900734e72ffb3f2d345f9b6f9cf76d9592
|
|
| MD5 |
50d6812cdf98793e60a5a3726d2d673e
|
|
| BLAKE2b-256 |
3c66b0d85964ae7ae604019224c31fedeeca0e8da2c5231d373b740da048d8d8
|
File details
Details for the file sgn_gwframe-0.3.0-py3-none-any.whl.
File metadata
- Download URL: sgn_gwframe-0.3.0-py3-none-any.whl
- Upload date:
- Size: 18.6 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09ced0de883c03c45581906ee88fd63c1ac11da33f709a3a71c3c527fe203ea2
|
|
| MD5 |
10c8eea529534ca675e34d7aff47794a
|
|
| BLAKE2b-256 |
8ce5e24e4fbb3a40178b9fd9a3cfb7774112e5cd2108e3e0e34734adcc5becf0
|