DATE: Monday June 8, 2020 08:00 - 11:00 UTC
AUDIENCE: Beginner
INSTRUCTOR: Robert Leckenby, Digital Geoscientist, Agile

Welcome to Transform 2020 and to Getting Started with Python! This session is open to all but is aimed at people who have never coded at all or who don't know Python. Ideally you should have watched the setup videos for Windows or Linux and/or followed the instructions in the Installation guide for the tutorials that contained the information in those videos and more. This session is meant as a demo but if you followed those installation steps, you should be able to follow along.
All session details are available here.
START: 08.00 UTC
BREAK: 09.30 UTC
RESUME: 09.40 UTC
END: 11.00 UTC
- Simple math, logic and flow control
- Modelling Darcy's law with a function
- Computing fold wavelengths with the Ramberg-Biot equation
- Geophysical wavelets with
bruges
- Mapping DEM's with
matplotlib
- Data wrangling and QC well data with
welly
- Scanning a seismic cube with
segyio
The anaconda documentation tells us that: "A conda environment [...] contains a specific collection of conda packages that you have installed." We use these environments to isolate different projects.
We will be using an environment called transform2020
(but you can call it whatever you wish) that was created with:
conda create --name transform2020 python=3.7 anaconda
We then also install the welly, segyio and bruges packages to import *.las and *.sgy files and to perform geophysical calculations. First we activated the environment:
conda activate transform2020
and then installed the additional libraries:
pip install welly segyio bruges
You can then access this environment inside a jupyter notebook using one of two methods:
- By running
pip install nb_conda_kernels
inbase
and then runningjupyter notebook
withbase
activated. - By running
python -m ipykernel install --user --name transform2020
after creating thetransform2020
environment and then runningjupyter notebook
with eitherbase
ortransform2020
activated.
In both cases you then need to select the transform2020
environment by selecting Kernel>Change kernel>kernel name
in the jupyter notebook browser window.