技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
obspy【数据与研究】Guides seismological data workflows with ObsPy, including waveform processing, format conversion, event and station metadata, FDSN or local archive access, signal analysis, travel times, geodesy, and headless imaging.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a task names ObsPy or asks to read, process, convert, retrieve, analyze, or visualize seismological waveforms, events, station metadata, or travel times. It is a reusable package guide: first inspect the installed ObsPy version and the task's local/network boundaries, then load only the focused route below.
Install the public package in an isolated supported Python environment:
python -m pip install obspy
python -c "import obspy; print(obspy.__version__)"
The base runtime uses NumPy, SciPy, Matplotlib, lxml, SQLAlchemy, requests,
and decorator. Add only needed extras: obspy[tests] for focused test tooling,
obspy[geo] for geographiclib, obspy[imaging] for Cartopy map plots, and
obspy[io.shapefile] for shapefile support. Do not install all by default.
ObsPy includes native extensions for several IO and signal/TauP paths; if an
import fails, read cross-cutting troubleshooting
before changing package versions.
For a minimal read-only smoke check, run
scripts/check_environment.py. It verifies
public imports, native extension handles, a TauP calculation, headless plotting,
and CLI help without contacting a service or writing into the current directory.
| User request or artifact | Read next | Primary entry points |
|---|---|---|
| Read/write, inspect, trim, merge, filter, resample, or plot local waveforms | waveform-processing | read, Trace, Stream, UTCDateTime |
| Convert MiniSEED/SAC/ASCII, QuakeML, StationXML, RESP/SEED/XSEED; preserve metadata | formats-and-metadata | read, read_events, read_inventory, Catalog, Inventory |
| Query FDSN waveforms/stations/events, route providers, use SDS/TSIndex/SeedLink | data-access | Client, RoutingClient, filesystem clients |
| Filter/detect/trigger/correlate, remove or simulate responses, PPSD, arrays, realtime | signal-analysis | obspy.signal, Trace/Stream methods, obspy.realtime |
| Compute arrivals/ray paths, geodesy, beachballs, spectra, or scientific figures | travel-times-and-imaging | TauPyModel, geodetics, imaging, Matplotlib |
A task can load multiple routes. For example, retrieve with data-access,
serialize with formats-and-metadata, then process with waveform-processing
or signal-analysis.
Trace/Stream; copy before destructive transforms.MPLBACKEND=Agg, show=False, and explicit output files for headless
plotting. Treat Cartopy, shapefile, credentials, and live service access as
optional prerequisites, not silent fallbacks.This graph covers user-facing package workflows, public CLIs, and representative CPU/offline behavior. It does not cover maintainer release automation, docs deployment, large benchmark/training operations, or every legacy file format. Read provenance when working from a checkout or deciding whether this graph is stale; refresh it when the package version, public entry points, or major source evidence differ.