Giter Site home page Giter Site logo

gcmt3d's Introduction

Build Status

GCMT3D

This is the initial commit for the revisited global cmt solution to allow for 3D velocity structures.

Installation

In order to install GCMT3D we first need to create a new conda environment. Then we install the dependencies, and finally GCMT3D itself. The required steps are the following.

First, make sure all necessary environment vairables are solved:

Check whether an mpi compiler is installed:

which mpicc # Shoud return the location of your mpi compiler

if nothing is returned or the output says find then install a compiler.

1. Create and activate a new conda environment with python 3.7

conda create -n <your_environment> python=3.7
conda activate <your_environment>

2. Install separate dependencies:

# Install basemap using conda
conda config --add channels conda-forge
conda install basemap
conda install mpi4py

3. Download GCMT3D

# Download GCMT3D
git clone https://github.com/lsawade/GCMT3D.git
cd GCMT3D/

4. Install other requirements using pip

pip install -r requirements.txt

5. Install GCMT3D

# Install GCMT3D in the current conda environment
pip install .

Test that GCMT3D was successfully installed by running the following command

python -c "import gcmt3d"

Travis automatic testing

The Travis automatic system is setup to load the latest anaconda release for Linux. Then, in a Python 3.7 environment, all required software is downloaded and installed. For the installation steps, please refer to the .travis.yml in the main directory. It mainly follows the steps in the quick install.

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.