[webservices] MATLAB can now access data from the IRIS-DMC!

Celso Reyes celso at iris.washington.edu
Tue Apr 10 10:48:21 PDT 2012


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');
plot(traces(1).data);

with the resulting output:

[image: http://www.iris.edu/manuals/javawslibrary/matlab/simplestANMOexample_sm.png]

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 http://www.iris.edu/manuals/javawslibrary/matlab/

To learn more about the IRIS-WS Library, see examples, and download the current version, please visit http://www.iris.edu/manuals/javawslibrary/

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: http://www.giseis.alaska.edu/Seis/EQ/tools/GISMO/


Regards,
Web services team

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.iris.washington.edu/pipermail/webservices/attachments/20120410/feea2edb/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Kx7dFXqcRTQxtqHQ0DZ_Sbv4sOiqhhteP_7_jfqjSKOmV21RzuPC9q58L7oOp2THqQaL5IYHHN-WNCXuut0DeH2iTySI7iQb9DI59pHjx4_XVaMLBwc.png
Type: image/png
Size: 3688 bytes
Desc: not available
URL: <http://www.iris.washington.edu/pipermail/webservices/attachments/20120410/feea2edb/attachment-0001.png>


More information about the webservices mailing list