@@ -154,6 +154,9 @@ def main(parser):
154
154
155
155
######### Multi-channel interpolation #########
156
156
157
+ # Turn to complex since we are now working with a complex model
158
+ Rop .dtype = np .complex128
159
+
157
160
# Let's start by setting the slope regularization term
158
161
D1op0 = FirstDerivative (dims = (nxorig , nt ), axis = 0 , sampling = dx , order = 5 , edge = True , dtype = "complex128" )
159
162
D1op1 = FirstDerivative (dims = (nxorig , nt ), axis = 1 , sampling = dt , order = 5 , edge = True , dtype = "complex128" )
@@ -201,7 +204,7 @@ def main(parser):
201
204
202
205
if not true_solution :
203
206
fig , axs = plt .subplots (2 , 2 , figsize = (12 , 12 ), gridspec_kw = {'height_ratios' : [2 , 1 ]})
204
- axs [0 , 0 ].imshow (data .T , cmap = 'gray' , aspect = 'auto' , vmin = - vlim , vmax = vlim ,
207
+ axs [0 , 0 ].imshow (data .real . T , cmap = 'gray' , aspect = 'auto' , vmin = - vlim , vmax = vlim ,
205
208
extent = (x [0 ] / 1000 , x [- 1 ] / 1000 , t [- 1 ], t [0 ]))
206
209
axs [0 , 0 ].set_title ('Original' )
207
210
axs [0 , 0 ].set_xlabel ('Offset (m)' )
@@ -232,7 +235,7 @@ def main(parser):
232
235
axs [0 , 0 ].set_title ('Original' )
233
236
axs [0 , 0 ].set_xlabel ('Offset (m)' )
234
237
axs [0 , 0 ].set_ylabel ('TWT (s)' )
235
- axs [0 , 1 ].imshow (data .T , cmap = 'gray' , aspect = 'auto' , vmin = - vlim , vmax = vlim ,
238
+ axs [0 , 1 ].imshow (data .real . T , cmap = 'gray' , aspect = 'auto' , vmin = - vlim , vmax = vlim ,
236
239
extent = (x [0 ]/ 1000 , x [- 1 ]/ 1000 , t [- 1 ], t [0 ]))
237
240
axs [0 , 1 ].set_title ('Subsampled' )
238
241
axs [0 , 1 ].set_xlabel ('Offset (m)' )
0 commit comments