Convert CVGHM seismic data structures into SDS format.
Project description
magma-converter
Python package to convert CVGHM seismic data structures into SDS format.
Install
pip install magma-converter
Supported Directory Structure (Indonesia)
| Volcano | directory_structure | Group |
|---|---|---|
| Anak Krakatau | kra,krakatau,anak krakatau,anak-krakatau |
SAC |
| Awu | awu |
Seisan |
| Bromo | bro,bromo |
SAC |
| Dieng** | die,dieng |
SAC, Seisan |
| Dukono | duk,dukono |
Seisan |
| Ibu | ibu |
Seisan |
| Ijen* | ije,ijen |
Ijen |
| Kelud | kld,kelud |
Kelud |
| Lamongan | lam,lamongan |
SAC |
| Lewotobi Laki-laki | lwk,lewotobi laki-laki |
Seisan |
| Lokon | lok,lokon |
Seisan |
| Mahawu | mah,mahawu |
Seisan |
| Marapi | mar,marapi |
SAC |
| Papandayan | pap,papandayan |
SAC |
| Rinjani | rin,rinjani |
SAC |
| Ruang | rua,ruang |
Seisan |
| Semeru | smr,semeru |
SAC |
| Soputan | sop,soputan |
Seisan |
| Tambora | tam,tambora |
Seisan |
| Tandikat | tan,tandikat |
SAC |
*) Special case
**) Depends on time. For Dieng, SAC was used from 2013-08-12 to 2021-09-15 and 2023-10-16 to 2024-08-15. Seisan was used from 2021-03-26 to 2023-10-16.
How to
Run this codes:
from magma_converter import Convert
input_dir = 'L:\\Ijen\\Seismik Ijen'
output_dir = 'L:\\converted'
start_date: str = "2019-01-01"
end_date: str = "2019-12-31"
convert = Convert(
input_dir=input_dir,
output_directory=output_dir,
directory_structure='ijen', # check table above
min_completeness=30, # convert to SDS if completeness of data greater than 30%
).between_dates(start_date, end_date)
convert.run()
Check converting results
convert.success
convert.failed
Example output for convert.success or convert.failed:
[{'trace_id': 'VG.KRA1.00.EHZ',
'date': '2018-01-01',
'start_time': '2018-01-01 00:00:00',
'end_time': '2018-01-01 23:59:59',
'sampling_rate': 100.0,
'completeness': 99.7532986111111,
'file_location': 'L:\\converted\\SDS\\2018\\VG\\KRA1\\EHZ.D\\VG.KRA1.00.EHZ.D.2018.001'},
{'trace_id': 'VG.KRA2.00.EHZ',
'date': '2018-01-01',
'start_time': '2018-01-01 00:00:00',
'end_time': '2018-01-01 23:59:59',
'sampling_rate': 100.0,
'completeness': 99.99770833333334,
'file_location': 'L:\\converted\\SDS\\2018\\VG\\KRA2\\EHZ.D\\VG.KRA2.00.EHZ.D.2018.001'},
{'trace_id': 'VG.KRA3.00.EHZ',
'date': '2018-01-01',
'start_time': '2018-01-01 00:00:00',
'end_time': '2018-01-01 23:59:59',
'sampling_rate': 100.0,
'completeness': 99.79653935185185,
'file_location': 'L:\\converted\\SDS\\2018\\VG\\KRA3\\EHZ.D\\VG.KRA3.00.EHZ.D.2018.001'},
{'trace_id': 'VG.PULO.00.EHZ',
'date': '2018-01-01',
'start_time': '2018-01-01 00:00:00',
'end_time': '2018-01-01 23:59:59',
'sampling_rate': 100.0,
'completeness': 98.79126157407407,
'file_location': 'L:\\converted\\SDS\\2018\\VG\\PULO\\EHZ.D\\VG.PULO.00.EHZ.D.2018.001'},
{'trace_id': 'VG.SRTG.00.EHZ',
'date': '2018-01-01',
'start_time': '2018-01-01 00:00:00',
'end_time': '2018-01-01 23:59:59',
'sampling_rate': 100.0,
'completeness': 99.995625,
'file_location': 'L:\\converted\\SDS\\2018\\VG\\SRTG\\EHZ.D\\VG.SRTG.00.EHZ.D.2018.001'},
{'trace_id': 'VG.INFR.00.EHZ',
'date': '2018-01-01',
'start_time': '2018-01-01 00:00:00',
'end_time': '2018-01-01 23:59:59',
'sampling_rate': 100.0,
'completeness': 99.99770833333334,
'file_location': 'L:\\converted\\SDS\\2018\\VG\\INFR\\EHZ.D\\VG.INFR.00.EHZ.D.2018.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
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_converter-1.8.20.tar.gz.
File metadata
- Download URL: magma_converter-1.8.20.tar.gz
- Upload date:
- Size: 24.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e607b286f68b13cc071236cd4c01cab7fd3e89fb4dfbfc5544f3095952afd2d6
|
|
| MD5 |
b5dfeb3739360a257441ff4c568d7ad5
|
|
| BLAKE2b-256 |
aeb7e8d8837ef4b1d738ea103c333bed6afc3ce1d8e3af24c5da23c7887fae44
|
File details
Details for the file magma_converter-1.8.20-py3-none-any.whl.
File metadata
- Download URL: magma_converter-1.8.20-py3-none-any.whl
- Upload date:
- Size: 29.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccda6c501cc5098784e3b27824dc533654ad1a295a113684b53ef25bd89a3f06
|
|
| MD5 |
3aec3e80ca5c6e0c8157d3a8a743d1f9
|
|
| BLAKE2b-256 |
2c0832210180730b942977fd9454a84179869b42ee8a87fac922b5e9f749a473
|