Skip to main content

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

  1. Clone the github repository, in terminal under the desired directory:
$ git clone https://github.com/xtyangpsp/HypoInvPy.git
  1. cd to the repository folder in terminal and install the package with the parameters in setup.py.
$ pip install .
  1. 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.

Metadata

Release files for hypoinvpy 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hypoinvpy 0.7.0
File Size Uploaded Provenance Actions
hypoinvpy-0.7.0.tar.gz 5.2 MB Without provenance Details for hypoinvpy-0.7.0.tar.gz

Release files / hypoinvpy-0.7.0.tar.gz

Download URL hypoinvpy-0.7.0.tar.gz
Size 5.2 MB
Tags Source
SHA-256 checksum
How to use checksums
39838acb36dfd4b948c22cdbe41f7646fe7fc663a291d28de202f14d9f0a2a4e
BLAKE2b-256 checksum
How to use checksums
bf9ca83e56f62f778e39e4499e24306924fbf5fa9c5b0bb800989ddf971402c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.7

Security for hypoinvpy 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.7.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page