Seismic Visualisation Using Python Language - 240405 - 120657
Seismic Visualisation Using Python Language - 240405 - 120657
....???…. In …???….”
By:
Abd-Alrahmen Mohamed
Mahmoud Badawy
3/29/2024 1
$?
Computer Science
Students!!!!!!
Code faster
Work smarter
Type less, code more
Library
Packages
Modules
Anaconda prompt:
pip install numpy
pip install matplotlib
pip install obspy
pip install segyio
Pip install petrel
pip install seismic_canvas
pip install seismic-attributes
Pip install pandas
Pip install canavas
3/29/2024 Dr. Mahmoud Badawy 18
Python Language to handle with seismic specific libraries:
import numpy as np
import matplotlib.pyplot as plt
from obspy.io.segy.segy import _read_segy
stream = _read_segy('C:/Users/M.M.Badawy/Desktop/Name of Data Folder/X-Line 1.segy', headonly = True)
import numpy as np
import matplotlib.pyplot as plt
from obspy.io.segy.segy import _read_segy
one_trace = steam.traces[3]
data = np.stack(t.data for t in steam.traces)
data.shape
stream = _read_segy('C:/Users/M.M.Badawy/Desktop/SEGY/X-Line 5.segy', headonly = True)
plt.imshow(data.T, cmap="RdBu", vmin=-100, vmax=100, aspect='auto')
Thanks
one_trace = stream.traces[3]