Skip to main content

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
)

Metadata

Release files for magma-rsam 1.8.2

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-rsam 1.8.2
File Size Uploaded
magma_rsam-1.8.2.tar.gz 9.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for magma-rsam 1.8.2
File Interpreter ABI Platform
magma_rsam-1.8.2-py3-none-any.whl Python 3 none any Details

Total release size: 20.9 kB

Release files / magma_rsam-1.8.2.tar.gz

Download URL magma_rsam-1.8.2.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4f87e136ef2f39f3591cebed0b673e8debd5cb39800b3f7eb07935de2fc2e530
BLAKE2b-256 checksum
How to use checksums
dc14ed79f213895b370522598b9396f79ccb2dd1cca76c4d296f68743a230275
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.7

Release files / magma_rsam-1.8.2-py3-none-any.whl

Download URL magma_rsam-1.8.2-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e23e4d720d85a8b37763ea10c7dbcee9125bf2dcb515e7a49e7bdc7c7182d5a
BLAKE2b-256 checksum
How to use checksums
4bd7dad57ab1bfe90f0fd6cece11f82fdece0a722041bbfc4e20231f31bda851
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

1.8.2 This release

2 release files

1.8.1

2 release files

1.8.0

2 release files

1.7.3

2 release files

1.7.2

2 release files

1.7.1

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.1

2 release files

1.0.0

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