|
@@ -0,0 +1,22 @@
|
|
1
|
+import numpy as np
|
|
2
|
+import matplotlib.pyplot as plt
|
|
3
|
+import sys
|
|
4
|
+
|
|
5
|
+K1 = np.loadtxt(sys.argv[1], comments="#")
|
|
6
|
+K2 = np.loadtxt(sys.argv[2], comments="#")
|
|
7
|
+nx, ny = np.shape(K1)
|
|
8
|
+
|
|
9
|
+plt.matshow( K1[0:nx//2] - K2[0:nx//2] , cmap='inferno')
|
|
10
|
+plt.colorbar()
|
|
11
|
+
|
|
12
|
+plt.matshow( K1[nx//2:] - K2[nx//2] , cmap='inferno')
|
|
13
|
+plt.colorbar()
|
|
14
|
+
|
|
15
|
+KAc = K1[0:nx//2]+1j*K1[nx//2:]
|
|
16
|
+KA2c = K2[0:nx//2]+1j*K2[nx//2:]
|
|
17
|
+# (K1[0:nx//2]+1j*K1[nx//2:]) )
|
|
18
|
+KD = np.abs(KAc) - np.abs(KA2c)
|
|
19
|
+
|
|
20
|
+plt.matshow(KD, cmap='RdBu', vmin=-np.max(np.abs(KD)), vmax=np.max(np.abs(KD)) )
|
|
21
|
+plt.colorbar()
|
|
22
|
+plt.show()
|