SCUG SeisComP3 Examples - Odp
SCUG SeisComP3 Examples - Odp
SCUG SeisComP3 Examples - Odp
Examples
of by Dr. Bernd Weber
usage gempa GmbH
Howto check the event history
scevtlog
is a module to log the complete event processing
history in form of single updates and summary
files
How to create an EQ-bulletin
scbulletin
is a module to export event information to a
bulletin file
from database
scbulletin E gfz2009groy 3
d mysql://sysop:sysop@localhost/seiscomp3
from file
scbulletin i gfz2009groy.xml f xml 3
How to export information from DB
scxmldump
is dumping information into a XML file
Complete event information
scxmldump d
mysql://sysop:sysop@localhost/seiscomp3 E
gfz2009groy PAMf o gfz2009groy.xml
Inventory information
scxmldump I d
mysql://sysop:sysop@localhost/seiscomp3 o
inventory.xml
Config information
scxmldump C d
mysql://sysop:sysop@localhost/seiscomp3 o
inventory.xml
Howto copy Mseed from/to archive
scart
is exporting and importing Mseed from/to archive
Exporting all stations for a time window
scart dsvE t '20090406 01:30~20090406
01:32' ~/seiscomp3/acquisition/archive >
sorted.mseed
Exporting a single network for a time window
scart dsvE t '20080901 15:00~20080901
16:00' n GE ~/seiscomp3/acquisition/archive >
sorted.mseed
Importing MSeed file
scart I sorted.mseed
~/seiscomp3/acquisition/archive
How to export event based MSeed
scevtstreams + scart
Create a MSeed file containing all stations used for
earthquake processing
scevtstreams E gfz2009groy d
mysql://sysop:sysop@localhost/seiscomp3 L 0 m 300 |
scart dsvE list ~/seiscomp3/acquisition/archive >
gfz2009groy.mseed
Howto visualize waveforms
scrttv
is displaying waveform data
real-time
scrttv H localhost I slink://localhost:18000
offline (file)
scrttv sorted.mseed buffersize 86400
archive
scrttv I arclink://localhost:18001 end '2010
0903 17:30:00' buffersize 3600
Import xml files into DB
scdb
is writting information into the DB
Import an event xml file into the DB
scdb i gfz2009waff.xml d
mysql://sysop:sysop@localhost/seiscomp3 b 1000
Restore a SeisComP3 configuration
scdb i inventory.xml d
mysql://sysop:sysop@localhost/seiscomp3 b 1000
scdb i config.xml d
mysql://sysop:sysop@localhost/seiscomp3 b 1000
Dump events in a time span to file
scevtls
is listing all event IDs in a given time span
List events
scevtls d
mysql://sysop:sysop@localhost/seiscomp3
begin "20070801 00:00:00" end "20070802
00:00:00"
Exporting all events in a given time span to a file
for i in `scevtls d
mysql://sysop:sysop@localhost/seiscomp3 begin
"20080101 00:00:00" end "20090101 00:00:00"`;do
scxmldump d mysql://sysop:sysop@localhost/seiscomp3
E $i PAMf o $i.xml;done
Howto monitor the performance
scm
is monitoring the system performance
Monitor running clients
scm H localhost
scm.cfg
memailplugin.sendEmail = true
memailplugin.recipients = "[email protected]“
memailplugin.filterMeanInterval = 1
memailplugin.requiredClients = scautopick,
scautoloc, scevent, scmag, scamp
Monitor performance
memailplugin.filter= "cpuusage>100“
Retrieve information from the DB
scquery
is executing predefined mysql queries
Listing all stations in a given Region
queries.cfg:
queries = stationsInRegion
query.stationsInRegion.description = "Returns stations in a
given region (Lat min, Lat max, Lon min, Lon max="
query.stationsInRegion = "select code, latitude, longitude
from Station where latitude > ##minLat## and latitude <
##maxLat## and longitude > ##minLong## and longitude <
##maxLong##;"
scquery d
mysql://sysop:sysop@localhost/seiscomp3
stationsInRegion 0 50 0 50
Howto make a offlineplayback
Offline playback
sh playback.sh gfz2009abcd.mseed gfz2009abcd.xml
Create bulletin
scbulletin i gfz2009abcd.xml f xml 3