Evo seismic data preprocessing

From OpenLAIR/OpenSkill · View interactive version

Evo seismic data preprocessing is an AI agent skill from the GitHub repository OpenLAIR/OpenSkill. Loads seismic waveform data from .npz files and converts them into ObsPy Stream objects ready for SeisBench model inference. Handles channel identification, reordering to Z/N/E convention, float32 conversion, detrending, and resampling to 100 Hz.

How to use this skill

Skill file

evo-seismic-data-preprocessing

Overview

This skill handles all data I/O from .npz seismic trace files and transforms them into properly formatted ObsPy Stream objects with correct channel ordering (Z, N, E), sampling rate (100 Hz), and data types (float32).

Key Knowledge

Usage

import sys
sys.path.insert(0, '/app/environment/skills/evo-seismic-data-preprocessing/scripts')
from utils import load_and_prepare_stream, load_npz_trace, build_obspy_stream, preprocess_stream, identify_channel_order

# Full pipeline
stream, trace_info = load_and_prepare_stream('/root/data/somefile.npz')

# Or step by step
trace_info = load_npz_trace('/root/data/somefile.npz')
z_idx, n_idx, e_idx = identify_channel_order(trace_info['channels'])
stream = build_obspy_stream(trace_info['data'], trace_info['dt'], trace_info['channels'])
stream = preprocess_stream(stream)

Functions

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.