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
Release history Release notifications | RSS feed
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.5.0.tar.gz
(9.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file magma_rsam-1.5.0.tar.gz.
File metadata
- Download URL: magma_rsam-1.5.0.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef355394c992e657fdff4d0716e119e6d8e53eb2ec13ed87a94028904a77bffb
|
|
| MD5 |
558060df1cd57d77cee4fea9f9c743c6
|
|
| BLAKE2b-256 |
b10b3b036f75a7594cfc581717fef54338e8f89a3c4168b8f328160581c9ec37
|
File details
Details for the file magma_rsam-1.5.0-py3-none-any.whl.
File metadata
- Download URL: magma_rsam-1.5.0-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d549a97ae189bbefb1c7a002269e809eb95a5a32a632f3a9872a1b9ba3b4ab3
|
|
| MD5 |
bf4290ddf96aeafc2c513f589fcc23f1
|
|
| BLAKE2b-256 |
4f96b11c69f2ba0e509907cda6a592b13bd5759f24a865bd075432677ecef16e
|