Teaching material and exercises
To ensure reproducibility and modularity, three separate conda environments are used — one for each main module.
Open your terminal/Anaconda prompt and run this:
git clone https://github.com/AlbCa/GeophysicalTools.git
cd GeophysicalToolsThe requirements are stored in the main folder (GeophysicalTools/) as .yml files, used to describe an environment — that is, all the packages and dependencies used to install them.
You can simply run the following commands:
conda env create -f electro.yml # for electro-magnetic methodsconda env create -f seismic.yml # for seismic methodsconda env create -f gpr.yml # for gprBefore running a notebook, activate the corresponding environment:
conda activate electroconda activate seismicconda activate gprIf you encounter errors when creating the environments, you can manually create and install them as follows:
conda create -n electro -c gimli -c conda-forge "pygimli>=1.5.0"
conda activate electro
conda install jupyterlab
pip install resipy emagpyconda create -n seismic -c gimli -c conda-forge "pygimli>=1.5.0"
conda activate seismic
conda install jupyterlab
pip install scipy obspy disba evodcinv tqdm Follow the instructions to install GPRPy.
Remember that missing dependencies or libraries can always be managed by pip which lets you download, install, upgrade, and remove packages:
pip install package_nameOnce the desired environment is active, start Jupyter:
jupyter labFor dummy users, a quick guide is available here:
📄 Python & Jupyter Guide
and a "Getting started Notebook" here