Pacific Northwest Seismic Data Store Access Tool
Project description
PNWstore: Pacific Northwest Storage
This is a python-based seismic data query and selection toolbox for Denolle-lab members. The server runs at https://pnwstore1.ess.washington.edu/ and is only accessible within the UW network. More details about the data and the server can be found in the documentation.
What data are in pnwstore?
- mseed data from PNW (1980 - 2023)
- network metadata (1980 - 2022)
- earthquake catalog contributed by
- Pacific Northwest Seismic Network (1980-2022)
- list of known data issues could be found here.
Why use this package?
- The waveforms stored in
.mseedare indexed with mseedindex, which would dramatically improve data loading efficiency. This is very useful especially when working with large amounts of data. .xmlfiles contain all events and station metadata, but loading and parsing them requires extra time. It is recommended to extract key informations and index them in a database system.- The pnwstore client emulates the ObsPy FDSN client so that transition to the local data requires little changes to the codebase.
Usage
Get waveform data
from obspy import UTCDateTime
from pnwstore import WaveformClient
client = WaveformClient()
starttime = UTCDateTime("2020-01-01T00:00:00")
endtime = starttime + 3600
s = client.get_waveforms(network="UW", station="SHW", channel="EH?",
starttime=starttime, endtime=endtime)
Get event catalog
from obspy import UTCDateTime
from pnwstore import EventClient
client = EventClient(USERNAME, PASSWORD)
client.query(mintime = UTCDateTime("1980-01-01T00:00:00"),
maxtime = UTCDateTime("2021-01-01T00:00:00"),
minlatitude = 40, maxlatitude = 50,
minlongitude = -128, maxlongitude = -120,
minmagnitude = 5.9)
# A pandas DataFrame is returned.
# source_id origin_timestamp year month day doy hour minute second microsecond latitude longitude depth magnitude contributor number_of_pick
# 0 uw10313718 748582000.0 1993 9 21 264 3 26 55 630000 42.316 -122.027 8.560 5.9 uw 380
# 1 uw10313838 748590000.0 1993 9 21 264 5 45 35 230000 42.358 -122.058 8.530 6.0 uw 427
# 2 uw10530748 983386000.0 2001 2 28 59 18 54 32 830000 47.149 -122.727 51.798 6.8 uw 98
Get picks
from obspy import UTCDateTime
from pnwstore import PickClient
client = PickClient(USERNAME, PASSWORD)
client.query(network = "UW", station = "SHW", phase = "P*",
mintime = UTCDateTime("2000-01-01"),
maxtime = UTCDateTime("2000-01-10"))
# A pandas DataFrame is returned.
# pick_id source_id network station location channel timestamp year month day doy hour minute second microsecond phase evaluation_mode uncertainty backazimuth contributor
# 0 1133412 uw10485733 UW SHW -- EHZ 947343000.0 2000 1 8 8 14 57 23 680000 P manual 0.05 79.0 UW
# 1 1133508 uw10485213 UW SHW -- EHZ 947142000.0 2000 1 6 6 6 52 56 790000 P manual 0.08 63.6 UW
# 2 1133612 uw10484688 UW SHW -- EHZ 946890000.0 2000 1 3 3 9 0 14 280000 P manual 0.22 222.1 UW
Get station metadata
from obspy import UTCDateTime
from pnwstore import StationClient
client = StationClient(USERNAME, PASSWORD)
client.query(network = "UW", channel = "EH?",
mintime = UTCDateTime("2010-01-15"),
maxtime = UTCDateTime("2000-01-16"))
# A pandas DataFrame is returned.
# channel_id network station location channel latitude longitude elevation depth starttime endtime sampling_rate azimuth
# 0 45376 UW SHW -- EHZ 46.1935 -122.236 1425.00 0.00 867283200.0 1207008000.0 100.0000 None
# 1 45377 UW SHW -- EHZ 46.1935 -122.236 1425.00 0.00 1207008000.0 1536105600.0 100.0000 None
Reference
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pnwstore-0.2.1.tar.gz.
File metadata
- Download URL: pnwstore-0.2.1.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b5bd1cc15f8f7aa90c3a3046c9c53d89009f64f4795100877f0528fe3daa291
|
|
| MD5 |
ca9fc46086741849fc59c00a9f084240
|
|
| BLAKE2b-256 |
a034b687bf42ad470aa40d7b479e2eb31a0e0455864ca510537654deae880be6
|
Provenance
The following attestation bundles were made for pnwstore-0.2.1.tar.gz:
Publisher:
release.yml on niyiyu/pnwstore
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pnwstore-0.2.1.tar.gz -
Subject digest:
8b5bd1cc15f8f7aa90c3a3046c9c53d89009f64f4795100877f0528fe3daa291 - Sigstore transparency entry: 1220011776
- Sigstore integration time:
-
Permalink:
niyiyu/pnwstore@1a5fda00228f5f3e8e90e079f936394931a9a03c -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/niyiyu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1a5fda00228f5f3e8e90e079f936394931a9a03c -
Trigger Event:
release
-
Statement type:
File details
Details for the file pnwstore-0.2.1-py3-none-any.whl.
File metadata
- Download URL: pnwstore-0.2.1-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28fbb8bb0c6796c5f425db4e855965f7043f1ba647c5e7e13878048a0364af97
|
|
| MD5 |
856515b5bd85b8752f55bf1bf9108205
|
|
| BLAKE2b-256 |
34de99fde431084aad38ccd44188acb86c2771071243859a86884e7c0c43c0e1
|
Provenance
The following attestation bundles were made for pnwstore-0.2.1-py3-none-any.whl:
Publisher:
release.yml on niyiyu/pnwstore
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pnwstore-0.2.1-py3-none-any.whl -
Subject digest:
28fbb8bb0c6796c5f425db4e855965f7043f1ba647c5e7e13878048a0364af97 - Sigstore transparency entry: 1220011853
- Sigstore integration time:
-
Permalink:
niyiyu/pnwstore@1a5fda00228f5f3e8e90e079f936394931a9a03c -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/niyiyu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1a5fda00228f5f3e8e90e079f936394931a9a03c -
Trigger Event:
release
-
Statement type: