-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #150 from OpenDRR/updates_july2022
Updates july2022
- Loading branch information
Showing
49 changed files
with
10,104 additions
and
1,029 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,36 @@ | ||
# model-factory | ||
![PyPI - Version Python](https://img.shields.io/pypi/pyversions/openquake.engine) | ||
|
||
model-factory est un référentiel utilisé en conjonction avec le référentiel [opendrr-api](https://github.com/OpenDRR/opendrr-api). | ||
Il contient de la documentation, et des scripts (python et sql) pour transformer les données sources d'opendrr (exposition, recensement, et sorties OpenQuake etc.) en indicateurs de profil de risque pour : | ||
|
||
- [Couche nationale des établissements humains](https://github.com/OpenDRR/national-human-settlement) | ||
- [Exposition physique](https://github.com/OpenDRR/national-human-settlement/tree/main/physical-exposure) | ||
- [Tissu social](https://github.com/OpenDRR/national-human-settlement/tree/main/social-fabric) | ||
- [Scénarios de tremblement de terre](https://github.com/OpenDRR/earthquake-scenarios) | ||
- [Risque sismique probabiliste](https://github.com/OpenDRR/seismic-risk-model) | ||
|
||
|
||
- **documentation/** | ||
- Taxonomie du profil de risque.xls | ||
- Documentation des indicateurs de profil de risque v1.0 pour examen et commentaires. | ||
- [opendrr.drawio](https://github.com/OpenDRR/opendrr-data-store/blob/master/scripts/Diagrams) | ||
- Diagramme de la base de données postgis actuelle d'opendrr, créé dans draw.io. | ||
- **scripts/** | ||
- Série de scripts python et sql qui sont utilisés dans le référentiel opendrr-api pour construire la base de données PostGIS. | ||
- exigences.txt | ||
- liste des modules et des versions à installer. `$ pip install -r requirements.txt` | ||
|
||
Consultez la [section des versions](https://github.com/OpenDRR/model-factory/releases) pour connaître les derniers changements de version. | ||
|
||
|
||
### Comment fonctionne le script | ||
- La plupart des scripts de ce référentiel sont exécutés avec des arguments sous forme de mots-clés. | ||
|
||
Exemple : | ||
``` | ||
$ python3 DSRA_outputs2postgres.py --dsraModelDir="https://github.com/OpenDRR/openquake-models/tree/master/deterministic/outputs" --columnsINI="DSRA_outputs2postgres.ini" | ||
``` | ||
Ou demandez de l'aide aux scripts pour savoir comment les exécuter : | ||
``` | ||
$ python3 DSRA_outputs2postgres.py --help |
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 |
---|---|---|
@@ -1,21 +1,36 @@ | ||
# model-factory | ||
OpenQuake compilation and data manipulation scripts | ||
|
||
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/openquake.engine) | ||
|
||
model-factory is a repository used in conjunction with [opendrr-api](https://github.com/OpenDRR/opendrr-api) repository. | ||
It contains documentation, and scripts (python and sql) to transform opendrr source data (exposure, census, and OpenQuake outputs etc.) into risk profile indicators for: | ||
|
||
## Install dependencies | ||
`$ pip install -r requirements.txt` | ||
- [National Human Settlement Layer](https://github.com/OpenDRR/national-human-settlement) | ||
- [Physical Exposure](https://github.com/OpenDRR/national-human-settlement/tree/main/physical-exposure) | ||
- [Social Fabric](https://github.com/OpenDRR/national-human-settlement/tree/main/social-fabric) | ||
- [Earthquake Scenarios](https://github.com/OpenDRR/earthquake-scenarios) | ||
- [Probabilistic Earthquake Risk](https://github.com/OpenDRR/seismic-risk-model) | ||
|
||
## Run Scripts With Keyword Arguments | ||
Example: | ||
|
||
``` | ||
$ python3 DSRA_outputs2postgres.py --dsraModelDir="https://github.com/OpenDRR/openquake-models/tree/master/deterministic/outputs" --columnsINI="DSRA_outputs2postgres.ini" | ||
``` | ||
- **documentation/** | ||
- RiskProfileTaxonomy.xls | ||
- Documentation of v1.0 risk profile indicators for review and comments. | ||
- [opendrr.drawio](https://github.com/OpenDRR/opendrr-data-store/blob/master/scripts/Diagrams) | ||
- diagram of current opendrr postgis database, created in draw.io | ||
- **scripts/** | ||
- Series of python and sql scripts that are used in opendrr-api repository to build the PostGIS database. | ||
- requirements.txt | ||
- list of modules and versions required to be installed. `$ pip install -r requirements.txt` | ||
|
||
Or ask scripts for help on how to run them: | ||
Refer to the [releases section](https://github.com/OpenDRR/model-factory/releases) for latest version changes. | ||
|
||
|
||
### How the script works | ||
- Most scripts in this repository are run with keyword arguments. | ||
|
||
Example: | ||
``` | ||
$ python3 DSRA_outputs2postgres.py --help | ||
$ python3 DSRA_outputs2postgres.py --dsraModelDir="https://github.com/OpenDRR/openquake-models/tree/master/deterministic/outputs" --columnsINI="DSRA_outputs2postgres.ini" | ||
``` | ||
Or ask scripts for help on how to run them: | ||
``` | ||
$ python3 DSRA_outputs2postgres.py --help |
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
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
Oops, something went wrong.