Professional and personal projects

earthquakepy

Motivation

This is an open source python library I am co-developing and maintaining. Being a researcher in Earthquake Engineering, I had to deal with many ground motion records on a daily basis. The records came from different sources and had different format. So, every time I had to use that data, I would write a small script. This resulted in having multiple scripts scattered on my HDD doing essentially the same work. Moreover, almost all scripts had different input and output formats making the scripts difficult to reuse. This was the initial motivation for me to write a Python package to accomplish all tasks. The package would ensure that the code is reusable and I need not write similar code again. earthquakepy is the resulting library.

What can it do?

  1. It can read ground motion data from PEER-NGA and COSMOS databases. It can also read data in raw text formats.
  2. Plot the ground motion data
  3. Calculate various ground motion characterics such as significant duration, arias intensity, peaks etc. and many more.
  4. Identify a few frequency domain characteristics such as predominant period, mean frequency, FFT, power spectrum etc.
  5. Calculate and plot the response spectra and tripartite plot.
  6. Some ground motion scaling and stretching (there is a plan to develope this further into a submodule for ground motion selection and scaling, as this is one of the most common tasks an earthquake engineer has to go through often).

Where to get it?

Head to it's GitHub repository earthquakepy. The repository contains information about installing it and a link to its documentation. The documentation is auto-generated and contains information of each and every function/module and class. Tutorials on it's usage are coming soon.

Tech stack

numpy, scipy, matplotlib

PEGMA

It's an acronym for Package for Exploratory Ground Motion Analysis. This is in principle a GUI frontend to the earthquakepy library but it can do a bit more than what earthquakepy can. A few screenshots of the program are given below. You can find more about it on its GitHub repository pegma.

/images/pegma.png
PEGMA: Package for Exploratory Ground Motion Analysis - Some screenshots of the program

Tech stack

PySide6 (with Model-View architecture), matplotlib, numpy.

PhD thesis

  • Title: Design of friction dampers for seismic response reduction in framed buildings.
  • During an event of earthquake, buildings vibrate due to energy supplied by the earthquake. Supplemental dampers like friction dampers can be used to dissipate part of that energy so that the building has lesser input energy for vibration.
  • My work provides an easy and effective method of design of friction damper for a given building at a given location.

Miscellaneous

  1. Multiple small projects/scripts for data analysis of land-use survey data, FE analysis output data etc. Some of which are available on my GitHub dbpatankar.