Note
Click here to download the full example code
Model 7 - Combination¶
A folded domain featuring an unconformity and a fault. We start by importing the necessary dependencies:
Importing GemPy
import gempy as gp
import pandas as pd
pd.set_option('precision', 2)
Creating the model by importing the input data and displaying it:
data_path = 'https://raw.githubusercontent.com/cgre-aachen/gempy_data/master/'
path_to_data = data_path + "/data/input_data/jan_models/"
geo_data = gp.create_data('combination',
extent=[0, 2500, 0, 1000, 0, 1000],
resolution=[125, 50, 50],
path_o=path_to_data + "model7_orientations.csv",
path_i=path_to_data + "model7_surface_points.csv")
Out:
Active grids: ['regular']
Setting and ordering the units and series:
gp.map_stack_to_surfaces(geo_data, {"Fault_Series": ('fault'), "Strat_Series1": ('rock3'),
"Strat_Series2": ('rock2','rock1'),
"Basement_Series":('basement')})
geo_data.set_is_fault(['Fault_Series'])
Out:
Fault colors changed. If you do not like this behavior, set change_color to False.
gp.plot_2d(geo_data, direction='y')
Out:
<gempy.plot.visualization_2d.Plot2D object at 0x7fccb8adedc0>
Calculating the model:
interp_data = gp.set_interpolator(geo_data, theano_optimizer='fast_compile')
Out:
Setting kriging parameters to their default values.
Compiling theano function...
Level of Optimization: fast_compile
Device: cpu
Precision: float64
Number of faults: 1
Compilation Done!
Kriging values:
values
range 2872.28
$C_o$ 196428.57
drift equations [3, 3, 3, 3]
Displaying the result in x and y direction:
gp.plot_2d(geo_data, cell_number=5,
direction='y', show_data=False, show_boundaries=True)
Out:
<gempy.plot.visualization_2d.Plot2D object at 0x7fcc46555d60>
sphinx_gallery_thumbnail_number = 2
gp.plot_2d(geo_data, cell_number=5,
direction='x', show_data=True)
Out:
<gempy.plot.visualization_2d.Plot2D object at 0x7fcc46555790>
gp.plot_3d(geo_data)
gp.save_model(geo_data)
Out:
True
Total running time of the script: ( 0 minutes 16.459 seconds)