Skip to content

Commit de103fe

Browse files
author
Thomas Günther
committed
DOC: cleanup petrophysical joint inversion example
1 parent 4f27fc5 commit de103fe

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

doc/examples/6_inversion/plot_3_petro_joint_inv.py

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@
112112
###############################################################################
113113
# Conventional inversion
114114
# ----------------------
115+
115116
pg.info("ERT Inversion")
116117
ERT = ert.ERTManager(verbose=False, sr=False)
117118
resInv = ERT.invert(ertData, mesh=pMesh, zWeight=1, lam=20, verbose=False)
118119
ERT.inv.echoStatus()
119120

120-
# showModel(pMesh, resInv, **resKW)
121121
ax, _ = pg.show(pMesh, resInv, **resKW)
122122

123123
pg.info("Traveltime Inversion")
@@ -131,13 +131,13 @@
131131
###############################################################################
132132
# Petrophysical inversion (individually)
133133
# --------------------------------------
134+
134135
pg.info("ERT Petrogeophysical Inversion")
135136
ERTPetro = PetroInversionManager(petro=ertTrans, mgr=ERT)
136137
satERT = ERTPetro.invert(ertData, mesh=pMesh, limits=[0., 1.], lam=10,
137138
verbose=False)
138139
ERTPetro.inv.echoStatus()
139140

140-
# ax = showModel(pMesh, satERT, label=r'Saturation (${\tt satERT}$)')
141141
ax, _ = pg.show(pMesh, satERT, **satKW, label=r'Saturation (${\tt satERT}$)')
142142
pg.viewer.mpl.drawPLC(ax, poly, fillRegion=False)
143143

@@ -146,32 +146,19 @@
146146
satTT = TTPetro.invert(ttData, mesh=pMesh, limits=[0., 1.], lam=5)
147147
TTPetro.inv.echoStatus()
148148

149-
# ax = showModel(pMesh, satTT, label=r'Saturation (${\tt satTT}$)')
150149
ax, _ = pg.show(pMesh, satTT, **satKW, label=r'Saturation (${\tt satTT}$)')
151150
pg.viewer.mpl.drawPLC(ax, poly, fillRegion=False)
152151

153152
###############################################################################
154153
# Petrophysical joint inversion
155154
# -----------------------------
155+
156156
pg.info("Petrophysical Joint-Inversion TT-ERT")
157157
JointPetro = JointPetroInversionManager(petros=[ertTrans, ttTrans],
158158
mgrs=[ERT, TT])
159159
satJoint = JointPetro.invert([ertData, ttData], mesh=pMesh,
160160
limits=[0., 1.], lam=5, verbose=False)
161161
JointPetro.inv.echoStatus()
162162

163-
# ax = showModel(pMesh, satJoint, label=r'Saturation (${\tt satJoint}$)')
164163
ax, _ = pg.show(pMesh, satJoint, **satKW, label=r'Saturation (${\tt satJoint}$)')
165164
pg.viewer.mpl.drawPLC(ax, poly, fillRegion=False)
166-
167-
###############################################################################
168-
# Visualization
169-
# -------------
170-
171-
# %
172-
173-
# %
174-
# ax = showModel(None, satJoint, pMesh, label=r'Saturation (${\tt satJoint}$)')
175-
# ax, _ = pg.show(pMesh, satJoint, label=r'Saturation (${\tt satJoint}$)')
176-
# pg.viewer.mpl.drawPLC(ax, poly, fillRegion=False) # , color="white")
177-
# %

0 commit comments

Comments
 (0)