2023 Delphi Meetings in Houston & The Hague
In the following 1.5 h we are going to use empymod and emg3d to model electromagnetic data in the diffusive regime, as commonly used in geophysical exploration.
- Introduction ('30)
- Pre-requisites to run the examples
- EM in Exploration Geophysics in 10 Minutes
- Codes, their manuals and galleries
- Modelling with
empymod
('30) - Modelling with
emg3d
('30) - Further links
- In this Masterclass we will use Python within Jupyter Notebooks.
- For scientific computations I always advice against using your PC's Python installation; you should use dedicated Python installations for your coding.
- For various reasons I also advice to use Mambaforge, or alternatively the regular conda.
Download and install the corresponding Mambaforge for your OS: https://github.com/conda-forge/miniforge#mambaforge
(Mambaforge uses mamba, the faster conda implementation, and sets conda-forge, the community maintained package repository, as default source.)
Download or clone the repo at https://github.com/emsig/houston23-mc3, and
cd
to the directory.Install the environment with
mamba env create -f environment.yml
This will install an environment called
houston23-mc3
.Activate the environment with
mamba activate houston23-mc3
Add this kernel to the recognized Jupyter kernels (optional, to have access from other envs as well) with
python -m ipykernel install --user --name houston23-mc3
Start Jupyter Lab
jupyter lab
The following google docs contains some further instructions, which might be useful (particular for Windows users): https://swu.ng/t20-python-setup
I will use Python 3.11. However, Python 3.7-3.11 should work; earlier versions might work, but potentially with older versions of the packages.
If you prefer to install the required packages in whatever other way, feel free to do so. Here the packages lists:
- Required:
empymod
,emg3d
,matplotlib
,discretize
,h5py
,pooch
,xarray
;ipyml
(for interactive plots in the Jupyter lab). - Optional:
scooby
,mkl
,tqdm
.
-
MyBinder: I tested the repo on MyBinder, and it should work; however, be aware that it can take some time to start-up a virtual machine.
-
Google Colab: If you have a Google account you can also run it on Colab. You have to login in order to run it.
-
JupyterLite: I transferred some of the notebooks (the computationally light ones) to JupyterLite. JupyterLite is a static website with client-side computation. You can run everything in it without installing anything at all. Just be aware that everything happens in the cache of your browser. If you clean the cache, your stuff is gone.
Full 3D electromagnetic modeller for 1D VTI media.
- Manual: https://empymod.emsig.xyz
- Gallery: https://empymod.emsig.xyz/en/stable/gallery
- Code: https://github.com/emsig/empymod
- Installation: https://empymod.emsig.xyz/en/stable/manual/installation.html
A multigrid solver for 3D electromagnetic diffusion.
- Manual: https://emg3d.emsig.xyz
- Gallery: https://emsig.xyz/emg3d-gallery/gallery
- Code: https://github.com/emsig/emg3d
- Installation: https://emg3d.emsig.xyz/en/stable/manual/installation.html
- SimPEG(emg3d): curvenote.com/@prisae/emg3d-as-solver-for-simpeg/hackathon-emg3d-inversion-in-simpeg
- pyGIMLi(empymod): github.com/gimli-org/transform2021 -> 6_Inversion_with_any_forward_operator.ipynb
- Website: disc2017.geosci.xyz
- SEG info: seg.org/Education/Courses/DISC/2017-DISC-Doug-Oldenburg
- Repo github.com/geoscixyz/em-apps
Software Underground (Swung) Transform Tutorials swu.ng
- SimPEG 2020: youtu.be/jZ7Sj9cnnso
- SimPEG 2021: youtu.be/5MiaebDwWUQ
- pyGIMLi 2021: youtu.be/w3pu0H3dXe8
- pyGIMLi 2022: youtu.be/2Hu4gDnRzlU