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:
documentation/
$ pip install -r requirements.txt
Refer to the releases section for latest version changes.
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