These are the examples that were presented in the pynoddy paper (include ref!). The examples include the generation of the models themselves, as well as the (base) figures used in the manuscript.
Idea : export this notebook directly to LaTeX and place into appendix of paper!
In [1]:
import sys, os
import matplotlib.pyplot as plt
# adjust some settings for matplotlib
from matplotlib import rcParams
# print rcParams
rcParams['font.size'] = 15
# determine path of repository to set paths corretly below
os.chdir(r'/Users/flow/git/pynoddy/docs/notebooks/')
repo_path = os.path.realpath('../..')
import pynoddy.history
In [2]:
%pylab inline
The first example is the generation of a model where two fault events affect a sedimentary layer-cake structure. This example shows in particular how to generate a new (Noddy) history file from scratch.
Note: for more complex models, it is convenient to use the existing Noddy GUI. However, the GUI has several limitations, most importantly, it is only running on Windows. Furthermore, being able to generate the models with simple Python scripts adds more flexibility to the approach for automatic model construction.
We show here the step-by-step method to generate the examlpe model from scratch and the generation of the plots.
The model is instantiated a call to pynoddy.NoddyHistory without providing a filename as argument:
In [3]:
new_history = pynoddy.NoddyHistory()
In [4]:
new_history.info()
In [ ]: