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.
- Install dsmpy. In the process, you should have created a
dsm
conda environment. - Clone the pytomo repository
git clone https://github.com/afeborgeaud/pytomo
- Update the
dsm
conda environment (from step 1):
conda env update -n dsm --file environment.yml --prune
- Install pytomo.
/path/to/pytomo/
is the path to the local pytomo git repository:
conda develop -n dsm /path/to/pytomo/
- 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
- Clone the pytomo repository
git clone https://github.com/afeborgeaud/pytomo
- (Optional) You may want to install pytomo in a virtual environment. If so, do
python3 -m venv venv
source activate ./venv/bin/activate
- Install build, a PEP517 package builder
pip install build
- To build the pytomo package, from the root directory
pytomo
run
python -m build .
- This creates
.whl
and.gz.tar
dist files in thedist
directory. Now pydsm can be installed with
pip install dist/*.whl
or
pip install dist/*.tar.gz