Skip to content

Commit 380ccbd

Browse files
committed
Updated Video tutorial script with new videos
1 parent c01e1da commit 380ccbd

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

examples/tutorials/z_other_tutorials/video_tutorial_model_1.py

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44
55
This tutorial demonstrates step-by-step geological modeling using the `gempy` and `gempy_viewer` libraries.
6-
It follows the Video tutorial series available on the `gempy` YouTube channel (https://www.youtube.com/@GemPy3D).
6+
It follows the Video tutorial series available on the [`gempy` YouTube channel](https://www.youtube.com/@GemPy3D).
77
"""
88

99

@@ -12,8 +12,6 @@
1212
# """"""""""""""""""""""""""""""
1313
#
1414
# The first video is an introduction to GemPy - please view online before starting the tutorial.
15-
#
16-
# https://youtu.be/3elCCHhARsU
1715
#
1816
#
1917

@@ -127,6 +125,18 @@
127125
# Video tutorial 4: Computation and results
128126
# """""""""""""""""""""""""""""""""""""""""
129127

128+
# %%
129+
#.. raw:: html
130+
#
131+
# <iframe width="560" height="315"
132+
# src="https://youtu.be/lrz1DeHrrBk"
133+
# title="GemPy Tutorial Video 4"
134+
# frameborder="0"
135+
# allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
136+
# allowfullscreen>
137+
# </iframe>
138+
139+
130140
# View interpolation options
131141
geo_model.interpolation_options
132142

@@ -150,6 +160,18 @@
150160
# Video tutorial 5: 2D visualization
151161
# """"""""""""""""""""""""""""""""""
152162

163+
# %%
164+
#.. raw:: html
165+
#
166+
# <iframe width="560" height="315"
167+
# src="https://youtu.be/nMms0JYn98o"
168+
# title="GemPy tutorial video 5"
169+
# frameborder="0"
170+
# allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
171+
# allowfullscreen>
172+
# </iframe>
173+
174+
153175
# 2d plotting options
154176
gpv.plot_2d(geo_model, show_value=True, show_lith=False, show_scalar=True, series_n=1, cell_number=25)
155177

@@ -191,6 +213,10 @@
191213
# How to access DC meshes
192214
geo_model.solutions.dc_meshes[0].dc_data
193215

216+
# transform mesh vertices to original coordinate system
217+
218+
back_transformed_vertices = geo_model.input_transform.apply_inverse(geo_model.solutions.dc_meshes[0].vertices)
219+
194220
# %%
195221
# Video tutorial 7: Topography
196222
# """""""""""""""""""""""""""""""

0 commit comments

Comments
 (0)