Skip to content

Latest commit

 

History

History
executable file
·
62 lines (57 loc) · 1.84 KB

README.md

File metadata and controls

executable file
·
62 lines (57 loc) · 1.84 KB

pytomo

Python 3.8

Tools for seismic data processing and tomography in Python. Use dsmpy for exact 1-D waveform computation.
The documentation with several usage examples can be found here.

INSTALLATION

Preferred method: dependencies using conda and building from source

  1. Install dsmpy. In the process, you should have created a dsm conda environment.
  2. Clone the pytomo repository
git clone https://github.com/afeborgeaud/pytomo
  1. Update the dsm conda environment (from step 1):
conda env update -n dsm --file environment.yml --prune
  1. Install pytomo. /path/to/pytomo/ is the path to the local pytomo git repository:
conda develop -n dsm /path/to/pytomo/

Requirements

  • Libraries for Python dev
sudo apt-get install python3-dev
  • You might have to install GEOS lib dev, which are required by cartopy
sudo apt-get install libgeos-dev
sudo apt-get install libproj-dev proj-data proj-bin

Using pip (building from source)

  1. Clone the pytomo repository
git clone https://github.com/afeborgeaud/pytomo
  1. (Optional) You may want to install pytomo in a virtual environment. If so, do
python3 -m venv venv
source activate ./venv/bin/activate
  1. Install build, a PEP517 package builder
pip install build
  1. To build the pytomo package, from the root directory pytomo run
python -m build .
  1. This creates .whl and .gz.tar dist files in the dist directory. Now pydsm can be installed with
pip install dist/*.whl

or

pip install dist/*.tar.gz