Skip to main content

analysis of opensha modular solution files.

Project description

solvis

pypi python Build Status codecov

Features / Goals

  • analysis of opensha modular solution files.
  • opensha modular documentation
  • pandas, geopanda references

From a typical modular opensha Inversion Solution archive, we want to produce views that allow deep exploration of the solution and rupture set characteristics. Features:

  • user can choose from regions already defined in the solution
  • user can select ruptures matching
    • parent fault
    • named fault (fault system)
    • constraint region (from TargetMFDs)
  • user can create new region polygons
  • user can compare selections (e.g. Wellington East vs Wellington CBD vs Hutt Valley)
  • for a given query result show me dimensions...
    • mag, length, area, rate, section count, parent fault count, jump-length, jump angles, slip (various), partication, nucleation
    • filter, group on any of the dimensions

From here the user can answer questions like ....

  • create a MFD histogram in 0.01 bins from 7.0 to 7.30 (3O bins) for the WHV fault system

  • list all ruptures between 7.75 and 8.25, ordered by rupture-length

  • given a user-defined-function udf RuptureComplexity(rupture) rank ruptures in Region X by complexity, then by magnitude

  • regional MFD

    • participation (sum of rate) for every rupture though a point
    • nucleation/blame/culpability rate summed over the region normalised by the area of an area (region, named fault)

Install (Linux, OSX)

poetry add solvis

Windows Installation with pipwin (CHECK)

This information predates poetry and has not been check since ...

You will have to delete the fiona and shapely lines from requirements.txt, then run the following lines: pip3 install -r requirements

pip install pipwin
pipwin install gdal
pipwin install fiona
pipwin install shapely
pip install -r requirements.txt

Run

python3 -m demo

or python3 demo.py

Plotting

f = plt.figure() #nx = int(f.get_figwidth() * f.dpi) #ny = int(f.get_figheight() * f.dpi) f.figimage(data) plt.show()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

solvis-0.8.1.tar.gz (6.0 MB view hashes)

Uploaded Source

Built Distribution

solvis-0.8.1-py3-none-any.whl (33.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page