magma-seismic
Some tools for MAGMA to handle seismic
1. Install
pip install magma-seismic
2. Import module
from magma_seismic.download import Download
import magma_seismic
3. Check version
magma_seismic.__version__
4. Download from Winston
download = Download(
station='LEKR',
channel='EHZ',
start_date='2025-05-26',
end_date='2025-05-26',
# (str, optional)
# Change the output directory.
# Default to current directory
output_directory=r'D:\Projects\magma-seismic',
# (bool, optional)
# Change to False to skip download
# when file already exists.
# Default False
overwrite=True,
# (bool, optional)
# To show detailed process.
# Default to False
verbose=True,
)
4.1 (Optional) Change Winston client
download.set_client(
host='winston address',
port=123456, # winston port
timeout=30
)
4.2 Download to IDDS
download.to_idds(
# (int, optional)
# Download per how many minutes.
# Default to 60 minutes
period=60,
# (bool, optional)
# Merging or filling empty data/gaps.
# Default to False
use_merge=True,
)
4.3 Download to SDS
download.to_sds(
# (bool, optional)
# Merging or filling empty data/gaps.
# Default to False
use_merge=True,
# (int, optional)
# Use it if you unstable connection
# It takes longer to download, but
# can continue if the download failed.
#
# Download per one hour, then merged it as daily
# Value in minutes
chunk_size=60
)
Check download result
# will show list of failed download
download.failed
# will show list of successfully download
download.success
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
magma_seismic-0.0.6.tar.gz
(9.0 kB
view details)
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 magma_seismic-0.0.6.tar.gz.
File metadata
- Download URL: magma_seismic-0.0.6.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eaf61a992944429dd5cbcb34189ecb48a2f5c796c05cb9b3e20121c255324baf
|
|
| MD5 |
900cbefc03216a209bb57ba5f6cacacb
|
|
| BLAKE2b-256 |
8ab79f447c24711a26fa048d8e4867842a2ff325f8fc424b469f15b230e0dee0
|
File details
Details for the file magma_seismic-0.0.6-py3-none-any.whl.
File metadata
- Download URL: magma_seismic-0.0.6-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd1d07dcf12fcd899e76006f096ef9eee47891dcc9eb41ef976579cf35af4a32
|
|
| MD5 |
1fe83dc8e2e41374d5daf92bfd9046d4
|
|
| BLAKE2b-256 |
8138f6154d4cb56bd1f4e7dc656f75d1e966e37a1188b37163c0062d01b3e8c0
|