Skip to main content

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 

Metadata

Release files for magma-seismic 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for magma-seismic 0.0.6
File Size Uploaded
magma_seismic-0.0.6.tar.gz 9.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for magma-seismic 0.0.6
File Interpreter ABI Platform
magma_seismic-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 18.9 kB

Release files / magma_seismic-0.0.6.tar.gz

Download URL magma_seismic-0.0.6.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
eaf61a992944429dd5cbcb34189ecb48a2f5c796c05cb9b3e20121c255324baf
BLAKE2b-256 checksum
How to use checksums
8ab79f447c24711a26fa048d8e4867842a2ff325f8fc424b469f15b230e0dee0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.7

Release files / magma_seismic-0.0.6-py3-none-any.whl

Download URL magma_seismic-0.0.6-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd1d07dcf12fcd899e76006f096ef9eee47891dcc9eb41ef976579cf35af4a32
BLAKE2b-256 checksum
How to use checksums
8138f6154d4cb56bd1f4e7dc656f75d1e966e37a1188b37163c0062d01b3e8c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.7

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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