wiki:getstation
Last modified 8 years ago Last modified on 02/26/12 15:37:34

Earthworm Module: getstation

Contributed by:

Function

Retrieves and prints a station list from the wave server. A subset of getmenu.

Details

Program getstation gets a station list from an Earthworm wave server.

Usage: getstation <wsv_file> <station> <component> <network> <location>
Where:
       <wsv_file>  = name of a file containing a waveserver TCP/IP 
                     addresses and port number in the form:
                     Waveserver aaa.bbb.ccc.ddd:ppppp
       <station>   = station code,   or wild as a wildcard
       <component> = component code, or wild as a wildcard
       <network>   = network code,   or wild as a wildcard
       <location>  = location code,  or wild as a wildcard

Example:

echo Waveserver 127.0.0.1:16022 > getstation_config.txt
getstation getstation_config.txt wild wild wild wild

Example output:

getstation: Read in the following 1 waveserver(s):
        127.0.0.1:16022

  Found SCNL: RAFT.EHZ.CC.-- on Waveserver 127.0.0.1:16022
  Found SCNL: NP1.HHZ.ZZ.01 on Waveserver 127.0.0.1:16022
  Found SCNL: NP1.HHZ.ZZ.-- on Waveserver 127.0.0.1:16022
  Found SCNL: NP1.HHN.ZZ.01 on Waveserver 127.0.0.1:16022
  Found SCNL: NP1.HHN.ZZ.-- on Waveserver 127.0.0.1:16022
  Found SCNL: NP1.HHE.ZZ.01 on Waveserver 127.0.0.1:16022
  Found SCNL: NP1.HHE.ZZ.-- on Waveserver 127.0.0.1:16022
  Found SCNL: DCP.199.NT.-- on Waveserver 127.0.0.1:16022
  Found SCNL: DCP.198.NT.-- on Waveserver 127.0.0.1:16022
  Found SCNL: DCP.197.NT.-- on Waveserver 127.0.0.1:16022
  Found SCNL: DCP.196.NT.-- on Waveserver 127.0.0.1:16022

Helpful Hints