model-factory is a repository used in conjunction with 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:
-
National Human Settlement Layer - Physical Exposure - Social Fabric
-
documentation/
-
RiskProfileTaxonomy.xls
- Documentation of v1.0 risk profile indicators for review and comments.
-
- diagram of current opendrr postgis database, created in draw.io
-
OpenDRR Database/SQL Documentation:
-
-
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
- list of modules and versions required to be installed.
Refer to the releases section for latest version changes.
- Most scripts in this repository are run with keyword arguments.
Example:
$ 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