quarree100 / qScope_infoscreen

0 stars 0 forks source link

Dataview: Result Graphs #23

Closed dunland closed 2 years ago

dunland commented 2 years ago

derzeitiges Layout für Gesamt-Resultate, Vorschlag R&E: image

Umsetzung (Beispielgraphen nach nur wenigen simulation steps) dataview_total_2022-08-15 16-12-49

akkumulierte Gesamtemissionen des Quartiers erzeugt stufenweise Steigerung der Emissionen.. das könnte im Workshop Fragen aufwerfen... Ist eine Regressionskurve nötig, oder lassen wir das bewusst so stehen? akkumulierte Gesamtemissionen des Quartiers

kazux2 commented 2 years ago

individual dataview

image
dunland commented 2 years ago

export individual energy prices so that they can be plotted and drawn for each of the selected buildings https://github.com/quarree100/q100_abm/issues/82

dunland commented 2 years ago

current version of individual data view: individual_dataview_2022-08-26_DU

dunland commented 2 years ago

Accordingly, a json structure to transfer all the necessary data would look like this:

{
    "data_view_individual_data": {
        "buildings_groups": {
            "group_0": {
                "buildings": [
                    {
                        "address": "Rüsdorfer Straße 51",
                        "avg_spec_heat_consumption": 168.2295352941,
                        "avg_spec_power_consumption": 0.0,
                        "cluster_size": 34.0,
                        "CO2": 0.0137431325,
                        "connection_to_heat_grid": true,
                        "connection_to_heat_grid_prior": false,
                        "refurbished": false,
                        "refurbished_prior": false,
                        "environmental_engagement": true,
                        "environmental_engagement_prior": true,
                        "energy_source": "Gas",
                        "cell": ""
                    }
                ],
                "emissions_graph": "path/to/file1.png",
                "energy_cost_graph": "path/to/file2.png"
            },
            "group_1": {
                "buildings": [
                    {
                        "address": "Neue Heimat 20",
                        "avg_spec_heat_consumption": 168.2295352941,
                        "avg_spec_power_consumption": 0.0,
                        "cluster_size": 34.0,
                        "CO2": 0.0083857645,
                        "connection_to_heat_grid": false,
                        "connection_to_heat_grid_prior": false,
                        "refurbished": true,
                        "refurbished_prior": false,
                        "environmental_engagement": false,
                        "environmental_engagement_prior": false,
                        "energy_source": "Gas",
                        "cell": ""
                    },
                    {
                        "address": "Neue Heimat 6",
                        "avg_spec_heat_consumption": 355.3933733333,
                        "avg_spec_power_consumption": 0.0,
                        "cluster_size": 3.0,
                        "CO2": 0.009850668,
                        "connection_to_heat_grid": false,
                        "connection_to_heat_grid_prior": false,
                        "refurbished": true,
                        "refurbished_prior": false,
                        "environmental_engagement": true,
                        "environmental_engagement_prior": true,
                        "energy_source": "Gas",
                        "cell": ""
                    }
                ],
                "emissions_graph": "path/to/file1.png",
                "energy_cost_graph": "path/to/file2.png"
            },
            "group_2": [
                ""
            ],
            "group_3": {
                "buildings": [
                    {
                        "address": "Hamburger Straße 12",
                        "avg_spec_heat_consumption": 168.2295352941,
                        "avg_spec_power_consumption": 0.0,
                        "cluster_size": 34.0,
                        "CO2": 0.0091610135,
                        "connection_to_heat_grid": false,
                        "connection_to_heat_grid_prior": false,
                        "refurbished": false,
                        "refurbished_prior": false,
                        "environmental_engagement": true,
                        "environmental_engagement_prior": false,
                        "energy_source": "Gas",
                        "cell": ""
                    }
                ],
                "emissions_graph": "path/to/file1.png",
                "energy_cost_graph": "path/to/file2.png"
            }
        }
    }
}
where key infoscreen representation
address [Adresse]
emissions_graph Graph: "Verlauf der CO2-Emissionen"
energy_cost_graph Graph: "Verlauf der Energiekosten"
cluster_size "errechnet aus [cluster_size] Gebäuden des gleichen Typs"
buildings[0].refurbished_prior Sanierung → Bestandssituation
buildings[0].connection_to_heat_grid_prior Anschluss Wärmenetz → Bestandssituation
buildings[0].environmental_engagement_prior Umweltengagement → Bestandssituation
buildings[0].refurbished Sanierung → Zukunftsentscheidung
buildings[0].connection_to_heat_grid Anschluss Wärmenetz → Zukunftsentscheidung
buildings[0].environmental_engagement Umweltengagement → Zukunftsentscheidung
lwinkeler commented 2 years ago

regarding the variable environmental_engagement

dunland commented 2 years ago

I made an important update of the json structure above! :arrow_up:

dunland commented 2 years ago

another update with a specific path for the emissions: (energy costs will follow after https://github.com/quarree100/q100_abm/issues/82)

{
    "data_view_individual_data": {
        "buildings_groups": {
            "group_0": {
                "buildings": [
                    {
                        "address": "Rüsdorfer Straße 51",
                        "avg_spec_heat_consumption": 234.7511213636,
                        "avg_spec_power_consumption": 34.5551254545,
                        "cluster_size": 22.0,
                        "emissions_graphs": "data/outputs/output_20220831_15-53-46/emissions/CO2_emissions_7.16.png",
                        "energy_prices_graphs": "data/outputs/output_20220831_15-53-46/energy_prices/energy_prices_7.16.png",
                        "CO2": 0.0137431325,
                        "connection_to_heat_grid": false,
                        "connection_to_heat_grid_prior": false,
                        "refurbished": false,
                        "refurbished_prior": false,
                        "environmental_engagement": false,
                        "environmental_engagement_prior": false,
                        "energy_source": "Gas",
                        "cell": ""
                    }
                ],
                "connections": 0
            },
            "group_1": [
                ""
            ],
            "group_2": [
                ""
            ],
            "group_3": [
                ""
            ]
        }
    }
}

Next, I will create a graph to display and place it in data/outputs/output_test

dunland commented 2 years ago

updated again with infoscreen-readable file paths

lwinkeler commented 2 years ago

secondary, yet useful feature:

dunland commented 2 years ago

current version of individual data view: individual_dataview_2022-08-26_DU

@kazux2 please include the "errechnet aus [X] Gebäuden ähnlichen Verbrauchs" in the individual data view and update it from buildings_groups.group_X.buildings[0].cluster_size:

{
    "buildings_groups": {
        "group_0": {
            "buildings": [
                {
                    "address": "R\u00fcsdorfer Stra\u00dfe 40",
                    "avg_spec_heat_consumption": 196.4097951852,
                    "avg_spec_power_consumption": 36.5880559259,
                    "cluster_size": 27,
                    "emissions_graphs": "",
                    "energy_prices_graphs": "",
                    "CO2": 0.0120015825,
                    "connection_to_heat_grid": false,
                    "connection_to_heat_grid_prior": false,
                    "refurbished": false,
                    "refurbished_prior": false,
                    "environmental_engagement": false,
                    "environmental_engagement_prior": false,
                    "energy_source": "Gas",
                    "cell": ""
                }
            ],
            "connections": 0
        },
        "group_1": [
            ""
        ],
        "group_2": [
            ""
        ],
        "group_3": [
            ""
        ]
    }
}
dunland commented 2 years ago
kazux2 commented 2 years ago

Hi David, Now it shows "errechnet aus [X] Gebäuden ähnlichen Verbrauchs"

do not display the template graphs...

Do you mean the image that shows before the actual graph? I changed to show 'loading.png'

Please review the latest commit on workshop_prototype https://github.com/quarree100/qScope_infoscreen/commit/58e795076635efe5595affb107cd6d0d3199dec3

dunland commented 2 years ago

your commit is fine, thanks. (even though I changed back the currentUserMode to 'buildings_interaction' as default)

Do you mean the image that shows before the actual graph? I changed to show 'loading.png'

I think each quarter should only be displayed at all, if there is a building in the group. If the group is empty, just don't display anything at all!

dunland commented 2 years ago

I think pretty much everything here is done!