magma-seismic


Namemagma-seismic JSON
Version 0.0.6 PyPI version JSON
download
home_pageNone
SummaryMAGMA Seismic
upload_time2025-07-29 14:22:51
maintainerNone
docs_urlNone
authorNone
requires_python>=3.11
licenseNone
keywords magma indonesia volcano seismic
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # magma-seismic
Some tools for MAGMA to handle seismic

## 1. Install
```python
pip install magma-seismic
```
## 2. Import module
```python
from magma_seismic.download import Download
import magma_seismic
```
## 3. Check version
```python
magma_seismic.__version__
```
## 4. Download from Winston
```python
download = Download(
    station='LEKR',
    channel='EHZ',
    start_date='2025-05-26',
    end_date='2025-05-26',
    
    # (str, optional)
    # Change the output directory. 
    # Default to current directory
    output_directory=r'D:\Projects\magma-seismic', 
    
    # (bool, optional) 
    # Change to False to skip download 
    # when file already exists. 
    # Default False
    overwrite=True,
    
    # (bool, optional)
    # To show detailed process. 
    # Default to False
    verbose=True,
)
```

### 4.1 (Optional) Change Winston client
```python
download.set_client(
    host='winston address',
    port=123456, # winston port
    timeout=30
)
```
### 4.2 Download to IDDS
```python
download.to_idds(
    # (int, optional) 
    # Download per how many minutes. 
    # Default to 60 minutes
    period=60,
    
    # (bool, optional)
    # Merging or filling empty data/gaps. 
    # Default to False
    use_merge=True, 
)
```
### 4.3 Download to SDS
```python
download.to_sds( 
    # (bool, optional)
    # Merging or filling empty data/gaps. 
    # Default to False
    use_merge=True, 
    
    # (int, optional)
    # Use it if you unstable connection
    # It takes longer to download, but
    # can continue if the download failed.
    #
    # Download per one hour, then merged it as daily
    # Value in minutes
    chunk_size=60
)
```

## Check download result
```python
# will show list of failed download
download.failed

# will show list of successfully download
download.success 
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "magma-seismic",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": "magma, indonesia, volcano, seismic",
    "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/8a/b7/9f447c24711a26fa048d8e4867842a2ff325f8fc424b469f15b230e0dee0/magma_seismic-0.0.6.tar.gz",
    "platform": null,
    "description": "# magma-seismic\nSome tools for MAGMA to handle seismic\n\n## 1. Install\n```python\npip install magma-seismic\n```\n## 2. Import module\n```python\nfrom magma_seismic.download import Download\nimport magma_seismic\n```\n## 3. Check version\n```python\nmagma_seismic.__version__\n```\n## 4. Download from Winston\n```python\ndownload = Download(\n    station='LEKR',\n    channel='EHZ',\n    start_date='2025-05-26',\n    end_date='2025-05-26',\n    \n    # (str, optional)\n    # Change the output directory. \n    # Default to current directory\n    output_directory=r'D:\\Projects\\magma-seismic', \n    \n    # (bool, optional) \n    # Change to False to skip download \n    # when file already exists. \n    # Default False\n    overwrite=True,\n    \n    # (bool, optional)\n    # To show detailed process. \n    # Default to False\n    verbose=True,\n)\n```\n\n### 4.1 (Optional) Change Winston client\n```python\ndownload.set_client(\n    host='winston address',\n    port=123456, # winston port\n    timeout=30\n)\n```\n### 4.2 Download to IDDS\n```python\ndownload.to_idds(\n    # (int, optional) \n    # Download per how many minutes. \n    # Default to 60 minutes\n    period=60,\n    \n    # (bool, optional)\n    # Merging or filling empty data/gaps. \n    # Default to False\n    use_merge=True, \n)\n```\n### 4.3 Download to SDS\n```python\ndownload.to_sds( \n    # (bool, optional)\n    # Merging or filling empty data/gaps. \n    # Default to False\n    use_merge=True, \n    \n    # (int, optional)\n    # Use it if you unstable connection\n    # It takes longer to download, but\n    # can continue if the download failed.\n    #\n    # Download per one hour, then merged it as daily\n    # Value in minutes\n    chunk_size=60\n)\n```\n\n## Check download result\n```python\n# will show list of failed download\ndownload.failed\n\n# will show list of successfully download\ndownload.success \n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "MAGMA Seismic",
    "version": "0.0.6",
    "project_urls": {
        "Homepage": "https://github.com/martanto/magma-seismic",
        "Issues": "https://github.com/martanto/magma-seismic/issues"
    },
    "split_keywords": [
        "magma",
        " indonesia",
        " volcano",
        " seismic"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8138f6154d4cb56bd1f4e7dc656f75d1e966e37a1188b37163c0062d01b3e8c0",
                "md5": "1fe83dc8e2e41374d5daf92bfd9046d4",
                "sha256": "fd1d07dcf12fcd899e76006f096ef9eee47891dcc9eb41ef976579cf35af4a32"
            },
            "downloads": -1,
            "filename": "magma_seismic-0.0.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1fe83dc8e2e41374d5daf92bfd9046d4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 9897,
            "upload_time": "2025-07-29T14:22:49",
            "upload_time_iso_8601": "2025-07-29T14:22:49.768189Z",
            "url": "https://files.pythonhosted.org/packages/81/38/f6154d4cb56bd1f4e7dc656f75d1e966e37a1188b37163c0062d01b3e8c0/magma_seismic-0.0.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8ab79f447c24711a26fa048d8e4867842a2ff325f8fc424b469f15b230e0dee0",
                "md5": "900cbefc03216a209bb57ba5f6cacacb",
                "sha256": "eaf61a992944429dd5cbcb34189ecb48a2f5c796c05cb9b3e20121c255324baf"
            },
            "downloads": -1,
            "filename": "magma_seismic-0.0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "900cbefc03216a209bb57ba5f6cacacb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 8979,
            "upload_time": "2025-07-29T14:22:51",
            "upload_time_iso_8601": "2025-07-29T14:22:51.021084Z",
            "url": "https://files.pythonhosted.org/packages/8a/b7/9f447c24711a26fa048d8e4867842a2ff325f8fc424b469f15b230e0dee0/magma_seismic-0.0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-29 14:22:51",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "martanto",
    "github_project": "magma-seismic",
    "github_not_found": true,
    "lcname": "magma-seismic"
}
        
Elapsed time: 1.76243s