A practical seismological database library in Python.
Documentation: http://jkmacc-lanl.github.io/pisces
Repository: https://github.com/jkmacc-LANL/pisces
Pisces connects your Python analysis environment to a seismological database.
Don't use separate data-management language, like SQL or shell scripts. Just use Python, and connect to SciPy, ObsPy, AIMBAT, pyTDMT, StreamPick, and the rest of the scientific Python ecosystem.
SQL relational databases, Python, SQLAlchemy, and the SciPy stack are widely-used, free, and open-source technologies. Because of this, you can leverage knowledge from sites, like StackOverflow, and other disciplines, like web development, for database examples, troubleshooting, or tricks.
Python is multi-platform, SQLAlchemy is database-agnostic, and the whole stack is free and open-source. Write code that will not eventually have to be abandoned due to project size, system architecture, or budgetary or licensing concerns.
- Import/export waveforms directly to/from your database.
- Easy importing/exporting of text "flat-file" data tables.
- Build database queries using Python objects and methods (SQLAlchemy), not by concatenating SQL strings.
- Integration with ObsPy.
- Geographic filtering of results.
Requires:
- NumPy
- ObsPy
- SQLAlchemy>0.7
- C, Fortran compiler
Install from PyPI:
pip install pisces-db
Install current master from GitHub:
pip install git+https://github.com/jkmacc-LANL/pisces