-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 25bc334
Showing
329 changed files
with
36,330 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 0219d013caa1b1205b286b991623880f | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Global Hazard Map (ghm) module | ||
############################## | ||
|
||
The :index:`Global Hazard Map` module contains code used to produce homogenised hazard maps using results obtained using a collection of PSHA input models. For the most part this is internal code used by GEM personnel for building various versions of the global seismic hazard maps. | ||
|
||
Creating a grid of sites for one of the models | ||
********************************************** | ||
Given a model, an almost equally spaced grid of points can be created using the `get_sites.py` tool. Note that this is atool added in 2022. The grids used for the maps created before the end of 2022 were obtained with an inhouse code that we abandoned in favour of the H3 library (see https://h3geo.org/). | ||
|
||
1. To learn about the information required by `get_sites.py`, you can run the following:: | ||
|
||
> python get_sites.py | ||
|
||
2. For example, for the construction of grid of points covering Europe you can use:: | ||
|
||
> python get_sites.py 'eur' /tmp/ conf.toml | ||
|
||
Note that this requires a configuration file in the .toml format (https://toml.io/en/). An example of configuration file is provided here https://github.com/GEMScienceTools/oq-mbtk/blob/master/openquake/ghm/grid/. It requires: the name of a shapefile (or .geojson) file that provides a mapping between each country and a model in the mosaic, a buffer distance used to add sites around a model and the resolution of the grid, specified as an integer (see https://h3geo.org/docs/core-library/restable). |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Installation | ||
============ | ||
The *oq-mbt* is installed with the procedure described in the following. | ||
Note that this procedure implies the installation of the OpenQuake engine. | ||
It was tested on Mac OS and Linux systems. | ||
|
||
* Open a terminal and move to the folder where to intend to install the tools; | ||
* Create a virtual environment with ``python3 -m venv venv`` | ||
* Activate the virtual environment ``source venv/bin/activate`` | ||
* Update pip ``pip install -U pip`` | ||
* Enter the virtual environment ``cd venv`` and create a directory for storing source code ``mkdir src; cd src`` | ||
* Clone the OpenQuake engine ``git clone [email protected]:gem/oq-engine.git`` | ||
* Complete a development installation with ``cd ..`` then ``pip install -r ./src/oq-engine/requirements-py36-macos.txt`` and finally ``pip install -e ./src/oq-engine/`` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Model ANalysis (man) module | ||
########################### | ||
|
||
The :index:`Model Analysis` module contains a number of tools for analyzing various characteristics of hazard input models. Below we provide a description of the main functionalities available. We start with a brief description of the structure of a Probabilistic Seismic Hazard Analysis (PSHA) Input Model for the OpenQuake Engine. | ||
|
||
The structure of a PSHA input model for the OpenQuake engine | ||
************************************************************ | ||
|
||
A PSHA Input Model contains two main components: The seismic source characterization and the ground-motion characterization. | ||
|
||
The Seismic Source Characterization | ||
=================================== | ||
|
||
The :index:`Seismic Source Characterisation` (SSC) contains the information necessary to describe the location of the earthquake sources, their geometries, the process with which they generate earthquakes and the associated (epistemic) uncertainties. | ||
|
||
In its simplest form, the Seismic Source Characterisation contains a Seismic Source Model (i.e. a list of earthquake sources) and the Seismic Source Logic Tree with one Branch Set containing one Branch. | ||
|
||
The Ground-Motion Characterization | ||
================================== | ||
|
||
The :index:`Ground-Motion Characterisation` contains the information necessary to describe the models used to compute shaking at the investigated sites for all ruptures admitted by the SSC and the associated epistemic uncertainties. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Model Building Toolkit (mbt) module | ||
################################### | ||
|
||
The :index:`Model Building Toolkit` module contains code for building a PSHA earthquake occurrence | ||
model. The main goals of this tools are to: | ||
|
||
1. Streamline the process of building a PSHA earthquake occurrence model | ||
2. Ensure that the process adopted to build the model is reproducible and | ||
extendable. | ||
|
||
Input Datasets and their Format | ||
******************************* | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
openquake | ||
========= | ||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
|
||
openquake |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
openquake.aft package | ||
===================== | ||
|
||
Subpackages | ||
----------- | ||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
|
||
openquake.aft.tests | ||
|
||
Submodules | ||
---------- | ||
|
||
openquake.aft.aftershock\_probabilities module | ||
---------------------------------------------- | ||
|
||
.. automodule:: openquake.aft.aftershock_probabilities | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
openquake.aft.rupture\_distances module | ||
--------------------------------------- | ||
|
||
.. automodule:: openquake.aft.rupture_distances | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: openquake.aft | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
openquake.aft.tests package | ||
=========================== | ||
|
||
Submodules | ||
---------- | ||
|
||
openquake.aft.tests.test\_aftershock\_probabilities module | ||
---------------------------------------------------------- | ||
|
||
.. automodule:: openquake.aft.tests.test_aftershock_probabilities | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
openquake.aft.tests.test\_rupture\_distances module | ||
--------------------------------------------------- | ||
|
||
.. automodule:: openquake.aft.tests.test_rupture_distances | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: openquake.aft.tests | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
openquake.bin package | ||
===================== | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: openquake.bin | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
openquake.cat.completeness package | ||
================================== | ||
|
||
Submodules | ||
---------- | ||
|
||
openquake.cat.completeness.analysis module | ||
------------------------------------------ | ||
|
||
.. automodule:: openquake.cat.completeness.analysis | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
openquake.cat.completeness.generate module | ||
------------------------------------------ | ||
|
||
.. automodule:: openquake.cat.completeness.generate | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
openquake.cat.completeness.mfd\_eval\_plots module | ||
-------------------------------------------------- | ||
|
||
.. automodule:: openquake.cat.completeness.mfd_eval_plots | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
openquake.cat.completeness.norms module | ||
--------------------------------------- | ||
|
||
.. automodule:: openquake.cat.completeness.norms | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
openquake.cat.completeness.plot module | ||
-------------------------------------- | ||
|
||
.. automodule:: openquake.cat.completeness.plot | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: openquake.cat.completeness | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
openquake.cat.hmg package | ||
========================= | ||
|
||
Submodules | ||
---------- | ||
|
||
openquake.cat.hmg.check module | ||
------------------------------ | ||
|
||
.. automodule:: openquake.cat.hmg.check | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
openquake.cat.hmg.hmg module | ||
---------------------------- | ||
|
||
.. automodule:: openquake.cat.hmg.hmg | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
openquake.cat.hmg.info module | ||
----------------------------- | ||
|
||
.. automodule:: openquake.cat.hmg.info | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
openquake.cat.hmg.map module | ||
---------------------------- | ||
|
||
.. automodule:: openquake.cat.hmg.map | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
openquake.cat.hmg.merge module | ||
------------------------------ | ||
|
||
.. automodule:: openquake.cat.hmg.merge | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
openquake.cat.hmg.plot module | ||
----------------------------- | ||
|
||
.. automodule:: openquake.cat.hmg.plot | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
openquake.cat.hmg.purge module | ||
------------------------------ | ||
|
||
.. automodule:: openquake.cat.hmg.purge | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
openquake.cat.hmg.utils module | ||
------------------------------ | ||
|
||
.. automodule:: openquake.cat.hmg.utils | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: openquake.cat.hmg | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
openquake.cat.parsers package | ||
============================= | ||
|
||
Submodules | ||
---------- | ||
|
||
openquake.cat.parsers.base module | ||
--------------------------------- | ||
|
||
.. automodule:: openquake.cat.parsers.base | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
openquake.cat.parsers.converters module | ||
--------------------------------------- | ||
|
||
.. automodule:: openquake.cat.parsers.converters | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
openquake.cat.parsers.gcmt\_ndk\_parser module | ||
---------------------------------------------- | ||
|
||
.. automodule:: openquake.cat.parsers.gcmt_ndk_parser | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
openquake.cat.parsers.generic\_catalogue module | ||
----------------------------------------------- | ||
|
||
.. automodule:: openquake.cat.parsers.generic_catalogue | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
openquake.cat.parsers.isf\_catalogue\_reader module | ||
--------------------------------------------------- | ||
|
||
.. automodule:: openquake.cat.parsers.isf_catalogue_reader | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: openquake.cat.parsers | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
Oops, something went wrong.