magma-rsam


Namemagma-rsam JSON
Version 1.4.2 PyPI version JSON
download
home_pageNone
SummaryCalculating RSAM Value
upload_time2024-11-20 02:39:34
maintainerNone
docs_urlNone
authorNone
requires_python>=3.11
licenseNone
keywords seismic volcano volcanology convert sds seiscomp mseed
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # magma-rsam
Python package to calculating RSAM Value

```python
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:
```python
rsam.apply_filter(freq_min=5.0, freq_max=18.0)
```

Run RSAM calculation:
```python
rsam.run()
```

## Plot RSAM
```python
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:
```python
plot_rsam.with_filter(
    freq_min=5.0,
    freq_max=18.0
)
```

Set `y_limit`:
```python
plot_rsam.set_y_lim(
    y_min=0,
    y_max=1200
)
```

Run plot:
```python
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
)
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "magma-rsam",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": "seismic, volcano, volcanology, convert, sds, seiscomp, mseed",
    "author": null,
    "author_email": "Martanto <martanto@live.com>, Devy Kamil Syahbana <devy.syahbana@gmail.com>, Syarif Abdul Manaf <riefmof@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/84/82/ea9ac0e65abc7b37ce684a3a4e7061e6c820039158e18f18de11fd163e53/magma_rsam-1.4.2.tar.gz",
    "platform": null,
    "description": "# magma-rsam\nPython package to calculating RSAM Value\n\n```python\nfrom magma_rsam import RSAM, PlotRsam\n\nrsam = RSAM(\n    seismic_dir=\"G:\\\\Output\\\\Converted\\\\SDS\",\n    station='AWU1',\n    channel='EHZ',\n    network = 'VG',\n    location = '00',\n    start_date = '2024-01-01',\n    end_date = '2024-07-31',\n    directory_structure = 'sds' # check https://github.com/martanto/magma-converter for supported directory\n)\n```\n\nApply filter:\n```python\nrsam.apply_filter(freq_min=5.0, freq_max=18.0)\n```\n\nRun RSAM calculation:\n```python\nrsam.run()\n```\n\n## Plot RSAM\n```python\nplot_rsam = PlotRsam(\n    station = 'AWU1',\n    channel = 'EHZ',\n    network = 'VG',\n    location = '00',\n    start_date = '2024-01-01',\n    end_date = '2024-07-31',\n    resample = '10min'\n)\n```\n\nPlot using filter:\n```python\nplot_rsam.with_filter(\n    freq_min=5.0,\n    freq_max=18.0\n)\n```\n\nSet `y_limit`:\n```python\nplot_rsam.set_y_lim(\n    y_min=0,\n    y_max=1200\n)\n```\n\nRun plot:\n```python\nplot_rsam.run(\n    metrics = ['mean', 'median'],\n    windows = ['1d'],\n    plot_as_log = False,\n    datetime_interval = 7,\n    colors = ['#FFEB3B', '#F44336'] # colors must have the same length of metrics*windows\n)\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Calculating RSAM Value",
    "version": "1.4.2",
    "project_urls": {
        "Homepage": "https://github.com/martanto/magma-rsam",
        "Issues": "https://github.com/martanto/magma-rsam/issues"
    },
    "split_keywords": [
        "seismic",
        " volcano",
        " volcanology",
        " convert",
        " sds",
        " seiscomp",
        " mseed"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6a5a86f66845866f91a9cfddc9fb3b7bb9a064424ae57289adf638c44b149026",
                "md5": "0d17c8ab38e4404589cc8b2cd4d4a6e7",
                "sha256": "6499228ca61679f70a4af9850a9114c1d49ed6bf6367919f6bb7c627d8343ed2"
            },
            "downloads": -1,
            "filename": "magma_rsam-1.4.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0d17c8ab38e4404589cc8b2cd4d4a6e7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 11304,
            "upload_time": "2024-11-20T02:39:33",
            "upload_time_iso_8601": "2024-11-20T02:39:33.005393Z",
            "url": "https://files.pythonhosted.org/packages/6a/5a/86f66845866f91a9cfddc9fb3b7bb9a064424ae57289adf638c44b149026/magma_rsam-1.4.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8482ea9ac0e65abc7b37ce684a3a4e7061e6c820039158e18f18de11fd163e53",
                "md5": "5a87c7eb4d4f63435b2f177b8f35622e",
                "sha256": "c20cb26fef021f443992131a71d42e64e6a475c4a19e9698e60499f2a5ab5bbb"
            },
            "downloads": -1,
            "filename": "magma_rsam-1.4.2.tar.gz",
            "has_sig": false,
            "md5_digest": "5a87c7eb4d4f63435b2f177b8f35622e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 9683,
            "upload_time": "2024-11-20T02:39:34",
            "upload_time_iso_8601": "2024-11-20T02:39:34.824567Z",
            "url": "https://files.pythonhosted.org/packages/84/82/ea9ac0e65abc7b37ce684a3a4e7061e6c820039158e18f18de11fd163e53/magma_rsam-1.4.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-20 02:39:34",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "martanto",
    "github_project": "magma-rsam",
    "github_not_found": true,
    "lcname": "magma-rsam"
}
        
Elapsed time: 0.35276s