Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gde-importer
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Dynamic Exposure
  • Global Dynamic Exposure
  • gde-importer
  • Merge requests
  • !20

Added feature to retrieve the building classes and their proportions in a Data Unit

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Cecilia Nievas requested to merge feature/data_units_proportions into master Nov 11, 2021
  • Overview 2
  • Commits 1
  • Pipelines 2
  • Changes 8

Within a specific Data Unit (which means, implicitly, within a specific Exposure Entity and occupancy case), a building class is defined by the combination of three fields from the ESRM20 model:

  • "taxonomy" (the string describing the structural type)
  • "settlement_type" (e.g. rural, urban, etc)
  • "occupancy_type" (not the same as occupancy case, it provides details)

The first field will always be available. The last two can be "ALL" either because explicitly stated in ESRM20 (or any other input aggregated exposure model) or because we fill it in as "ALL" if the field (the level of detail) does not exist.

It does occur that the same combination of "taxonomy", "settlement_type" and "occupancy_type" is named in more than one row of the input aggregated exposure model within the same Data Unit. This has to do with the way the original aggregated models were created. This code groups these rows and adds their contributions to the proportions of building classes, as they are, indeed, the same building class.

\approve @fd

\fyi @ds @shinde @tara

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: feature/data_units_proportions