Program to read waveform messages from Earthworm transport ring and, for each message, prints the logo and header information to the screen.
Usage: sniffwave <ring name> <station> <component>
<network> <loc> <data flag y/n>
'wild' may be used for station, component or network code to wildcard them.
Example: sniffwave WAVE_RING PHOB wild NC wild n
or
sniffwave sniffwave WAVE_RING NP1 HHZ ZZ 01 n
This would result in the output:
Sniffing WAVE_RING for NP1.HHZ.ZZ.01 20060601_UTC_12:35:01 sniffwave: inRing flushed. NP1.HHZ.ZZ.01 1 i4 500 100.0 2006/06/01 17:34:55.00 (1149183295.0000) 2006/06/01 17:34:59.99 (1149183299.9900) i4 m100 t19 len2064 NP1.HHZ.ZZ.01 1 i4 500 100.0 2006/06/01 17:35:00.00 (1149183300.0000) 2006/06/01 17:35:04.99 (1149183304.9900) i4 m100 t19 len2064 NP1.HHZ.ZZ.01 1 i4 500 100.0 2006/06/01 17:35:05.00 (1149183305.0000) 2006/06/01 17:35:09.99 (1149183309.9900) i4 m100 t19 len2064 NP1.HHZ.ZZ.01 1 i4 500 100.0 2006/06/01 17:35:10.00 (1149183310.0000) 2006/06/01 17:35:14.99 (1149183314.9900) i4 m100 t19 len2064 NP1.HHZ.ZZ.01 1 i4 500 100.0 2006/06/01 17:35:15.00 (1149183315.0000) 2006/06/01 17:35:19.99 (1149183319.9900) i4 m100 t19 len2064 NP1.HHZ.ZZ.01 1 i4 500 100.0 2006/06/01 17:35:20.00 (1149183320.0000) 2006/06/01 17:35:24.99 (1149183324.9900) i4 m100 t19 len2064
where
"1" is the pin number (obsolete)
"i4" means that the data is four-byte integers in Intel byte order. "s2",
for example, would indicate two-byte, Sparc order
"500" means there are 500 samples in this packet.
"100.0" is the nominal sampling rate, as advertised by the producer of this
packet.
The remaining fields are the actual times of the first and last samples
in this packet, in human readable form, and (seconds since 1970).