How to plot seismic data with Matlab?

I'm struggling on plotting real seismic traces with Matlab. I have several traces loaded in the program, and I have downloaded SeisLab in order to find a proper plot. I want to plot my traces in the s_ispectrum plot, but it doesn't work. The plot works for the test data that follows in SeisLab, but not for my traces. The error message says "Struct contents reference from a non-struct array object.", and I guess it wants my traces to have a defined first and last value. My data are just matrixes (opens a huge matrix when I click them), whereas the test data is "1x1 struct with 12 fields." The test data is also of the type "seismic" with a defined first-, last-, and step value, and has a trace within. Is it possible to create some structure for my traces? And in which case: how?

5 Comments

SeisLab comes with its own file reading functions too for e.g. SEGY format so it will read those into its own defined structures which it uses for plotting I guess. You could take a look at the structure and code it uses for loading in its traces and try to replicate that for yours. That might be simplest.
I did have it downloaded a while back, but I wasn't keen on it and it was causing clashing problems on my path so I removed it.
How do you want the traces to look when you plot them? I wrote my own code a while back to display an array of traces with filled in peaks, though the filling in of the peaks for vertically plotted traces wasn't trivial and that bit of the code is not very versatile.
Usually I just plot a trace as any other function though in a standard plot. I assume you mean you want to plot a whole line of traces alongside each other rather than just individual ones.
mizuki
mizuki on 12 Sep 2016
Edited: mizuki on 12 Sep 2016
segymat does only read SEGY files rather than display them though. I have used that also although in the end I wrote my own SEGY reader so I could use the data structures I wanted.
use s_plot(data)
use s_wplot to plot the traces of real seismic data

Sign in to comment.

Answers (0)

Categories

Find more on Seismology in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!