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()
_______________________________________________
Chennaipy mailing list
Chennaipy@python.org
https://mail.python.org/mailman/listinfo/chennaipy

Reply via email to