This repository has been archived by the owner on Nov 10, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
Implements a new set of methods: Ground Motion Intensity Conversion Equations (GMICEs) #475
Open
g-weatherill
wants to merge
11
commits into
master
Choose a base branch
from
gmice
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains 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
Some comments:
|
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]) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you just forget to remove the above commented lines?
""" | ||
raise NotImplementedError("Method 'get_mean_and_stddevs' not " | ||
"available in GMICE object") | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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?
LGTM from the IT point of view except the two minor comments before. |
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_gmice
test 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
(g
in 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)