hypoinvpy


Namehypoinvpy JSON
Version 0.5.0 PyPI version JSON
download
home_pagehttps://github.com/xtyangpsp/HypoInvPy
SummaryA Python interface for HypoInverse earthquake relocation software
upload_time2023-12-30 03:22:16
maintainerXiaotao Yang
docs_urlNone
authorXiaotao Yang
requires_python>=3.7
licenseMIT license
keywords seismology earthquake relocation hypoinverse
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # HypoInvPy
*A Python interface for HypoInverse earthquake relocation software*

This package is not intended to show documentation of how to use `hypoinverse`. Instead, we focus on buiding an user-friendly Python interface to run `hypoinverse`. For detailed documentation of `hypoinverse`, please read the documentation for hypoinverse in `hyp1.40/doc/hyp1.40.pdf`. The documentation for this interface package is in `doc/HypoInvPy_manual.pdf`.

## Credit note
The codes and workflow in this package are modified and simplified from Hypo-Interface-Py (https://github.com/YijianZhou/Hypo-Interface-Py). The hypoinverse version is 1.4 and can be downloaded from USGS (https://www.usgs.gov/software/hypoinverse-earthquake-location). 

## Installation
1. Create and activate a Python virtual environment `hypoinv`. This is optional but recommended. This will help isolate the computational needs from other packages. This will also help avoid version incompatibility in case new packages for some codes are updated in the `base` conda environment. However, since `HypoInvPy` doesn't currently need complicated packages, running under the `base` environment may just work fine. 
```
$ conda create -n hypoinv -c conda-forge jupyter numpy scipy pandas python cartopy obspy mpi4py
```
Then, activate the environment with: `$ conda activate hypoinv`

2. Clone the github repository, in terminal under the desired directory:
```
$ git clone https://github.com/xtyangpsp/HypoInvPy.git
```

3. `cd` to the repository folder in terminal and install the package with the parameters in `setup.py`.
```
$ pip install .
```

4. Create jupyter notebook kernel with the environment (after activating the environment).
```
$ pip install --user ipykernel
$ python -m ipykernel install --user --name=hypoinv
```

## Run the hypoinverse example:
1. Make sure hypo1.40 has been installed on your computer. Download the version from the USGS website (https://www.usgs.gov/software/hypoinverse-earthquake-location). For your convinience, a copy of the hyp1.40 codes is available under folder `hyp1.40`.
2. In terminal under the `example` directory, run the jupyter notebook `HypoInvPy_run_example.ipynb`
3. The output directory includes the resultant earthquake catalogs.

## Upcoming changes:
* Add visualization functionalities, e.g., earthquake locations and depth distribution and temporal sequence, etc.





            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/xtyangpsp/HypoInvPy",
    "name": "hypoinvpy",
    "maintainer": "Xiaotao Yang",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "stcyang@gmail.com",
    "keywords": "seismology,earthquake relocation,hypoinverse",
    "author": "Xiaotao Yang",
    "author_email": "stcyang@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/d5/30/3048ea70b17dd16823877c488333ac44722a48c8165158c9a49ffb767029/hypoinvpy-0.5.0.tar.gz",
    "platform": null,
    "description": "# HypoInvPy\n*A Python interface for HypoInverse earthquake relocation software*\n\nThis package is not intended to show documentation of how to use `hypoinverse`. Instead, we focus on buiding an user-friendly Python interface to run `hypoinverse`. For detailed documentation of `hypoinverse`, please read the documentation for hypoinverse in `hyp1.40/doc/hyp1.40.pdf`. The documentation for this interface package is in `doc/HypoInvPy_manual.pdf`.\n\n## Credit note\nThe codes and workflow in this package are modified and simplified from Hypo-Interface-Py (https://github.com/YijianZhou/Hypo-Interface-Py). The hypoinverse version is 1.4 and can be downloaded from USGS (https://www.usgs.gov/software/hypoinverse-earthquake-location). \n\n## Installation\n1. Create and activate a Python virtual environment `hypoinv`. This is optional but recommended. This will help isolate the computational needs from other packages. This will also help avoid version incompatibility in case new packages for some codes are updated in the `base` conda environment. However, since `HypoInvPy` doesn't currently need complicated packages, running under the `base` environment may just work fine. \n```\n$ conda create -n hypoinv -c conda-forge jupyter numpy scipy pandas python cartopy obspy mpi4py\n```\nThen, activate the environment with: `$ conda activate hypoinv`\n\n2. Clone the github repository, in terminal under the desired directory:\n```\n$ git clone https://github.com/xtyangpsp/HypoInvPy.git\n```\n\n3. `cd` to the repository folder in terminal and install the package with the parameters in `setup.py`.\n```\n$ pip install .\n```\n\n4. Create jupyter notebook kernel with the environment (after activating the environment).\n```\n$ pip install --user ipykernel\n$ python -m ipykernel install --user --name=hypoinv\n```\n\n## Run the hypoinverse example:\n1. Make sure hypo1.40 has been installed on your computer. Download the version from the USGS website (https://www.usgs.gov/software/hypoinverse-earthquake-location). For your convinience, a copy of the hyp1.40 codes is available under folder `hyp1.40`.\n2. In terminal under the `example` directory, run the jupyter notebook `HypoInvPy_run_example.ipynb`\n3. The output directory includes the resultant earthquake catalogs.\n\n## Upcoming changes:\n* Add visualization functionalities, e.g., earthquake locations and depth distribution and temporal sequence, etc.\n\n\n\n\n",
    "bugtrack_url": null,
    "license": "MIT license",
    "summary": "A Python interface for HypoInverse earthquake relocation software",
    "version": "0.5.0",
    "project_urls": {
        "Download": "https://github.com/xtyangpsp/HypoInvPy/archive/refs/tags/v0.5.0.tar.gz",
        "Homepage": "https://github.com/xtyangpsp/HypoInvPy"
    },
    "split_keywords": [
        "seismology",
        "earthquake relocation",
        "hypoinverse"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d5303048ea70b17dd16823877c488333ac44722a48c8165158c9a49ffb767029",
                "md5": "85fa9703a89ac228611af043b3197a87",
                "sha256": "b14f949ddbe0870f4823bccb120f6dcea3712fe34e6293e15bb22f045e9be9ef"
            },
            "downloads": -1,
            "filename": "hypoinvpy-0.5.0.tar.gz",
            "has_sig": false,
            "md5_digest": "85fa9703a89ac228611af043b3197a87",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 6293810,
            "upload_time": "2023-12-30T03:22:16",
            "upload_time_iso_8601": "2023-12-30T03:22:16.762984Z",
            "url": "https://files.pythonhosted.org/packages/d5/30/3048ea70b17dd16823877c488333ac44722a48c8165158c9a49ffb767029/hypoinvpy-0.5.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-30 03:22:16",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "xtyangpsp",
    "github_project": "HypoInvPy",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "hypoinvpy"
}
        
Elapsed time: 0.20572s