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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file gcmt3d-0.0.2.tar.gz.

File metadata

  • Download URL: gcmt3d-0.0.2.tar.gz
  • Upload date:
  • Size: 124.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.3

File hashes

Hashes for gcmt3d-0.0.2.tar.gz
Algorithm Hash digest
SHA256 28f2d26b87ab03e6a8b5ff89853bda4097181cfcd433523e201dcffb3a1bc7a3
MD5 564c3992307af141f46f5c92b59d5faf
BLAKE2b-256 3067a5a1512afcb521085f0c157434eeae7114ba88fc5253b329be43cd39beea

See more details on using hashes here.

File details

Details for the file gcmt3d-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: gcmt3d-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 175.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.3

File hashes

Hashes for gcmt3d-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 85634610e892d18c6b0f1af6c6b88e3c954f36448fbce226326a4bfea828c68a
MD5 b6f4fc7c2fd3266d4c161013f8cba331
BLAKE2b-256 6df5014d69c452a74602d43dac884319c68b4f63d32b822cccb4f2b3e67f1b91

See more details on using hashes here.

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