Skip to content

Commit

Permalink
Merge pull request #652 from openego/features/#651-change-method-of-h…
Browse files Browse the repository at this point in the history
…ousehold-type-refinement

Change method of household type refinement
  • Loading branch information
nailend authored Feb 16, 2022
2 parents eb87418 + 58f1d91 commit 606e0ca
Show file tree
Hide file tree
Showing 3 changed files with 396 additions and 291 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ Changed
`#422 <https://github.com/openego/eGon-data/issues/422>`_
* Add information on plz, city and federal state to data on mastr without chp
`#425 <https://github.com/openego/eGon-data/issues/425>`_
* Assign residentail heat demands to osm buildings
* Assign residential heat demands to osm buildings
`#557 <https://github.com/openego/eGon-data/issues/557>`_
* Add foreign gas buses and adjust cross bording pipelines
`#545 <https://github.com/openego/eGon-data/issues/545>`_
Expand All @@ -308,6 +308,8 @@ Changed
* H2 demand is met from the H2_grid buses. In Addtion, it can be met from the
H2_saltcavern buses if a proximity criterion is fulfilled
`#620 <https://github.com/openego/eGon-data/issues/620>`_
* Change refinement method for households types
`##651 <https://github.com/openego/eGon-data/issues/#651>`_
* H2 feed in links are changed to non extendable
`#653 <https://github.com/openego/eGon-data/issues/653>`_
* Remove the '_fixed' suffix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
* `demand.egon_household_electricity_profile_of_buildings`:
Mapping of demand timeseries and buildings including cell_id, building
area and peak load
* 'demand.egon
Both tables are created within :func:`map_houseprofiles_to_buildings`.
Expand Down Expand Up @@ -78,6 +77,27 @@
* As this datasets is a cascade after profile assignement at census cells
also check drawbacks and limitations in hh_profiles.py.
Example Query
-----
* Get a list with number of houses, households and household types per census cell
SELECT t1.cell_id, building_count, hh_count, hh_types
FROM(
SELECT cell_id, Count(distinct(building_id)) as building_count,
count(profile_id) as hh_count
FROM demand.egon_household_electricity_profile_of_buildings
Group By cell_id
) as t1
FULL OUTER JOIN(
SELECT cell_id, array_agg(array[cast(hh_5types as char),
hh_type]) as hh_types
FROM society.egon_destatis_zensus_household_per_ha_refined
GROUP BY cell_id
) as t2
ON t1.cell_id = t2.cell_id
Notes
-----
Expand Down
Loading

0 comments on commit 606e0ca

Please sign in to comment.