Skip to content

Commit 9c3002a

Browse files
committed
[DOC] Second pass to mik
1 parent 9beec76 commit 9c3002a

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

examples/examples/real/mik.py

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
# Let's start by downloading the dataset and inspecting its content.
2626

2727
# %%
28+
# sphinx_gallery_thumbnail_number = -1
29+
2830
# List of relative paths used during the workshop
2931
import numpy as np
3032
import pandas as pd
@@ -39,16 +41,12 @@
3941
import subsurface as ss
4042
from subsurface.modules.visualization import to_pyvista_points, pv_plot, to_pyvista_line, init_plotter
4143

42-
path_to_well_png = '../../common/basics/data/boreholes_concept.png'
43-
path_to_checkpoint_1 = '../../common/basics/checkpoints/checkpoint1.pickle'
44-
path_to_checkpoint_2 = '../../common/basics/checkpoints/checkpoint2.pickle'
45-
upgrade_pickles = False
46-
# %%
4744
# Importing GemPy
4845
import gempy as gp
4946

5047
# %% md
5148
# We use `pooch` to download the dataset into a temp file:
49+
5250
# %%
5351
url = "https://raw.githubusercontent.com/softwareunderground/subsurface/main/tests/data/borehole/kim_ready.csv"
5452
known_hash = "a91445cb960526398e25d8c1d2ab3b3a32f7d35feaf33e18887629b242256ab6"
@@ -76,11 +74,13 @@
7674
}
7775
)
7876
)
77+
7978
# Convert to UnstructuredData
8079
unstruc: ss.UnstructuredData = ss.UnstructuredData.from_array(
8180
vertex=collar_df[["x", "y", "z"]].values,
8281
cells=SpecialCellCase.POINTS
8382
)
83+
8484
points = ss.PointSet(data=unstruc)
8585
collars: Collars = Collars(
8686
ids=collar_df.index.to_list(),
@@ -96,7 +96,7 @@
9696
well_mesh = to_pyvista_points(collars.collar_loc)
9797

9898
# Plot the collar points
99-
pv_plot([well_mesh], image_2d=True)
99+
pv_plot([well_mesh], image_2d=False)
100100

101101
# %%
102102
# Reading Borehole Survey Data
@@ -388,8 +388,6 @@
388388
#
389389

390390
# %% md
391-
# Surfaces
392-
# """"""""
393391
# Adding Surfaces and Formations
394392
# """""""""""""""""""""""""""""
395393
# In GemPy, surfaces mark the bottom of each geological unit. For our model, we will add the first two formations
@@ -410,8 +408,8 @@
410408
# %%
411409
g2d.fig
412410
# %% md
413-
# ### Minimum Input Data for Interpolation
414-
#
411+
# Minimum Input Data for Interpolation
412+
# """"""""""""""""""""""""""""""""""""
415413
# To interpolate the geological layers, GemPy requires at least:
416414
#
417415
# - Two surface points per geological unit
@@ -429,8 +427,8 @@
429427
)
430428

431429
# %% md
432-
# ## Model Computation
433-
#
430+
# Model Computation
431+
# """""""""""""""""
434432
# Now that we have the necessary surface points and orientations, we can compute the final geological model. The
435433
# `compute_model` function will take all the input data and perform the interpolation to generate the 3D subsurface structure.
436434

@@ -440,8 +438,8 @@
440438
gp.compute_model(geo_model)
441439

442440
# %% md
443-
# ### Final 3D Visualization
444-
#
441+
# Final 3D Visualization
442+
# """"""""""""""""""""""
445443
# Let's take a look at the final model, combining the borehole data and geological formations in 3D.
446444

447445
g3d = gpv.plot_3d(geo_model, show_lith=False, show=False)
@@ -450,8 +448,8 @@
450448

451449

452450
# %% md
453-
# -----
454-
# ## Conclusion
451+
# Conclusion
452+
# """"""""""
455453
#
456454
# In this tutorial, we have demonstrated how to take borehole data and create a 3D geological model in GemPy. We explored
457455
# how to extract structural elements from borehole data, set up a regular grid for interpolation, and visualize the
@@ -461,10 +459,10 @@
461459
# integrates seamlessly with borehole data for subsurface geological modeling.
462460
#
463461
# For further reading and resources, check out:
464-
465-
#
466-
# #### Extra Resources
462+
#
467463
#
464+
# Extra Resources
465+
# """""""""""""""
468466
# Page:
469467
# https://www.gempy.org/
470468
#
@@ -474,9 +472,9 @@
474472
# Gitub:
475473
# https://github.com/cgre-aachen/gempy
476474
#
477-
# #### Further training and collaborations
475+
# Further training and collaborations
476+
# """""""""""""""""""""""""""""""""""
478477
# https://www.terranigma-solutions.com/
479478
#
480-
# ![Terranigma_Logotype_black.png](attachment:200622_Terranigma_Logotype_black.png)
481479
#
482480
#

0 commit comments

Comments
 (0)