Skip to main content

Signal processing for field and experimental data for earthquake engineering

Project description

.. image::
:alt: Testing Status

.. image::
:alt: PyPi version

.. image::

.. image::
:alt: License


A Python package for seismic signal processing.

How to Use


Generate response spectra

.. code-block:: python

import numpy as np
import matplotlib.pyplot as plt
import eqsig.single

bf, sub_fig = plt.subplots()
a = np.loadtxt("<path-to-acceleration-time-series>")
dt = 0.005 # time step of acceleration time series
periods = np.linspace(0.2, 5, 100) # compute the response for 100 periods between T=0.2s and 5.0s
record = eqsig.AccSignal(a * 9.8, dt)
times = record.response_times

sub_fig.plot(times, record.s_a, label="eqsig")

Useful material



How do I get set up?

1. Run ``pip install -r requirements.txt``


Tests are run with pytest

* Locally run: ``pytest`` on the command line.

* Tests are run on every push using travis, see the ``.travis.yml`` file


To deploy the package to you need to:

1. Push to the *pypi* branch. This executes the tests on

2. Create a git tag and push to github, run: ```` or manually:

.. code:: bash
git tag 0.5.2 -m "version 0.5.2"
git push --tags origin pypi


Built via Sphinx following:

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
eqsig-0.5.29.tar.gz (18.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page