[Chennaipy] waveform display
Mohamed ali Abdul
kkngrmohd at gmail.com
Mon Sep 14 03:56:31 EDT 2020
Hello to all,
The below mentioned code will display waveform.
All waves are starting at 0. Each wave form should be shifted from zero. So
that i can visualize each wave form.
waveform1 url link : waveform1: https://pasteboard.co/Jr0MXAS.jpg
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(waveforms)
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/20200914/b3301d7f/attachment.html>
More information about the Chennaipy
mailing list