Skip to content
Back to skills

Obspy

ASecurity

"Guides seismological data workflows with ObsPy, including waveform

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
businesspythonbashsqlbackend

Works with

  • cli

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill obspy --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Obspy?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Obspy
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-obspy/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-obspy)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: obspy
description: "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."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# ObsPy operating skill

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 and inspect

Install the public package in an isolated supported Python environment:

```bash
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](references/troubleshooting.md)
before changing package versions.

For a minimal read-only smoke check, run
[`scripts/check_environment.py`](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.

## Route by the user's deliverable

| User request or artifact | Read next | Primary entry points |
|---|---|---|
| Read/write, inspect, trim, merge, filter, resample, or plot local waveforms | [`waveform-processing`](sub-skills/waveform-processing/SKILL.md) | `read`, `Trace`, `Stream`, `UTCDateTime` |
| Convert MiniSEED/SAC/ASCII, QuakeML, StationXML, RESP/SEED/XSEED; preserve metadata | [`formats-and-metadata`](sub-skills/formats-and-metadata/SKILL.md) | `read`, `read_events`, `read_inventory`, `Catalog`, `Inventory` |
| Query FDSN waveforms/stations/events, route providers, use SDS/TSIndex/SeedLink | [`data-access`](sub-skills/data-access/SKILL.md) | `Client`, `RoutingClient`, filesystem clients |
| Filter/detect/trigger/correlate, remove or simulate responses, PPSD, arrays, realtime | [`signal-analysis`](sub-skills/signal-analysis/SKILL.md) | `obspy.signal`, `Trace`/`Stream` methods, `obspy.realtime` |
| Compute arrivals/ray paths, geodesy, beachballs, spectra, or scientific figures | [`travel-times-and-imaging`](sub-skills/travel-times-and-imaging/SKILL.md) | `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`.

## Shared operating rules

1. Make the data boundary explicit: local file, synthetic fixture, local
   archive, or live network service. Do not turn an offline task into a network
   request implicitly.
2. Preserve raw inputs and write fresh outputs by default. ObsPy processing
   methods commonly mutate `Trace`/`Stream`; copy before destructive transforms.
3. Record UTC bounds, NSLC identifiers, sample rate, units/response status,
   format, parameters, output path, and validation checks.
4. Prefer explicit format names and bounded query windows. Check returned
   object counts, gaps/overlaps, metadata, and output re-openability rather than
   accepting a successful call at face value.
5. Use `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.

## Public boundaries and refresh

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](references/repo-provenance.md) 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.

Files in this skill

  • SKILL.md4.3 KB
  • references/repo-provenance.md1.9 KB
  • references/repo-routing-metadata.json322 B
  • references/troubleshooting.md3.3 KB
  • scripts/check_environment.py3 KB
  • sub-skills/data-access/SKILL.md5.2 KB
  • sub-skills/data-access/references/api-reference.md6.4 KB
  • sub-skills/data-access/references/query-recipes.md5.7 KB
  • sub-skills/data-access/references/troubleshooting.md5.3 KB
  • sub-skills/data-access/scripts/query_plan.py8.9 KB
  • sub-skills/formats-and-metadata/SKILL.md7.3 KB
  • sub-skills/formats-and-metadata/references/cli-reference.md1.8 KB
  • sub-skills/formats-and-metadata/references/event-inventory.md2.8 KB
  • sub-skills/formats-and-metadata/references/format-matrix.md5.8 KB
  • sub-skills/formats-and-metadata/references/troubleshooting.md1.9 KB
  • sub-skills/formats-and-metadata/scripts/format_roundtrip.py3.4 KB
  • sub-skills/signal-analysis/SKILL.md5.4 KB
  • sub-skills/signal-analysis/references/api-reference.md6.1 KB
  • sub-skills/signal-analysis/references/processing-recipes.md9.2 KB
  • sub-skills/signal-analysis/references/troubleshooting.md2.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.