Skip to main content

Calculating RSAM Value

Project description

magma-rsam

Python package to calculating RSAM Value

from magma_rsam import RSAM, PlotRsam

rsam = RSAM(
    seismic_dir="G:\\Output\\Converted\\SDS",
    station='AWU1',
    channel='EHZ',
    network = 'VG',
    location = '00',
    start_date = '2024-01-01',
    end_date = '2024-07-31',
    directory_structure = 'sds' # check https://github.com/martanto/magma-converter for supported directory
)

Apply filter:

rsam.apply_filter(freq_min=5.0, freq_max=18.0)

Run RSAM calculation:

rsam.run()

Plot RSAM

plot_rsam = PlotRsam(
    station = 'AWU1',
    channel = 'EHZ',
    network = 'VG',
    location = '00',
    start_date = '2024-01-01',
    end_date = '2024-07-31',
    resample = '10min'
)

Plot using filter:

plot_rsam.with_filter(
    freq_min=5.0,
    freq_max=18.0
)

Set y_limit:

plot_rsam.set_y_lim(
    y_min=0,
    y_max=1200
)

Run plot:

plot_rsam.run(
    metrics = ['mean', 'median'],
    windows = ['1d'],
    plot_as_log = False,
    datetime_interval = 7,
    colors = ['#FFEB3B', '#F44336'] # colors must have the same length of metrics*windows
)

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_rsam-1.7.1.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

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

magma_rsam-1.7.1-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file magma_rsam-1.7.1.tar.gz.

File metadata

  • Download URL: magma_rsam-1.7.1.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for magma_rsam-1.7.1.tar.gz
Algorithm Hash digest
SHA256 16ff4601641491aee672ecb6ab68ba52b72d71f0311821376991577cd8199d30
MD5 4c520d895ab30826a92034a522cc0cf1
BLAKE2b-256 22308f70a09f453b9c7d4ec83d9044187842a0579abdc6905ea52044634b59ad

See more details on using hashes here.

File details

Details for the file magma_rsam-1.7.1-py3-none-any.whl.

File metadata

  • Download URL: magma_rsam-1.7.1-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for magma_rsam-1.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 958add05ecf62ad172cf37b38ddd77fa39fb8247e97098cd75fb5e4baee74d26
MD5 40ac67802feb62766714477c8efe1562
BLAKE2b-256 0991e03158a810a19f4ccbb237014c43dfd4ec094b73938dc487dc7b3419621b

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