pleiszenburg / earthquakes_youtube01

10 years of earthquakes / 2010-01-01 to 2019-12-31 / 1356502 events / depth exaggerated by a factor of 6

Home Page:https://youtu.be/RLHM5MQ5kAs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Earthquakes / Erdbeben 2010-2019

Watch the video

10 years of earthquakes / 2010-01-01 to 2019-12-31 / 1356502 events / depth exaggerated by a factor of 6

This repository documents how the video was made and enables its reproduction.

Open Data

  • earthquakes: United States Geological Survey (USGS)
  • contours: Copyright © OpenStreetMap contributors / Open Database License 1.0

Open Source Software

  • pycairo: 2D rendering
  • custom ray-tracer: 3D to 2D
  • numpy & numba: acceleration
  • zarr: data handling & storage
  • ffmpeg: video encoding

Rendering the video yourself

Ensure that you have the following software installed:

  • python (3.6 or newer)
  • cairo (plus header / development files)
  • zlib (plus header / development files)
  • ffmpeg
  • gcc
  • git

Clone this repository from Github and change into its directory:

git clone https://github.com/pleiszenburg/earthquakes_youtube01.git
cd earthquakes_youtube01/

Create a new virtual environment if desired and activate it:

python3 -m venv env
source env/bin/activate
pip install -U pip setuptools

Now you can install the dependencies, fetch the data and render the video:

pip install -r requirements.txt
./prepare_osm.py
./prepare_usgs.py
./render_frames.py
./render_video.py

About

10 years of earthquakes / 2010-01-01 to 2019-12-31 / 1356502 events / depth exaggerated by a factor of 6

https://youtu.be/RLHM5MQ5kAs

License:GNU General Public License v2.0


Languages

Language:Python 96.6%Language:Shell 3.4%