Skip to main content

[![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.

Release files for gcmt3d 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gcmt3d 0.0.2
File Size Uploaded
gcmt3d-0.0.2.tar.gz 124.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gcmt3d 0.0.2
File Interpreter ABI Platform
gcmt3d-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 299.9 kB

Release files / gcmt3d-0.0.2.tar.gz

Download URL gcmt3d-0.0.2.tar.gz
Size 124.1 kB
Tags Source
SHA-256 checksum
How to use checksums
28f2d26b87ab03e6a8b5ff89853bda4097181cfcd433523e201dcffb3a1bc7a3
BLAKE2b-256 checksum
How to use checksums
3067a5a1512afcb521085f0c157434eeae7114ba88fc5253b329be43cd39beea
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / gcmt3d-0.0.2-py3-none-any.whl

Download URL gcmt3d-0.0.2-py3-none-any.whl
Size 175.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
85634610e892d18c6b0f1af6c6b88e3c954f36448fbce226326a4bfea828c68a
BLAKE2b-256 checksum
How to use checksums
6df5014d69c452a74602d43dac884319c68b4f63d32b822cccb4f2b3e67f1b91
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page