Help with web service Fetch scripts¶
- Help with web service Fetch scripts
Overview of scripts¶
Fetch time series and optionally, related metadata, matching SAC Poles and Zeros and matching SEED RESP files. Time series data are returned in miniSEED format, metadata is saved as a simple ASCII list.
Fetch station metadata and output simple ASCII. Optionally, the XML returned by the service can be saved.
Fetch event parameters and print simple ASCII summary.
- Download the latest version of desired scripts from the Files section
- Make the scripts executable (e.g 'chmod +x FetchData-2013.077')
- Run script to print usage message
Tutorial with examples¶
The scripts are written in Perl and should run with any relatively recent Perl interpreter. In some cases, particularly for older Perl releases, you might need to install some required modules, namely XML::SAX and Bundle::LWP (libwww-perl). The procedure to install these modules is system dependent, for most Unix/Linux OSes they can be installed using the package management system. In addition to Perl only network access to the IRIS DMC's web server is needed.
For large data requests installing the XML::SAX::ExpatXS Perl module will significantly increase the parsing speed of XML metadata used by all scripts.