Skip to main content

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)

Source distribution for aitana-access 0.1.3
File Size Uploaded
aitana_access-0.1.3.tar.gz 59.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aitana-access 0.1.3
File Interpreter ABI Platform
aitana_access-0.1.3-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page