obspy.db.scripts.indexer
Note
This script automatically installs during the setup procedure with the
name $ obspy-obspy.db.scripts.indexer
. For more info on the command line options,
please run $ obspy-obspy.db.scripts.indexer --help
.
Alternatively you can also execute $ python -m obspy.db.scripts.indexer
.
A command-line program that indexes seismogram files into a database.
- copyright:
The ObsPy Development Team (devs@obspy.org)
- license:
GNU Lesser General Public License, Version 3 (https://www.gnu.org/copyleft/lesser.html)
Usage Examples
Run indexer as daemon continuously crawling the given paths but index only the last 24 hours (-r24) of a waveform archive:
#!/bin/bash DB=postgresql://username:password@localhost:5432/database DATA=/path/to/archive/2010,/path/to/archive/2011,/path/to/arclink LOG=/path/to/indexer.log ./obspy-indexer -v -i0.0 -n1 -u$DB -d$DATA -r24 -l$LOG &
Run only once and remove duplicates:
./obspy-indexer -v -i0.0 --run-once --check-duplicates -n1 -u$DB -d$DATA