forked from GeorgeLiang3/GemPyTF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel4-Pinchout.py
42 lines (33 loc) · 1.17 KB
/
model4-Pinchout.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# %%
import sys
sys.path.append('../GP_old/')
import gempy as gp
from gempy.core.tensor.interpolator_tf import ModelTF
# %%
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( extent=[0, 1000, 0, 1000, 0, 1000], resolution=[50, 50, 50],
path_o=path_to_data + "model4_orientations.csv",
path_i=path_to_data + "model4_surface_points.csv")
gp.map_series_to_surfaces(geo_data, {"Strat_Series": ('rock2', 'rock1'), "Basement_Series": ('basement')})
# %%
## I will integrate the module into GemPy through Interpolator later
model = ModelTF(geo_data)
gpinput = model.get_graph_input()
model.create_tensorflow_graph(gpinput,gradient = False)
# %%
model.compute_model()
# %%
### 3D plot
# still in a hacky way
from gempy.plot.vista import GemPyToVista
gpv = GemPyToVista(model)
gpv.plot_surface_points(surfaces='all')
gpv.plot_orientations()
gpv.plot_surfaces()
gpv.plot_structured_grid(scalar_field= 'lith')
gpv.p.show()
# %%
gp.plot.plot_section(model, cell_number=15,
direction='y', show_data=True)
# %%