Calculating Displacement Seismic Amplitude Ratio (DSAR) Value
Project description
Displacement Seismic Amplitude Ratio (DSAR)
How to Use
Install using pip:
pip install dsar
Import dsar
module
from dsar import DSAR, PlotDsar
Initiate DSAR
dsar = DSAR(
input_dir="G:\\Output\\Converted\\SDS",
directory_structure='SDS',
start_date="2024-01-01",
end_date="2024-04-22",
station="RUA3",
channel="EHZ",
resample="10min" # default
)
See https://github.com/martanto/magma-converter for supported directory_structure
.
Run DSAR
dsar.run()
Results/Output directory
Output directory would be as the same folder where DSAR code is running. It will create output
directory.
Plot DSAR
Initiate DSAR plot
plot = PlotDsar(
start_date="2024-01-01",
end_date="2024-04-22",
station="RUA3",
channel="EHZ"
)
Get combined dataframe to plot
df = plot.df
The output of dataframe will be saved as CSV:
✅ Saved to D:\Project\dsar\output\dsar\VG.RUA3.00.EHZ\combined_10min_VG.RUA3.00.EHZ.csv
Plot DSAR:
plot.plot(
interval_day=7,
y_min=85,
y_max=225,
save=True,
file_type='jpg',
)
Output:
✅ Saved to D:\Project\dsar\output\dsar\VG.RUA3.00.EHZ\combined_10min_VG.RUA3.00.EHZ.csv
📷 Figure saved to: D:\Project\dsar\output\figures\dsar\VG.RUA3.00.EHZ\VG.RUA3.00.EHZ_10min_2024-01-01-2024-04-22.jpg
Figures:
References
Caudron, C., et al., 2019, Change in seismic attenuation as a long-term precursor of gas-driven eruptions: Geology, https://doi.org/10.1130/G46107.1
Chardot, L., Jolly, A. D., Kennedy, B. M., Fournier, N., & Sherburn, S. (2015). Using volcanic tremor for eruption forecasting at White Island volcano (Whakaari), New Zealand. Journal of Volcanology and Geothermal Research, 302, 11–23. https://doi.org/10.1016/j.jvolgeores.2015.06.001
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
Built Distribution
File details
Details for the file dsar-1.1.0.tar.gz
.
File metadata
- Download URL: dsar-1.1.0.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c35b8083d0828304d74e0bd301bcf5a2af1951268335757d9e6d65b8e9990a63 |
|
MD5 | 19a9da2b92058d92d6810d1c24a51a60 |
|
BLAKE2b-256 | 9a1d6602177ce251ea075b5bb04bfe484751e876618233b15833fc0628619293 |
File details
Details for the file dsar-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: dsar-1.1.0-py3-none-any.whl
- Upload date:
- Size: 9.8 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 | 3322b21e80eed20ea434e191f5002e993c33f9b8e1df25fec9236188a55058fa |
|
MD5 | d8859f2db728951ab9b2018270e4bb89 |
|
BLAKE2b-256 | 8122889794153f4b29c668734145e1173f01a782beea6c4cc14217493c781b43 |