|
@@ -9,13 +9,13 @@ import pyLemma.FDEM1D as em1d
|
9
|
9
|
|
10
|
10
|
import numpy as np
|
11
|
11
|
|
12
|
|
-import matplotlib.pyplot as plt
|
13
|
|
-import seaborn as sns
|
14
|
|
-sns.set(style="ticks")
|
15
|
|
-import cmocean
|
16
|
|
-from SEGPlot import *
|
17
|
|
-from matplotlib.ticker import FormatStrFormatter
|
18
|
|
-import matplotlib.ticker as plticker
|
|
12
|
+#import matplotlib.pyplot as plt
|
|
13
|
+#import seaborn as sns
|
|
14
|
+#sns.set(style="ticks")
|
|
15
|
+#import cmocean
|
|
16
|
+#from SEGPlot import *
|
|
17
|
+#from matplotlib.ticker import FormatStrFormatter
|
|
18
|
+#import matplotlib.ticker as plticker
|
19
|
19
|
|
20
|
20
|
|
21
|
21
|
# Converts Lemma/Merlin/Akvo serialized Eigen arrays into numpy ones for use by Python
|
|
@@ -56,8 +56,8 @@ def loadAkvoData(fnamein):
|
56
|
56
|
print(exc)
|
57
|
57
|
return AKVO
|
58
|
58
|
|
59
|
|
-if __name__ == "__main__":
|
60
|
59
|
|
|
60
|
+def main():
|
61
|
61
|
if len(sys.argv) < 3:
|
62
|
62
|
print ("usage python calcAkvoKernel.py AkvoDataset.yaml Coil1.yaml " )
|
63
|
63
|
exit()
|
|
@@ -123,5 +123,9 @@ if __name__ == "__main__":
|
123
|
123
|
print(Kern, file=yml)
|
124
|
124
|
|
125
|
125
|
K0 = Kern.GetKernel()
|
126
|
|
- plt.matshow(np.abs(K0))
|
127
|
|
- plt.show()
|
|
126
|
+
|
|
127
|
+ #plt.matshow(np.abs(K0))
|
|
128
|
+ #plt.show()
|
|
129
|
+
|
|
130
|
+if __name__ == "__main__":
|
|
131
|
+ main()
|