obspy-data-api
Create and manipulate ObsPy `Stream`/`Trace` objects (incl. correct timing metadata) from waveform arrays so SeisBench models and signal-processing utilities work reliably.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- obspy-data-api
- description
- Create and manipulate ObsPy `Stream`/`Trace` objects (incl. correct timing metadata) from waveform arrays so SeisBench models and signal-processing utilities work reliably.
03 SKILL.md 正文
Steps
- For each 3‑component waveform
datashaped(n_samples, 3)and sampling intervaldt, build oneTraceper channel withtrace.data = data[:, i].astype(np.float32). - Set timing metadata on each trace:
tr.stats.delta = dt,tr.stats.sampling_rate = 1.0 / dt,tr.stats.npts = n_samples. - Set consistent
tr.stats.starttime(e.g.,UTCDateTime(0)for all traces) so any SeisBench annotation timestamps can be converted back to sample indices via(pick_time - starttime) * sampling_rate. - Combine traces into a single
Streamfor the station/trace file (3 traces total), and keep channel codes from the file’schannelsfield.
Expected Result
A valid ObsPy Stream with correct starttime and sampling_rate, enabling robust time↔index conversion and downstream SeisBench inference.
04 同仓库更多 Skills
video-frame-extraction
Extract frames from video files and save them as images using OpenCV
openai-vision
Analyze images and multi-frame sequences using OpenAI GPT vision models
image-ocr
Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms
video-frame-extraction
Extract frames from video files and save them as images using OpenCV
openai-vision
Analyze images and multi-frame sequences using OpenAI GPT vision models
image-ocr
Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms