Coder Social home page Coder Social logo

vpoggi / catalogue_toolkit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gemsciencetools/catalogue_toolkit

0.0 1.0 0.0 8.6 MB

Open source toolkit for the compilation and harmonisation of earthquake catalogues

License: GNU Affero General Public License v3.0

Python 76.70% Jupyter Notebook 23.30%

catalogue_toolkit's Introduction

CATALOGUE TOOLKIT

The Catalogue Toolkit is an open-source set of Python tools for the compilation and harmonisation of earthquake catalogues.

FEATURES

Within the toolkit it is possible to do the following:

  • Read/Write Earthquake Catalogues from common format (ISC (ISF), GCMT, csv)
  • Search for duplicate events from multiple catalogues
  • Using Pandas, query database for events reported in common magnitude scales
  • Apply orthogonal regression techniques to compare magnitude scales within a database
  • Homogenise a catalogue into a common magnitude scale by applying a user- defined hierarchy of conversion models

DEPENDENCIES

The Catalogue toolkit requires the following dependencies:

  1. NumPy/Scipy

  2. h5py

  3. [PyTables] (http://www.pytables.org/)

  4. Pandas

  5. Matplotlib

  6. Basemap

INSTALLATION

WINDOWS (Vista/7/8)

The simplest process is to use the PythonXY distribution, which will install all of the above dependences (except Basemap). This can be downloaded from here: https://code.google.com/p/pythonxy/

The Basemap package will need to be installed separately. We recommend using the Windows Binary installers here: http://sourceforge.net/projects/matplotlib/files/matplotlib-toolkits/

To install the catalogue toolkit simply download the zipped folder from the main repository (or clone if you have Github installed) and unzip. Then add these manually to the Python Path by navigating to:

  • Control Panel -> System -> Advanced System Settings -> Environment Variables

If no pythonpath exists create a new pythonpath and add:

c:\path\to\catalogue_toolkit_unzipped\

otherwise append the above statement to an existing python path

OSX/LINUX

The most universal approach to install the dependencies is via the python package index (pip) (or the package manager of your preferred distro). Follow the instructions given in the dependency links above.

N.B. Install h5py and PyTables before installing Pandas

Alternatively, Anaconda might prove simpler if the above packages are not already installed on your system.

To download the toolkit simply open the terminal, navigate to a directory of your choosing and clone the current repository:

git clone https://github.com/GEMScienceTools/catalogue_toolkit.git

To install, simply add the folder to the pythonpath. Open your profile file (~/.profile or ~/.bash_profile) and add the following line to the bottom:

export PYTHONPATH=/full/path/to/catalogue/toolkit/folder/:$PYTHONPATH

Then restart or source the terminal to complete installation

LICENSE

Copyright (c) 2015 GEM Foundation

The Catalogue Toolkit is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

You should have received a copy of the GNU Affero General Public License with this download. If not, see http://www.gnu.org/licenses/

# DISCLAIMER   The software Catalogue Toolkit provided herein is released as a prototype implementation on behalf of scientists and engineers working within the GEM Foundation (Global Earthquake Model).

It is distributed for the purpose of open collaboration and in the hope that it will be useful to the scientific, engineering, disaster risk and software design communities.

The software is NOT distributed as part of GEM’s OpenQuake suite (http://www.globalquakemodel.org/openquake) and must be considered as a separate entity. The software provided herein is designed and implemented by scientific staff. It is not developed to the design standards, nor subject to same level of critical review by professional software developers, as GEM’s OpenQuake software suite.

Feedback and contribution to the software is welcome, and can be directed to the hazard scientific staff of the GEM Model Facility ([email protected]).

The Catalogue Toolkit is therefore distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

The GEM Foundation, and the authors of the software, assume no liability for use of the software.

catalogue_toolkit's People

Contributors

g-weatherill avatar vpoggi avatar julgp avatar

Watchers

 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.