Thread: MATLAB can now access data from the IRIS-DMC!

Started: 2012-04-10 17:48:21
Last activity: 2012-04-10 17:48:21
Topics: Web Services
Celso Reyes
2012-04-10 17:48:21
Hello MATLAB users,

The IRIS-DMC is pleased to announce you can now use MATLAB® to access data and information at the DMC. We have created an .m file (irisFetch.m) that contains functions needed to access station metadata, event metadata, and seismic traces. The retrieved data is placed directly into a MATLAB variable and is available for immediate use, no knowledge of web services or internal DMC formats (SEED or XML) is required.

Using the irisFetch.m file, you will be able to retrieve:
station metadata, down to the response level (via ws-station)
trace data, containing time series data and associated station metadata. (via ws-bulkataselect and ws-station)
event parameters, including magnitudes, locations, and picks (via ws-event)

All these abilities are available thanks to the new IRIS Java Web Service Library (IRIS-WS Library), though you don't need to know java to take advantage of it!.
A simple example

Using irisFetch.m, it takes as little as two lines of code to retrieve and plot a seismic trace.

traces = irisFetch.Traces('IU','ANMO','00','BHZ',...
'2010-02-27 06:30:00','2010-02-27 07:30:00');

with the resulting output:


That's all there is to it.
For additional examples and to learn more about...

To learn more about using MATLAB to access IRIS-DMC stored data and to see examples, please visit

To learn more about the IRIS-WS Library, see examples, and download the current version, please visit

For users of GISMO or Waveform Suite...
With either the GISMO or Waveform Suite for MATLAB (r339 or later), your existing code can retrieve waveforms from the DMC with minimal modification. For more information:

Web services team

08:42:30 v.615f2d0b