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
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