Skip to main content

Plotting of seismic data

Project description

seisplot

Plotting of seismic data using variable-density or variable-area wiggle displays.

Description

The seisplot module provides a single, highly flexible method plot() to display seismic data.

The module was designed to get decent displays of seismic data in a way that is more convenient than going through many individual Matplotlib function calls explicitly. However, if required Matplotlib methods can also be called directly. The code is pure Python and kept deliberately simple to get students participating our Geophysics classes and exercises going with Python and seismic data.

Key features

  • Variable-density image plots.
  • Variable-area wiggle plots.
  • Highly configurable settings like colors, line widths, colorbars, labels, axis ticks, grid lines, etc.

![Image plot](img/img1.png "Variable-density image plot") ![Wiggle plot](img/img2.png "Variable-area wiggle plot") ![Velocity plot](img/img3.png "Non-seismic data plot") ![Fielddata plot](img/img4.png "Trace-normalized field data plot")

Getting Started

Dependencies

Required: numpy, matplotlib

Installation

Install from PyPI:

$> pip install seisplot

Install directly from gitlab:

$> pip install git+https://gitlab.kit.edu/thomas.hertweck/seisplot.git

Editable install from source:

This version is intended for experts who would like to test the latest version or make modifications. Normal users should prefer to install a stable version.

$> git clone https://gitlab.kit.edu/thomas.hertweck/seisplot.git

Once you acquired the source, you can install an editable version of seisplot with:

$> cd seisplot
$> pip install -e .

Brief tutorial

For a demonstration of various features and much more, please visit the "examples" folder where several Jupyter notebooks (tutorials) are available.

Plotting seismic data (for instance, read with our seisio package and therefore available as Numpy structured array including trace headers) can be as simple as:

import seisplot

fig, ax = seisplot.plot(data, haxis="offset", width=4, height=6,
                        vlabel="Time (s)", hlabel="Offset (m)", 
                        vmajorticks=0.2, vminorticks=0.1, hminorticks=500
                        vgrid="major")

The variables fig and ax are standard Matplotlib figure and axis handles that can be used to tweak the display further. You could also create those first using fig, ax = plt.subplots(1, 1) and pass them to the plot() method. In this way, it is possible to, for instance, create several seismic displays in one figure, or create displays that share the y-axis (usually "time").

Main author

Dr. Thomas Hertweck, geophysics@email.de

License

This project is licensed under the LGPL v3.0 License - see the LICENSE.md file for details

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seisplot-1.1.0.tar.gz (3.3 MB view details)

Uploaded Source

Built Distribution

seisplot-1.1.0-py3-none-any.whl (3.2 MB view details)

Uploaded Python 3

File details

Details for the file seisplot-1.1.0.tar.gz.

File metadata

  • Download URL: seisplot-1.1.0.tar.gz
  • Upload date:
  • Size: 3.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for seisplot-1.1.0.tar.gz
Algorithm Hash digest
SHA256 440ba575873c25d7049c877f888c7a3cb6e11de12e04b1cb5930e98fb05a3ea1
MD5 dafbfb37534d057e356e9a3d79a6f624
BLAKE2b-256 69f5a3c40e9cb01a1138f63e300e0ab0db865ba9f310d20ed9efce024ea8644b

See more details on using hashes here.

File details

Details for the file seisplot-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: seisplot-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for seisplot-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de2ae18f6cb268f732138af7bdfe11d45390412985d80e72a89f961b0dd6932e
MD5 7394ce7efa027ba187c2345e247c1b78
BLAKE2b-256 1066eea193a9de39697e3dd8ea2446b3ed0b7c13fa99c1d60a51fb65936e6e86

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page