{"id":19300940,"url":"https://github.com/opendrr/model-factory","last_synced_at":"2025-04-22T10:32:22.974Z","repository":{"id":38832628,"uuid":"230955413","full_name":"OpenDRR/model-factory","owner":"OpenDRR","description":"OpenQuake compilation and data manipulation scripts","archived":false,"fork":false,"pushed_at":"2023-09-20T22:27:54.000Z","size":24193,"stargazers_count":2,"open_issues_count":27,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2023-09-21T09:01:06.480Z","etag":null,"topics":["government-of-canada","natural-resources-canada"],"latest_commit_sha":null,"homepage":"https://opendrr.github.io/model-factory/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenDRR.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-30T17:37:05.000Z","updated_at":"2023-09-20T21:35:11.000Z","dependencies_parsed_at":"2023-02-10T08:02:18.611Z","dependency_job_id":null,"html_url":"https://github.com/OpenDRR/model-factory","commit_stats":null,"previous_names":[],"tags_count":10,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenDRR%2Fmodel-factory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenDRR%2Fmodel-factory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenDRR%2Fmodel-factory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenDRR%2Fmodel-factory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenDRR","download_url":"https://codeload.github.com/OpenDRR/model-factory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223892983,"owners_count":17220834,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["government-of-canada","natural-resources-canada"],"created_at":"2024-11-09T23:16:12.830Z","updated_at":"2024-11-09T23:16:13.513Z","avatar_url":"https://github.com/OpenDRR.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# model-factory\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/openquake.engine)\n\nmodel-factory is a repository used in conjunction with [opendrr-api](https://github.com/OpenDRR/opendrr-api) repository.\nIt contains documentation, and scripts (python and sql) to transform opendrr source data (exposure, census, and OpenQuake outputs etc.) into risk profile indicators for:\n\n - [National Human Settlement Layer](https://github.com/OpenDRR/national-human-settlement) \n\t\t \n\t- [Physical Exposure](https://github.com/OpenDRR/national-human-settlement/tree/main/physical-exposure)\n\n\t- [Social Fabric](https://github.com/OpenDRR/national-human-settlement/tree/main/social-fabric)\n- [Earthquake Scenarios](https://github.com/OpenDRR/earthquake-scenarios) \n- [Probabilistic Earthquake Risk](https://github.com/OpenDRR/seismic-risk-model)\n\n\n - **documentation/**\n\t - RiskProfileTaxonomy.xls\n\t\t -  Documentation of v1.0 risk profile indicators for review and comments.\n\t- 1_scenario-risk-schema_v1.1.xlsx\n\t\t- Excel spreadsheet where initial phase of indicators (seismic risk) were drafted.\n\t- 2_physical-exposure-schema.xlsx\n\t\t- Excel spreadsheet where initial phase of indicators (physical exposure) were drafted.\n\t- 2_risk-profile-indicators.xlsx\n\t\t- Excel spreadsheet containing indicators for each Physical Exposure, Social Fabric, Earthquake Scenarios (DSRA), and Seismic Risk Model (PSRA).\n\t- 3_multi-hazard-threat-schema.xlsx\n\t\t- Excel spreadsheet where initial phase of indicators (multi hazard) were drafted\n\t- 4_social-vulnerability-schema.xlsx\n\t\t- Excel spreadsheet where initial phase of indicators (social fabric) were drafted.\n\t- mapping Sendai Indicators DSRA_PSRA.xlsx\n\t\t- Excel spreadsheet with draft indicators.\n\t- opendrr.drawio\n\t\t- Breakdown of each schema and all the tables,table columns etc can be found in opendrr.drawio diagram.\n- **scripts/**\n\t- Series of python and sql scripts that are used in opendrr-api repository to build the PostGIS database.\n- requirements.txt\n\t- list of modules and versions required to be installed.  `$ pip install -r requirements.txt`\n\nRefer to the [releases section](https://github.com/OpenDRR/model-factory/releases) for latest version changes.\n\n\n### How the script works\n- Most scripts in this repository are run with keyword arguments.\n\nExample:\n```\n$ python3 DSRA_outputs2postgres.py --dsraModelDir=\"https://github.com/OpenDRR/openquake-models/tree/master/deterministic/outputs\" --columnsINI=\"DSRA_outputs2postgres.ini\"\n```\nOr ask scripts for help on how to run them:\n```\n$ python3 DSRA_outputs2postgres.py --help","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopendrr%2Fmodel-factory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopendrr%2Fmodel-factory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopendrr%2Fmodel-factory/lists"}