earthscope-s3-client
Read miniSEED waveforms directly from S3, mirroring obspy.clients.fdsn.Client.get_waveforms.
Defaults to EarthScope's public AWS Open Data bucket (s3://earthscope-geophysical-data/miniseed,
us-east-2, unsigned/anonymous access), but every aspect of the connection (bucket path, region,
credentials, endpoint) and the key layout is configurable, so the same client works against any S3
bucket that stores day-volume miniSEED files.
Installing
pip install -e . # editable install for development
pip install -e ".[test]" # + pytest, for running tests/
Usage
from obspy import UTCDateTime
from earthscope_s3_client import EarthScopeS3Client
client = EarthScopeS3Client()
st = client.get_waveforms(
network="IU", station="ANMO", location="00", channel="BHZ",
starttime=UTCDateTime("2023-01-01T00:00:00"),
endtime=UTCDateTime("2023-01-01T00:10:00"),
)
st.write("waveformData.mseed", format="MSEED")
Against a private bucket with a different key layout:
client = EarthScopeS3Client(
bucket_path="s3://my-miniseed",
anon=False,
profile_name="my_profile",
key_template="{station}/{year}/{doy}/{station}.{network}.{year}.{doy}",
)
Running tests
pytest tests/
Building and publishing to PyPI
python -m pip install build twine
python -m build # writes dist/*.tar.gz and dist/*.whl
python -m twine upload --repository testpypi dist/* # try it on TestPyPI first
python -m twine upload dist/* # then the real PyPI
Bump the version in pyproject.toml (and __version__ in src/earthscope_s3_client/__init__.py)
before each release.
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 earthscope_s3_client-0.1.0.tar.gz.
File metadata
- Download URL: earthscope_s3_client-0.1.0.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8aea2a31e9b30e37f22a2189745e1894d36a83dc4c80d48652aa8325d53c2f5
|
|
| MD5 |
ca1ef216bb1e2bf2b27bc381f2f52dd6
|
|
| BLAKE2b-256 |
1d534d3d4a4e6f5e039d3b4d768cb5f1063756154336496cca0970111cc74843
|
File details
Details for the file earthscope_s3_client-0.1.0-py3-none-any.whl.
File metadata
- Download URL: earthscope_s3_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5dfd568fb213bb47d14108b7c1f82d051696b7b4da99932683442036b01e60a2
|
|
| MD5 |
144fa1c60186acc432e65e7ec969b76a
|
|
| BLAKE2b-256 |
4f663fc7cd9a28e2a958deb6450258fd02e8cdb61408bbbb3f9f6ecc948de655
|