[Back to main page]

SAC Transfer Protocol client

stp

Download

stp-client.pl.zip (2020-12-28)


Installation

You might need to install a perl library Term::ReadKey.

If you type

$) perl -c ./stp-client.pl

, you might encounter error below.

Can't locate Term/ReadKey.pm in @INC

Just type this one.

$) cpan install Term::ReadKey

...
...
...
/usr/bin/make install -- OK


Tutorial

$) chmod +x ./stp-client.pl
$) ./stp-client.pl

+++++++++++++++++++++++++++
| SAC Transfer Protocol   |
|    (----.---.--.--)     |
+++++++++++++++++++++++++++

Type help(h) to see usage.

---------------------------


id: [something you know]
pw: [something you know]

your accessible networks: NN

STP) dir data/001 (change the directory where files are saved)
STP) evt 2020/11/30,13:41:40.0 35.75 129.38 9.0 0.9(ML) O(-200) O(600) NN 030D DPZ (-200 to 600 s to origin time)
STP) evt 2020/11/30,13:41:40.0 35.75 129.38 9.0 0.9(ML) P(-200) S(500) NN 030D DPZ (from P - 200 s to S + 500 s)
STP) dir data/002
STP) evt 2020/11/30,13:41:40.0 35.75 129.38 9.0 0.9(ML) O(-200) S(500) NN 040D DP_ (3 components)
STP) evt 2020/11/30,13:41:40.0 35.75 129.38 9.0 0.9(ML) O(-200) S(500) NN % DPZ (all stations)

STP) quit (to quit)


See also input, help, sta, etc.

--Note--
Using P( ) or S( ) flag slows down the process. O( ) is recommended.



Example 1

For downloading sac files for multiple earthquakes with a program JWEED (v4.1r3, https://ds.iris.edu/ds/nodes/dmc/software/downloads/jweed/).

example01.zip (2021-02-16)