Skip to main content

MAGMA Seismic

Project description

magma-seismic

Some tools for MAGMA to handle seismic

Install

pip install magma-seismic

Import module

from magma_seismic.download import Download
import magma_seismic

Check version

magma_seismic.__version__

Download from Winston

download = Download(
    station='LEKR',
    channel='EHZ',
    start_date='2025-05-26',
    end_date='2025-05-26',
    
    # (int, optional) 
    # Download per how many minutes. 
    # Default to 60 minutes
    period=60,
    
    # (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,
)

# (optional) you can skip this step 
# if you don't need to change the w
# inston server address and port
download.set_client(
    host='winston address',
    port=123456, #winston port
    timeout=30
)

# Start to download
download.to_idds(
    # (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.3.tar.gz (5.1 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.3-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: magma_seismic-0.0.3.tar.gz
  • Upload date:
  • Size: 5.1 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.3.tar.gz
Algorithm Hash digest
SHA256 e0ef8fbc3600653677689190b88ddd265d720e9c63cd5439d63b776d5cebe5fb
MD5 371ab1be377db22d9607519574277bdb
BLAKE2b-256 db62f7b31d810e7dae32b76897843a9f552e3814d9764913cf698a6afb7a6427

See more details on using hashes here.

File details

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

File metadata

  • Download URL: magma_seismic-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.8 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 701cdaf86ab3955a345df8c67bb4b29144c4885d77d49ecf2ef87618aa438ed2
MD5 8190c149e99ff8265459cb1fc7e2b29a
BLAKE2b-256 f1a53351329faabd9ecae5be2391fcbd072ae4198516b0177aa4b7f4a5529700

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