aitana-access
Pure I/O access layer for volcano monitoring data: GeoNet TILDE observations, GeoNet WFS earthquake catalogues, and seismic/acoustic waveforms (local SDS archive, FDSN web services, or GeoNet's open S3 data archive).
Installation
pip install aitana-access
Usage
TILDE observations
from datetime import datetime
from aitana.access.tilde import tilde_request
df = tilde_request(
start_date=datetime(2019, 1, 1),
end_date=datetime(2019, 1, 3),
domain="envirosensor",
name="lake-temperature",
station="RU001",
sensor="01",
) # -> pandas.DataFrame indexed by datetime, columns ["obs", "err"]
WFS earthquake catalogue
from datetime import datetime
from aitana.access.wfs import wfs_request
cat = wfs_request(
start_date=datetime(2020, 1, 1),
end_date=datetime(2020, 2, 1),
center_point="176.17+-39.28",
radius=20000, # metres
maxdepth=30, # km
) # -> pandas.DataFrame indexed by origintime
Provide either radius + center_point, or polygon (as
"lon1+lat1,lon2+lat2,...,lonN+latN,lon1+lat1").
Seismic waveforms
SeismicData fetches waveforms from one or more clients (tried in order,
first success wins) and yields obspy.Trace/Stream objects with
instrument sensitivity removed.
from obspy import UTCDateTime
from aitana.access.seismic import SeismicData, FDSNWaveforms, S3Waveforms
clients = [
S3Waveforms(),
FDSNWaveforms(url="https://service.geonet.org.nz"),
]
ds = SeismicData(clients)
for trace in ds.get_waveforms(
net="NZ", site="WIZ", loc="10", comp="HHZ",
start=UTCDateTime("2020-01-01"),
end=UTCDateTime("2020-01-02"),
):
print(trace)
Other waveform clients: SDSWaveforms (local SDS archive), MockSDSWaveforms
(synthetic data for testing). All implement get_waveforms(net, site, loc, comp, startdate, enddate).
FastAPI service
aitana.access.api.AitanaAPI exposes /waveform and /spectrogram endpoints
over HTTP.
python -m aitana.access.api --rootdir /data --port 8003
License
See the repository root for license information.
Metadata
Release files for aitana-access 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aitana_access-0.1.3.tar.gz | 59.7 kB | Without provenance | Details for aitana_access-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aitana_access-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for aitana_access-0.1.3-py3-none-any.whl |
Total release size: 78.4 kB
Release files / aitana_access-0.1.3.tar.gz
| Download URL | aitana_access-0.1.3.tar.gz |
|---|---|
| Size | 59.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d916224e19dea4d72686775bf7e53646bc063d1750615b2bbdee68bac2ddc98f
|
|
BLAKE2b-256 checksum How to use checksums |
51eebca3593708199042984caac8a7ddd670b5da6b3de688c0043d05cc2aeb59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.12
|
Release files / aitana_access-0.1.3-py3-none-any.whl
| Download URL | aitana_access-0.1.3-py3-none-any.whl |
|---|---|
| Size | 18.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
26cefa3f688cb00b6acffdd7f11015322649ad1db5bbbe047eaf054e88e0a32d
|
|
BLAKE2b-256 checksum How to use checksums |
62b13f6fcf6862511ea531747772c7ae73fc762106d3eeba70c4a453243848c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.12
|
Security for aitana-access 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.