Skip to main content

Global 3D Centroid Moment Tensor Inversion

Project description

[![Build Status](https://travis-ci.com/lsawade/GCMT3D.svg?branch=master)](https://travis-ci.com/lsawade/GCMT3D)

# 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:

`bash 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

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

#### 2. Install separate dependencies:

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

#### 3. Download GCMT3D

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

#### 4. Install other requirements using pip `bash pip install -r requirements.txt `

#### 5. Install GCMT3D `bash # Install GCMT3D in the current conda environment pip install . `

Test that GCMT3D was successfully installed by running the following command

`bash 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gcmt3d-0.0.2.tar.gz (124.1 kB view hashes)

Uploaded Source

Built Distribution

gcmt3d-0.0.2-py3-none-any.whl (175.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page