Git Product home page Git Product logo

seismorms's Introduction

Ground Motion Displacement RMS vs Time

an example simple tutorial for getting seismic data, computing the power spectral densities, extracting the RMS and plotting

DOI

Required:

  • python
  • obspy (and its dependencies)
  • pandas
  • jupyter
  • notebook
  • tqdm

this should be easy to set up in a conda env: conda create -c conda-forge -n covid python=3.7 obspy pandas jupyter notebook tqdm

Author: Thomas Lecocq @seismotom, Fred Massin @fmassin

Run it interactively on mybinder.org

Original Example:

This was the output of the original code shared on Twitter end of March 2020. The following data shows the effect of the Social Distancing measures from the Belgian Government (2020-03-16 at midnight, and 2020-03-18 at midday):

Example image from this code:

Current Example:

The code has evolved and includes several new useful plots for interpreting the time series.

Standard ObsPy PPSD plots:

Standard PPSD:

Standard PPSD_spectrogram:

New plots:

RMS time series: RMS_timeseries:

Changes per day of week & time of day, before and after lockdown: RMS_daily_changes:

Changes per day of week & time of day, before and after lockdown, visualized as a 24-hour clock: RMS_hourly:

Colormapped clock plot, each record of the disc is 1 day: RMS_clockmap:

Colormapped grid plot, each column of the grid is 1 day: RMS_gridmap:

seismorms's People

Contributors

fmassin avatar thomaslecocq avatar claudiodsf avatar megies avatar wmvanstone avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.