Giter Site home page Giter Site logo

rasikanandana / rsqsim-python-tools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from uc-eqgeo/rsqsim-python-tools

0.0 0.0 0.0 44.59 MB

Code for filtering and plotting synthetic earthquake catalogues. Part of the NZ RNC2 earthquake and tsunami theme.

License: Other

Python 63.41% Cython 36.59%

rsqsim-python-tools's Introduction

rsqsim-python-tools

Python code for analysis of RSQSim outputs.

Andy Howell and Bruce Shaw, October 2021

(with earlier assistance from Samantha Woon and Charles Williams).

If you use this code, please cite: [Shaw, et al, 2021] "An Earthquake Simulator for New Zealand", Bulletin of the Seismological Society of America, 2021. DOI: ???

Repository contents

This repository consists of python tools designed for analysis of synthetic earthquake catalogues derived from the earthquake simulator RSQSim (Richards-Dinger and Dieterich, 2012).

In examples/shaw2021, you can find jupyter notebooks used to create some of the figures published in [Shaw, et al, 2021]. Notebooks to allow reproduction of the other figures remain a work in progress.

src/rsqsim_api is a python module that primarily contains code for filtering the NZ catalogue and plotting slip distributions. Examples of how to use this code, in Jupyter Notebook format, can be found in data/examples/rsqsim_api. Note that at this stage (October 2021), plotting tools are designed to be used primarily with NZ data and use NZTM projection.

DISCLAIMER: These tools are a work in progress and the authors accept no liability for any bugs in the code. However, if you do find bugs, please get in touch and we will endeavour to fix them :).

Prerequisites

Installation instructions for Anaconda can be found here: https://www.anaconda.com/products/individual#Downloads

Installation

  1. Open Anaconda Prompt
  2. Run cd {PATH_TO_REPO}
  3. Run conda env create
  4. Run conda activate rnc2

image

Integration of the catalogue

V1.0 of a synthetic earthquake catalogue for New Zealand can be found at ???. Download the files from that Zenodo repository into data/shaw2021 and all of the example Jupyter notebooks should work.

Running Jupyter Notebooks

  1. Make sure the correct environment is activated (rnc2).
  2. Run jupyter notebook
  3. Navigate to examples/rsqsim_api/

image

  1. Choose Notebook to run, e.g. visualization/plot_event1837093.ipynb
  2. Run the whole notebook in a single step by clicking on the menu Cell -> Run All.

image

References

???

rsqsim-python-tools's People

Contributors

andy22b avatar willic3 avatar wooneh 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.