This repository was archived by the owner on Nov 10, 2017. It is now read-only.
Implements a new set of methods: Ground Motion Intensity Conversion Equations (GMICEs)#475
Open
g-weatherill wants to merge 11 commits intomasterfrom
Open
Implements a new set of methods: Ground Motion Intensity Conversion Equations (GMICEs)#475g-weatherill wants to merge 11 commits intomasterfrom
g-weatherill wants to merge 11 commits intomasterfrom
Conversation
Contributor
|
Some comments:
|
Contributor
|
The tests are running here: https://ci.openquake.org/job/zdevel_oq-hazardlib/650 |
micheles
reviewed
Oct 10, 2016
| # imt = SA(period, damping) | ||
| # | ||
| # expected_results[imt] = numpy.array([value]) | ||
|
|
Contributor
There was a problem hiding this comment.
Did you just forget to remove the above commented lines?
| """ | ||
| raise NotImplementedError("Method 'get_mean_and_stddevs' not " | ||
| "available in GMICE object") | ||
|
|
Contributor
There was a problem hiding this comment.
I do not understand the docstring " Doesn't function in this case but is an abstract method of the GMPE". Why it does not function? You mean that this cannot be an abc.abstractmethod for some reason? Which reason?
Contributor
|
LGTM from the IT point of view except the two minor comments before. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ground Motion Intensity Conversion Equations (GMICEs) refer to a class of empirical function that allows for conversion between conventional ground motion measures (e.g. PGA, PGV, Sa) and macroseismic intensity. Whilst not necessarily (as yet) integral to conventional PSHA analysis they are an important component of Shakemap(TM) applications of the oq-hazardlib. GMICEs work in both directions: from ground motion to macroseismic intensity and vice-versa. Both are supported here. Furthermore, we anticipate two possible use cases: 1) observed (or reported) values of ground motion and/or intensity are to be input to the GMICEs, 2) ground motions and/or intensities are predicted at a site using a conventional GMPE or IPE. Both cases are supported here too.
The implementation here is intended for subsequent integration into the Shakemap software (https://github.com/usgs/shakemap)
In a manner similar to GSIMs, the GMICEs are tested using custormised verification tables. A
check_gmicetest suite has also been added in a manner similar to that used by the GSIMs.This PR implements the following:
openquake.hazardlib.gmice.base.GMICE)WordenEtAl2012) and one case with magnitude and distance dependence (WordenEtAl2012MagDist)GMICE Usage
In the following we demonstrate the usage of the GMICEs. Here we generate a set of ground motions based on a scenario, using the Cauzzi et al (2014) GMPE, and a set of macroseismic intensities from the same scenario using the Allen et al. (2012) IPE. We adopt the Worden et al. (2012) GMICE with magnitude and distance dependence
Use the context objects to set up a rupture scenario (here Mw = 6.5, rrup from 1.0 km to 100 km, Vs30 (random between 180 and 800 m/s)
The GMICE has some additional metadata that can be accessed:
(1.0, 10.0)'Worden et al. (2012) [Magnitude & Distance Dependent]''scale_wgrw12.ps'We can convert from the PGA to MMI as follows:
Or, from the GMPE directly:
Similarly, we can convert from MMI to PGA via:
and directly via the IPE
The test verification tables are generated directly from the corresponding Shakemap class (https://github.com/usgs/shakemap/blob/master/shakemap/gmice/wgrw12.py). Note that, contrary to the original Shakemap implementation, accelerations are input fractions of
g(gin our case equal to 9.80665 m/s/s). PGV is input in cm/s.In addition to the OpenQuake team we encourage feedback from the shakemap developers (@cbworden, @emthompson-usgs, @mhearne-usgs)