Skip to main content
v2026.11,986 entries · CC-BY 4.0

ObsPy: The Python Framework for Seismological Data

ObsPy is an open-source Python framework for seismological data: its modules, data-center clients, file formats and how to cite it.

Written and maintained by CASRAI Editorial Board

Published

On this page

ObsPy is an open-source Python framework for processing seismological data. According to its documentation, it provides parsers for common seismological file formats, clients for accessing data centers, and signal-processing routines, with the stated goal of making rapid application development in seismology possible. It is distributed under the LGPL v3.0 licence and installs through PyPI and conda-forge. For a research group it is the layer that turns downloaded or archived waveforms, event catalogues and station metadata into arrays and objects that the wider scientific Python stack can work with.

What ObsPy is

The project’s documentation home page describes ObsPy as an open-source project dedicated to providing a Python framework for processing seismological data. The GitHub repository gives its longer name, a Python toolbox for seismology and seismological observatories, and lists the licence as the GNU Lesser General Public License version 3.0. Packages are published on PyPI and on conda-forge. The repository README also carries a notice, in its page text, to update installations to version 1.5.2 or later because of a critical vulnerability in earlier releases, so any group that pinned an older version for a long-running analysis should read that notice before reusing the environment.

ObsPy is a software library, not a data archive and not a hosted service. The data it reads come from files on disk or from data centers and servers that it can query through client modules. That distinction matters when a methods section describes a seismology workflow: the data provider (for example the EarthScope SAGE archive) and the processing software are two separate things to name and cite.

It is also open-source software in the ordinary sense: its source code is public on GitHub, so a reviewer or collaborator can inspect exactly which routine produced a filtered trace or a travel-time curve, rather than relying on a vendor’s description of a black box.

How ObsPy is used in practice

The documentation describes three broad capabilities, and most analysis scripts combine all three.

Reading and writing seismological files

Waveform files are read with the obspy.read() function, event catalogues with read_events(), and station metadata with read_inventory(). Each function handles many formats behind one call, which is the practical value of the library: a script written for one format can often be pointed at another without rewriting the parsing code. The format table later on this page lists, for a selection of formats, which direction the documentation says is supported.

Pulling data from data centers and servers

The client modules documented on the packages index connect to sources that seismologists already use. The list includes clients.fdsn for FDSN web-service servers, clients.iris for the EarthScope/IRIS DMC web services, clients.earthworm for an Earthworm Wave Server, clients.seedlink for SeedLink, clients.neic for NEIC CWB Query, clients.nrl for the Nominal Response Library, clients.syngine and clients.filesystem, which reads local SDS and TSINDEX file structures. In plain terms: the same Python environment can fetch from an international data center, read an archive laid out on a local disk, or attach to a real-time acquisition source.

Processing and plotting

The obspy.signal module is documented as covering filtering, triggering, rotation, instrument correction and coordinate transformations. obspy.taup provides ray-theoretical travel times and ray paths. obspy.imaging produces waveform plots, spectrograms and beachball (focal mechanism) figures, and it needs matplotlib. obspy.geodetics and obspy.realtime complete the list of processing-side modules, and obspy.core holds the core classes that every other module builds on.

Modules and clients at a glance

Module What the documentation says it covers
obspy.core Core classes used by the rest of the library
obspy.geodetics Geodetic calculations
obspy.imaging Waveforms, spectrograms and beachball plots; requires matplotlib
obspy.realtime Real-time processing
obspy.signal Filtering, triggering, rotation, instrument correction and coordinate transformations
obspy.taup Ray-theoretical travel times and paths
Client Source it connects to
clients.fdsn FDSN web-service servers
clients.iris EarthScope/IRIS DMC web services
clients.earthworm Earthworm Wave Server
clients.seedlink SeedLink servers
clients.neic NEIC CWB Query
clients.nrl Nominal Response Library (instrument responses)
clients.syngine Syngine synthetic seismogram service
clients.filesystem Local SDS and TSINDEX file structures

The data table below compares, format by format, what the documentation lists for reading and writing. It is compiled from the ObsPy package documentation and is intended as a planning aid: before committing a pipeline to a format, confirm the direction you need (read, write or both) in the current documentation for the version you will pin.

Where it matters in research workflows

Reproducibility and version pinning

A seismology result that depends on a filter, an instrument-correction step or a travel-time calculation is only as reproducible as the software behind it. Recording the exact ObsPy version, the input data identifiers and the processing script supports computational reproducibility. The vulnerability notice on the repository page is a concrete reason to record versions: two analyses that differ only in the library release are not strictly the same computation.

Citing the software

The project’s citations page lists three papers: Beyreuther et al. (2010), published in Seismological Research Letters 81(3), 530-533 (doi:10.1785/gssrl.81.3.530); Megies et al. (2011), “ObsPy – What can it do for data centers and observatories?” in Annals of Geophysics 54(1); and Krischer et al. (2015), “ObsPy: a bridge for seismology into the scientific Python ecosystem” in Computational Science and Discovery 8(1), 014003. The GitHub repository names the 2010 paper as the primary reference and also provides a Zenodo concept DOI covering all versions, 10.5281/zenodo.1040769. The citations page does not say which of the three a given publication must cite, so that choice belongs to the author, the journal and the funder’s conventions. For the general ideas behind software citation, see the Software Citation FAIR Working Group entry, and for how a Zenodo concept DOI relates to version-specific DOIs, see that entry.

Standards-based data access

Because ObsPy ships an FDSN client, a script can request data from any server that implements the FDSN web-service specifications, rather than being tied to one institution. The EarthScope guide linked above notes FDSN-compliant tools including ObsPy among the ways to reach that archive. Station metadata is handled through read_inventory(), which the documentation lists as reading and writing StationXML, so the metadata that describes an instrument travels in a standard form alongside the waveform.

A reporting checklist for ObsPy-based analyses

The checklist below is an editorial synthesis of the documentation points above, intended for a methods section or a data-management plan entry. It is not a requirement published by the ObsPy project.

  1. Name the library and its version. The repository publishes numbered releases and a vulnerability notice that refers to version 1.5.2, so the version is a material detail.
  2. Cite the software. Choose among the three papers on the citations page and, where a precise release matters, use the Zenodo concept DOI or a version-specific DOI from the same Zenodo record.
  3. Name the data source separately. Say which client module or local archive supplied the waveforms (for instance an FDSN web-service server, the EarthScope/IRIS DMC service or a local SDS directory) and credit the operator of that archive.
  4. State the input and output formats. Record the waveform, event and inventory formats read, and the formats written, using the names the documentation uses (MiniSEED, SAC, QuakeML, StationXML and so on).
  5. Describe the signal-processing steps. List filtering, triggering, rotation, instrument correction and coordinate transformations in the order they were applied, since each is a separate documented routine in obspy.signal.
  6. Archive the script. Deposit the analysis script alongside the data so that another group can rerun it in an environment with the same library release.

Why the checklist separates software from data

A reader trying to reproduce a seismology result needs two independent things: the code path that transformed the data and the identity of the data themselves. ObsPy supplies the first; the data center, network or local archive supplies the second. Keeping the two statements separate in a methods section also makes it clear to funders and repository managers which party maintains which part of the record, which is useful when a data-management plan assigns responsibilities for software and for data.

Common misunderstandings

  • ObsPy is not a data provider. It retrieves data from archives and servers; the archive, not the library, is the source of the data and should be credited as such.
  • One import does not mean every format is writable. The documentation distinguishes read-only, write-only and read-write support per format; the data table shows several examples, such as QuakeML (read and write) against KML and JSON event output (write only).
  • Plotting is an optional dependency path. The imaging module is documented as needing matplotlib.
  • Citing the library is separate from citing the data. A methods section should name the processing software and the data source independently.
  • An old installation is not automatically safe to reuse. The repository’s page text asks users to update to 1.5.2 or later.

Sources

Data: ObsPy documented file-format support by data type and direction

Compilation of the file formats that the ObsPy package documentation lists for waveforms (obspy.read), event catalogues (read_events) and station inventories (read_inventory), with the supported direction. Formats whose direction the documentation page did not state in the read source are omitted. Compiled from the ObsPy packages documentation.

Period covered: 2026.

ObsPy documented file-format support by data type and direction
FormatData typeDirection documented
MiniSEEDWaveformread and write
SAC (ASCII and binary)Waveformread and write
GSE2 / GSE1Waveformread and write
SEG YWaveformread and write
SUWaveformread and write
GCFWaveformread and write
WAVWaveformread and write
QuakeMLEvent catalogueread and write
ZMAPEvent catalogueread and write
HypoDDEvent catalogueread
PDEEvent catalogueread
KMLEvent cataloguewrite
JSONEvent cataloguewrite
ShapefileEvent cataloguewrite
StationXMLStation inventoryread and write
FDSNWS station textStation inventoryread and write
SACPZStation inventorywrite
KMLStation inventorywrite
ShapefileStation inventorywrite

Sources

Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · full access

Ask about ObsPy: The Python Framework for Seismological Data

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →