hvspatialpy


Namehvspatialpy JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://github.com/fjornelas/hvspatialpy
SummaryA python package for evaluating the spatial variability of a site utilizing the Horizontal-to-Vertical Spectral Ratio (HVSR)
upload_time2024-09-16 23:26:27
maintainerNone
docs_urlNone
authorFrancisco Javier Ornelas
requires_python>=3.8
licenseGNU General Public License v3
keywords hvsr geospatial statistics spatial variability
VCS
bugtrack_url
requirements Pygments jupyter-book numpy pandas matplotlib obspy scipy parzenpy tslearn scikit-learn rasterio ipywidgets IPython attrs coverage iniconfig packaging pluggy py pyparsing pytest pytest-cov tomli
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <!-- Our title -->
<div align="center">
  <h3 style="font-size: 25px;">hvspatialpy</h3>
</div>

<!-- Short description -->
<p align="center">
   A python package that evaluates the spatial variability of a site utilizing HVSR.
</p>

[![DOI](https://zenodo.org/badge/857518332.svg)](https://zenodo.org/doi/10.5281/zenodo.13770431)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/80fc3884310249019b8508415f516f53)](https://app.codacy.com/gh/fjornelas/hvspatialpy/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
![pypi - version](https://img.shields.io/pypi/v/hvspatialpy)
[![Pages](https://github.com/fjornelas/hvspatialpy/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/fjornelas/hvspatialpy/actions/workflows/pages/pages-build-deployment)
![GitHub License](https://img.shields.io/github/license/fjornelas/hvspatialpy)
[![Report Issues!](https://img.shields.io/badge/Report%20Issues-Here-1abc9c.svg)](https://github.com/fjornelas/hvspatialpy/issues)
[![Open Source?
Yes!](https://img.shields.io/badge/Open%20Source-Yes-green.svg)](https://github.com/fjornelas/hvspatialpy)

<div align="center">
    <h3 style=" font-size: 25px;">Authors</h3>
</div>

<!-- Short description -->

<p align="center">
   Francisco Javier G. Ornelas<sup>1</sup>, Scott J. Brandenberg<sup>1</sup>, Jonathan P. Stewart<sup>1</sup>
</p>

<sup>1</sup> University of California, Los Angeles (UCLA) <br>

<div style="text-align: center;">
    <h3 style=" font-size: 25px;">Table of Contents</h3>
</div>


 - [Introduction](#introduction)                                                      
 - [Background](#Background)   
 - [Getting started](#Getting-started) 
 - [Citation](#Citation)       
 - [Issues](#Issues)  

# Introduction

---

A python package that can evaluate the spatial variability of a site utilizing the Horizontal-to-Vertical Spectral Ratio (HVSR). 
This package works by taking multiple HVSR curves that were evalautes around a site, and compares them to a reference curve.
These curves are then separated further by frequency interval to evalaute the variability in terms of resonant peaks. 
This package was developed by Francisco Javier G. Ornelas under the supervision
of Dr. Jonathan P. Stewart and Dr. Scott J. Brandenberg at the University of California, Los Angeles (UCLA). 

# Background

---

HVSR is derived from ratios of the horizontal and vertical components
of a Fourier Amplitude Spectrum (FAS) from a 3-component recording of
microtremors or earthquakes. This is done by recording ground vibrations either from
temporarily-deployed or permanently-installed seismometers, for a relatively short
period of time (~1-2 hrs) or a longer period of time.

This method or technique was first proposed by Nogoshi and Igarashi (1971) 
<a href="https://www.scirp.org/reference/referencespapers?referenceid=3100696" target="_blank">[ABSTRACT]</a> and 
later popularized by Nakamura (1989) <a href="https://trid.trb.org/View/294184" target="_blank">[ABSTRACT]</a>.
The method works by assuming that the horizontal wavefield is amplified as seismic waves propagate
through the soil deposits compared to the vertical wavefield.

HVSR can be useful in site characterization since it can identify resonant frequencies at sites, through peaks in
an HVSR spectrum. Studies have also found that the lowest peak in HVSR spectra can be associated with the fundamental
frequency of a site (e.g., <a href="https://link.springer.com/article/10.1007/s10518-012-9413-4" target="_blank">[ABSTRACT]</a>).
The identification of these peaks is significant because they correlate with impedance contrasts at a given site. When multiple HVSR 
surveys are conducted at the same location, it becomes possible to illustrate the spatial variability of impedance contrasts across the site. Consequently, 
HVSR is a valuable tool for assessing and understanding the spatial heterogeneity of site characteristics

# Getting started

---

## Installation


hvspatialpy is available using pip and can be installed with:

- Jupyter Notebook
`pip install hvspatialpy`
- PyPI
`py -m pip install hvspatialpy`
## Usage


`hvspatialpy` is a python package that evaluates spatial variability at a site utilizing HVSR. 
The library contains various features, such as:
- A graphical user interface (GUI) to use in inputting parameters.
- The ability to vary the frequency interval of interest, to narrow down which peaks one wants to evaluate.
- A plot showing the approximate location of the site with all the tests done. These tests are color coded based on the
correlation type used (e.g., LCSS).

Examples of these can be found under the examples folder in the Github repository <a href="https://github.com/fjornelas/hvspatialpy" target="_blank">[GIT]</a>

### Example of Frequency Interval Selection and Test Locations

<img src="https://github.com/fjornelas/hvspatialpy/blob/main/fig/spatial_figure.png?raw=true" width="775">

# Citation

---

If you use hvspatialpy (directly or as a dependency of another package) for work resulting in an academic publication or
other instances, we would appreciate if you cite the following:

> Ornelas, F. J. G., Brandenberg, S. J., & Stewart, J. P. (2024). hvspatialpy (v1.0.0). Zenodo. https://doi.org/10.5281/zenodo.13770432.

# Issues

---

Please report any issues or leave comments on the <a href="https://github.com/fjornelas/hvspatialpy/issues" target="_blank">Issues</a> page.

## License

This project has been licensed under [![The GNU General Public License v3.0](https://www.gnu.org/graphics/gplv3-88x31.png "The GNU General Public License v3.0")](https://www.gnu.org/licenses/gpl-3.0.en.html)
more information about the license can be found here <a href="https://github.com/fjornelas/hvsrprocpy/blob/main/LICENSE" target="_blank">[LICENSE]</a>.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/fjornelas/hvspatialpy",
    "name": "hvspatialpy",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "HVSR, geospatial statistics, spatial variability",
    "author": "Francisco Javier Ornelas",
    "author_email": "jornela1@g.ucla.edu",
    "download_url": "https://files.pythonhosted.org/packages/d9/5c/0db95b91a7a3f1beceea32614def347dfd273c390f2e494a2bea63be1f74/hvspatialpy-1.0.0.tar.gz",
    "platform": null,
    "description": "<!-- Our title -->\r\n<div align=\"center\">\r\n  <h3 style=\"font-size: 25px;\">hvspatialpy</h3>\r\n</div>\r\n\r\n<!-- Short description -->\r\n<p align=\"center\">\r\n   A python package that evaluates the spatial variability of a site utilizing HVSR.\r\n</p>\r\n\r\n[![DOI](https://zenodo.org/badge/857518332.svg)](https://zenodo.org/doi/10.5281/zenodo.13770431)\r\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/80fc3884310249019b8508415f516f53)](https://app.codacy.com/gh/fjornelas/hvspatialpy/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)\r\n![pypi - version](https://img.shields.io/pypi/v/hvspatialpy)\r\n[![Pages](https://github.com/fjornelas/hvspatialpy/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/fjornelas/hvspatialpy/actions/workflows/pages/pages-build-deployment)\r\n![GitHub License](https://img.shields.io/github/license/fjornelas/hvspatialpy)\r\n[![Report Issues!](https://img.shields.io/badge/Report%20Issues-Here-1abc9c.svg)](https://github.com/fjornelas/hvspatialpy/issues)\r\n[![Open Source?\r\nYes!](https://img.shields.io/badge/Open%20Source-Yes-green.svg)](https://github.com/fjornelas/hvspatialpy)\r\n\r\n<div align=\"center\">\r\n    <h3 style=\" font-size: 25px;\">Authors</h3>\r\n</div>\r\n\r\n<!-- Short description -->\r\n\r\n<p align=\"center\">\r\n   Francisco Javier G. Ornelas<sup>1</sup>, Scott J. Brandenberg<sup>1</sup>, Jonathan P. Stewart<sup>1</sup>\r\n</p>\r\n\r\n<sup>1</sup> University of California, Los Angeles (UCLA) <br>\r\n\r\n<div style=\"text-align: center;\">\r\n    <h3 style=\" font-size: 25px;\">Table of Contents</h3>\r\n</div>\r\n\r\n\r\n - [Introduction](#introduction)                                                      \r\n - [Background](#Background)   \r\n - [Getting started](#Getting-started) \r\n - [Citation](#Citation)       \r\n - [Issues](#Issues)  \r\n\r\n# Introduction\r\n\r\n---\r\n\r\nA python package that can evaluate the spatial variability of a site utilizing the Horizontal-to-Vertical Spectral Ratio (HVSR). \r\nThis package works by taking multiple HVSR curves that were evalautes around a site, and compares them to a reference curve.\r\nThese curves are then separated further by frequency interval to evalaute the variability in terms of resonant peaks. \r\nThis package was developed by Francisco Javier G. Ornelas under the supervision\r\nof Dr. Jonathan P. Stewart and Dr. Scott J. Brandenberg at the University of California, Los Angeles (UCLA). \r\n\r\n# Background\r\n\r\n---\r\n\r\nHVSR is derived from ratios of the horizontal and vertical components\r\nof a Fourier Amplitude Spectrum (FAS) from a 3-component recording of\r\nmicrotremors or earthquakes. This is done by recording ground vibrations either from\r\ntemporarily-deployed or permanently-installed seismometers, for a relatively short\r\nperiod of time (~1-2 hrs) or a longer period of time.\r\n\r\nThis method or technique was first proposed by Nogoshi and Igarashi (1971) \r\n<a href=\"https://www.scirp.org/reference/referencespapers?referenceid=3100696\" target=\"_blank\">[ABSTRACT]</a> and \r\nlater popularized by Nakamura (1989) <a href=\"https://trid.trb.org/View/294184\" target=\"_blank\">[ABSTRACT]</a>.\r\nThe method works by assuming that the horizontal wavefield is amplified as seismic waves propagate\r\nthrough the soil deposits compared to the vertical wavefield.\r\n\r\nHVSR can be useful in site characterization since it can identify resonant frequencies at sites, through peaks in\r\nan HVSR spectrum. Studies have also found that the lowest peak in HVSR spectra can be associated with the fundamental\r\nfrequency of a site (e.g., <a href=\"https://link.springer.com/article/10.1007/s10518-012-9413-4\" target=\"_blank\">[ABSTRACT]</a>).\r\nThe identification of these peaks is significant because they correlate with impedance contrasts at a given site. When multiple HVSR \r\nsurveys are conducted at the same location, it becomes possible to illustrate the spatial variability of impedance contrasts across the site. Consequently, \r\nHVSR is a valuable tool for assessing and understanding the spatial heterogeneity of site characteristics\r\n\r\n# Getting started\r\n\r\n---\r\n\r\n## Installation\r\n\r\n\r\nhvspatialpy is available using pip and can be installed with:\r\n\r\n- Jupyter Notebook\r\n`pip install hvspatialpy`\r\n- PyPI\r\n`py -m pip install hvspatialpy`\r\n## Usage\r\n\r\n\r\n`hvspatialpy` is a python package that evaluates spatial variability at a site utilizing HVSR. \r\nThe library contains various features, such as:\r\n- A graphical user interface (GUI) to use in inputting parameters.\r\n- The ability to vary the frequency interval of interest, to narrow down which peaks one wants to evaluate.\r\n- A plot showing the approximate location of the site with all the tests done. These tests are color coded based on the\r\ncorrelation type used (e.g., LCSS).\r\n\r\nExamples of these can be found under the examples folder in the Github repository <a href=\"https://github.com/fjornelas/hvspatialpy\" target=\"_blank\">[GIT]</a>\r\n\r\n### Example of Frequency Interval Selection and Test Locations\r\n\r\n<img src=\"https://github.com/fjornelas/hvspatialpy/blob/main/fig/spatial_figure.png?raw=true\" width=\"775\">\r\n\r\n# Citation\r\n\r\n---\r\n\r\nIf you use hvspatialpy (directly or as a dependency of another package) for work resulting in an academic publication or\r\nother instances, we would appreciate if you cite the following:\r\n\r\n> Ornelas, F. J. G., Brandenberg, S. J., & Stewart, J. P. (2024). hvspatialpy (v1.0.0). Zenodo. https://doi.org/10.5281/zenodo.13770432.\r\n\r\n# Issues\r\n\r\n---\r\n\r\nPlease report any issues or leave comments on the <a href=\"https://github.com/fjornelas/hvspatialpy/issues\" target=\"_blank\">Issues</a> page.\r\n\r\n## License\r\n\r\nThis project has been licensed under [![The GNU General Public License v3.0](https://www.gnu.org/graphics/gplv3-88x31.png \"The GNU General Public License v3.0\")](https://www.gnu.org/licenses/gpl-3.0.en.html)\r\nmore information about the license can be found here <a href=\"https://github.com/fjornelas/hvsrprocpy/blob/main/LICENSE\" target=\"_blank\">[LICENSE]</a>.\r\n",
    "bugtrack_url": null,
    "license": "GNU General Public License v3",
    "summary": "A python package for evaluating the spatial variability of a site utilizing the Horizontal-to-Vertical Spectral Ratio (HVSR)",
    "version": "1.0.0",
    "project_urls": {
        "Bug Reports": "https://github.com/fjornelas/hvspatialpy/issues",
        "Docs": "https://fjornelas.github.io/hvspatialpy/",
        "Homepage": "https://github.com/fjornelas/hvspatialpy",
        "Source": "https://github.com/fjornelas/hvspatialpy/"
    },
    "split_keywords": [
        "hvsr",
        " geospatial statistics",
        " spatial variability"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2f2a9750e23a8712581934c97db83a3de2f985df756234b878ae09e6b8f4e7cf",
                "md5": "cc5d765d57cef0f752a43c4d669806ec",
                "sha256": "9ccc37a68dfb2b4ea859778f9844b2e74ee1f72c8ea4a504a09997da3e379fb5"
            },
            "downloads": -1,
            "filename": "hvspatialpy-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cc5d765d57cef0f752a43c4d669806ec",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 29279,
            "upload_time": "2024-09-16T23:26:25",
            "upload_time_iso_8601": "2024-09-16T23:26:25.613292Z",
            "url": "https://files.pythonhosted.org/packages/2f/2a/9750e23a8712581934c97db83a3de2f985df756234b878ae09e6b8f4e7cf/hvspatialpy-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d95c0db95b91a7a3f1beceea32614def347dfd273c390f2e494a2bea63be1f74",
                "md5": "bc4abf400760bb5cf6dcbb056bb017af",
                "sha256": "d5981e988c3c022d139f727a23d96682a4bb0abc57f86163f15756e1b0f475a9"
            },
            "downloads": -1,
            "filename": "hvspatialpy-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "bc4abf400760bb5cf6dcbb056bb017af",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 29443,
            "upload_time": "2024-09-16T23:26:27",
            "upload_time_iso_8601": "2024-09-16T23:26:27.214910Z",
            "url": "https://files.pythonhosted.org/packages/d9/5c/0db95b91a7a3f1beceea32614def347dfd273c390f2e494a2bea63be1f74/hvspatialpy-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-16 23:26:27",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "fjornelas",
    "github_project": "hvspatialpy",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "Pygments",
            "specs": []
        },
        {
            "name": "jupyter-book",
            "specs": []
        },
        {
            "name": "numpy",
            "specs": [
                [
                    ">=",
                    "1.20"
                ]
            ]
        },
        {
            "name": "pandas",
            "specs": [
                [
                    "<",
                    "1.5.4"
                ]
            ]
        },
        {
            "name": "matplotlib",
            "specs": []
        },
        {
            "name": "obspy",
            "specs": []
        },
        {
            "name": "scipy",
            "specs": []
        },
        {
            "name": "parzenpy",
            "specs": []
        },
        {
            "name": "tslearn",
            "specs": []
        },
        {
            "name": "scikit-learn",
            "specs": []
        },
        {
            "name": "rasterio",
            "specs": []
        },
        {
            "name": "ipywidgets",
            "specs": []
        },
        {
            "name": "IPython",
            "specs": []
        },
        {
            "name": "attrs",
            "specs": []
        },
        {
            "name": "coverage",
            "specs": []
        },
        {
            "name": "iniconfig",
            "specs": []
        },
        {
            "name": "packaging",
            "specs": []
        },
        {
            "name": "pluggy",
            "specs": []
        },
        {
            "name": "py",
            "specs": []
        },
        {
            "name": "pyparsing",
            "specs": []
        },
        {
            "name": "pytest",
            "specs": []
        },
        {
            "name": "pytest-cov",
            "specs": []
        },
        {
            "name": "tomli",
            "specs": []
        }
    ],
    "lcname": "hvspatialpy"
}
        
Elapsed time: 0.41350s