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, 
    
    # (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 

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.5.tar.gz (6.4 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.5-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: magma_seismic-0.0.5.tar.gz
  • Upload date:
  • Size: 6.4 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.5.tar.gz
Algorithm Hash digest
SHA256 5493d82ef9114eb6a69999f7ead46c49f3b6fe6956ea8247c0aee44e08613ee2
MD5 ebf176ef74a640b0da3019d96b9da225
BLAKE2b-256 ea959a686efdd557bebfc2b8014db41091f445a086b50b12de5a772d7381a155

See more details on using hashes here.

File details

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

File metadata

  • Download URL: magma_seismic-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.1 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fb52a9157e005c36a9c5654b9e9cef656a4c2ff10ee9a58bfe83928812701d58
MD5 5b2a5495cb5f1e35b9ac6ee067aec59b
BLAKE2b-256 352ea3cddf008f3d99d8030546b64531de6c96912d5b116372adff7fdf76ecde

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