GeoSeis
A Python package for exploring seismic waveform datasets and their station metadata. GeoSeis can discover MiniSEED files, summarize waveform records by station and channel, inspect StationXML metadata, and calculate station geometry.
Installation
Install the published package with pip:
python -m pip install geoseis
To work from a source checkout, install the development dependencies too:
poetry install --with dev
poetry run pytest
The dev group contains pytest and Twine. These tools are used to test and publish GeoSeis; they are not required to use the package.
Configure Data Paths
GeoSeis reads paths from GEOSEIS_-prefixed environment variables or a .env file in the current working directory. Environment variables take precedence. Copy the example file and update its values for your machine:
cp .env.example .env
Set the paths in .env:
GEOSEIS_PROJECT_ROOT=/absolute/path/to/your/project
GEOSEIS_RAW_DATA_DIR=/absolute/path/to/your/miniseed/data
GEOSEIS_RAW_DIR=/absolute/path/to/your/raw/metadata
The local .env file is ignored by Git. You can also define these variables in your shell or deployment environment instead. The settings values are pathlib.Path objects.
Quick Start
from geoseis.configs.configs import GeoSeisSettings
from geoseis.io.dataset_inventory import DatasetInventory
settings = GeoSeisSettings()
inventory = DatasetInventory(settings)
waveform_files = inventory.find_all_files()
stations = inventory.build_stations(waveform_files)
channels = inventory.build_channels()
channel_metadata = channels.get_info()
station = stations[("LK", "LKG01")]
channel_summary = station.get_aggregate()
channel_coverage = station.get_coverage()
build_stations() returns a mapping keyed by (network_code, station_code). Each StationData provides summaries for its waveform records. build_channels() reads the configured StationXML files; get_info() returns their channel metadata as a pandas DataFrame.
Development
Run the test suite from the repository root:
poetry run pytest
Metadata
Release files for geoseis 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| geoseis-0.0.1.tar.gz | 8.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| geoseis-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.4 kB
Release files / geoseis-0.0.1.tar.gz
| Download URL | geoseis-0.0.1.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1345a1cec5b831a9775c8a10fa4f048cbcf4731652ec2b02171ae3108601948
|
|
BLAKE2b-256 checksum How to use checksums |
d1636f4758f7bcfbf0c9fe0858c49ad67c189035ec2b2075de69c5c74dedc128
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.11.6 Darwin/24.6.0
|
Release files / geoseis-0.0.1-py3-none-any.whl
| Download URL | geoseis-0.0.1-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ee2cf12c35cb73d44d824636d90b4c18ce1a547f4a4f0cafeb930ed5b3e57b5
|
|
BLAKE2b-256 checksum How to use checksums |
b7aa86d7cfee8a8c48108efcad3f12d3453966220a7f52eb6c7d59618ea63a17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.11.6 Darwin/24.6.0
|