Surface NMR forward modelling
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

plotkernel.py 307B

1234567891011121314151617
  1. import numpy as np
  2. import matplotlib.pyplot as plt
  3. import sys
  4. K = np.loadtxt(sys.argv[1], comments="#")
  5. nx, ny = np.shape(K)
  6. plt.matshow(K[0:nx//2])
  7. plt.colorbar()
  8. plt.matshow(K[nx//2:])
  9. plt.colorbar()
  10. KA = np.abs(K[0:nx//2] + 1j*K[nx//2:])
  11. plt.matshow(1e9*KA, cmap='viridis')
  12. plt.colorbar()
  13. plt.show()