Skip to main content

MAGMA Seismic

Project description

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, 
)

Check download result

# will show list of failed download
download.failed

# will show list of successfully download
download.success 

Project details


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.4.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

magma_seismic-0.0.4-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file magma_seismic-0.0.4.tar.gz.

File metadata

  • Download URL: magma_seismic-0.0.4.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for magma_seismic-0.0.4.tar.gz
Algorithm Hash digest
SHA256 7e1138edb03ea575cabb15394e548307fa358c0c80bc0352b31144d2b1a78034
MD5 7e55e891359d9002a65296a42702a219
BLAKE2b-256 3fc675a9529259df05d2df329c4e99d724d2bc7ec02e3cc14f1eb4ea1736c155

See more details on using hashes here.

File details

Details for the file magma_seismic-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: magma_seismic-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for magma_seismic-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c94bd67c58b2d00742ba1c863647340af6a0b943af37ac221b51d0dcc875ee6f
MD5 be34f22485ac241ccdb03c9ef9253fa0
BLAKE2b-256 4bb89215503d65250d408401ceae1038bf44c199d75d898128994a584ee0cf8a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page