Skip to content
Glenn Thompson edited this page Oct 12, 2016 · 3 revisions

A waveform variable holds seismic timeseries data and related metadata. The best place to start is with the help command: help waveform

The simplest The first task is to read your seismic data into a waveform variable. The steps are to tell GISMO:

  • where to get the data from (datasource)
  • which stations/channels/networks & locations to get data for (scnlobject)
  • the start and end of the time window you wish to get data for (in datenum format).

For example, to load data from a SAC file:

ds = datasource('sac', '/path/to/mysacfile.sac');   % get data from this file
scnl = scnlobject('REF', 'EHZ', 'AV', '--');        % get data for these station/channel/network/location combos
startTime = '2009/03/23 06:00:00';                  % omit data before this
endTime = '2009/03/23 07:00:00';                    % omit data after this
w = waveform(ds, scnl, startTime, endTime);         % call waveform to get these data

To load data for other file types, or from other file sources, consult datasource.

Once you have a waveform object, there are various methods you can use on it. To see a list of all the methods type:

methods(waveform)

For help on any specific method you can use

help waveform.methodName

e.g., for help on the plot method for waveform variables: help waveform.plot

Clone this wiki locally