Skip to main content

python library for earthquake engineers.

Project description

earthquakepy

A python library for earthquake engineers and seismologists.

Installation

earthquakepy can be installed using pip. It’s an absolute breeze. Try it!

pip install earthquakepy

Thats it! This will install the earthquakepy and other required libraries. Wasn’t that easy?

Import and use

Probably you know how to import the library. Let me just remind you.

import earthquakepy as ep

Getting started

  • Read a PEER NGA record from file
ts1 = ep.read_peer_nga_file(filename)
  • Read a raw file containing timeseries data
ts2 = ep.read_raw_timeseries_file(filename)
  • Build a SDOF system object to carry out some magic later!
s1 = ep.sdof(T=1.0, xi=0.05)
  • Get response of above SDOF system subjected to base excitation ts2
s1.get_response(ts2)
  • Build a MDOF system object
import numpy as np

M = np.random.rand(3, 3)
C = np.random.rand(3, 3)
K = np.random.rand(3, 3)

m1 = ep.mdof(M=M, C=C, K=K)
  • Read OpenSees node output file
o1 = ep.read_ops_node_output(filename, 3, compNames=["x", "y", "z"])  # 3 : ncomps = number of components per node
  • Read OpenSees element output file
o2 = ep.read_ops_element_output(filename, 3, compNames=["x", "y", "z"])  # 3 : ncomps = number of components per element
  • Read OpenSees JSON model file
model = ep.read_ops_json_model(jsonFile)

Each object generated above has its own methods which are given in detail in the documentation. Please click on this link to view it.

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

earthquakepy-0.4.1.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

earthquakepy-0.4.1-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

Details for the file earthquakepy-0.4.1.tar.gz.

File metadata

  • Download URL: earthquakepy-0.4.1.tar.gz
  • Upload date:
  • Size: 27.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for earthquakepy-0.4.1.tar.gz
Algorithm Hash digest
SHA256 91ded10b97688868548d5b3b6bc276b8a32acacd960bb51765cdbf769ed88cd5
MD5 3f63242c57ead6b0488bea52eb964068
BLAKE2b-256 877c66ffbe7b08349f727dd1d2401021d3db4ad83558f674fdd06205accb9400

See more details on using hashes here.

File details

Details for the file earthquakepy-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: earthquakepy-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 29.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for earthquakepy-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9b799407f498ac53bdda351b38f2f0a0ee3a36c9d16a4ac734004c906de3a611
MD5 a8e3eefed5f02a44cb6f70225aca0ec4
BLAKE2b-256 c428c3f59535650f6f2ce0862ade06eefe4f3c1b18a2f62083ef9e9ab0a93f17

See more details on using hashes here.

Supported by

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