Waveform and Station Downloading Client
This tool was created to automate waveform and station data download. Please cite appropriate authorities if you are using the data for non-commercial purposes. Commercial use of the data without permission is forbidden. Please read the printed warnings from the data centers printed out.
Installation
pip install numpy
pip install afdcli
Station Data
get_stations(network, station, starttime, endtime, **kwargs)
Arguments:
network: Network code, wildcards allowed ("T?", "*")
station: Station code, wildcards allowed ("B?ZM", "B*")
starttime: start time string in ISO format at UTC ("2020-03-27T06:00:13Z")
endtime: start time string in ISO format at UTC ("2020-03-28T06:00:13Z")
Parameters:
attach_response: Returns instrument response
minlatitude, maxlatitude, minlongitude, maxlongitude: Window of coordinates of stations
Waveform Data
get_waveforms(network, station, starttime, endtime, **kwargs)
Arguments:
network: Network code, wildcards allowed ("T?", "*")
station: Station code, wildcards allowed ("B?ZM", "B*")
starttime: start time string in ISO format at UTC ("2020-03-27T06:00:13Z")
endtime: start time string in ISO format at UTC ("2020-03-28T06:00:13Z")
Parameters:
minlatitude, maxlatitude, minlongitude, maxlongitude: Window of coordinates of stations
data_format: "mseed" for miniseed or "fseed" for fullseed formats
filename: filename to save the file (not implemented)
Examples
downloading waveforms:
from afdcli.client import Client
c = Client()
c.get_waveforms('*','BO*', '2020-06-25T17:19:16Z', '2020-06-26T17:20:16Z')
downloading stations with instrument response
from afdcli.client import Client
c = Client()
c.get_stations('*','BO*', '2020-06-25T17:19:16Z', '2020-06-26T17:20:16Z', instrument_response=True)
Metadata
Release files for afdcli 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| afdcli-0.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Release files / afdcli-0.3.2-py3-none-any.whl
| Download URL | afdcli-0.3.2-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
705505818014b16fc1aa06eaf9ba6c866100d9be4164f3961dc207b84e4840a0
|
|
BLAKE2b-256 checksum How to use checksums |
b20f819a964f4879bd94ebe5982cd700d3497eff66e7f883af10d9b4e4351cf2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9
|
Security for afdcli 0.3.2
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.