[Chennaipy] waveform - time scale
Mohamed ali Abdul
kkngrmohd at gmail.com
Sun Sep 13 10:01:07 EDT 2020
Hello to all,
The below mentioned code will display waveform.
Waveform is attached.
All waves are starting at 0. Each wave form should be shifted from zero. So
that i can visualize each wave form.
Pl. help me.
Thanks.
Mohamed ali
Code :
import obspy
from obspy.io.segy.core import _read_segy
import pandas as pt
import numpy as np
import matplotlib.pyplot as plt
st = obspy.read("Filename.segy") # this file is having
# 10 traces(waveform)
length=len(st)
for i in range(0,length):
x= st[i].data
y=st[i].times()
fig =plt.plot(x,y)
plt.suptitle('vsp wave form', fontsize=14, fontweight='bold')
plt.xlabel("time in seconds")
plt.ylabel("amplitude")
plt.show()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chennaipy/attachments/20200913/134a2c75/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: waveform1.jpg
Type: image/jpeg
Size: 3480557 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/chennaipy/attachments/20200913/134a2c75/attachment-0001.jpg>
More information about the Chennaipy
mailing list