Skip to content

Adding test queries for Sankey download #3062

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This query must be balanced and return 0. The loss query is not created by the script, the rest of the queries rely on queries that the rake task creates.

- query =
SUM(
NEG(Q(turk_sankey_conversion_biomass_input)),
Q(turk_sankey_conversion_biomass_output),
NEG(Q(turk_sankey_final_demand_biomass_input)),
Q(turk_sankey_primary_demand_biomass_output),
NEG(Q(conversion_loss_biomass_products_to_biomass_products))
)
- unit = PJ

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This query must be balanced and return 0. The loss query is not created by the script, the rest of the queries rely on queries that the rake task creates.

- query =
SUM(
NEG(Q(turk_sankey_conversion_electricity_input)),
Q(turk_sankey_conversion_electricity_output),
NEG(Q(turk_sankey_final_demand_electricity_input)),
Q(turk_sankey_primary_demand_electricity_output),
NEG(Q(conversion_loss_electricity_to_electricity))
)
- unit = PJ

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This query must be balanced and return 0. The loss query is not created by the script, the rest of the queries rely on queries that the rake task creates.

- query =
SUM(
NEG(Q(turk_sankey_conversion_hydrogen_input)),
Q(turk_sankey_conversion_hydrogen_output),
NEG(Q(turk_sankey_final_demand_hydrogen_input)),
Q(turk_sankey_primary_demand_hydrogen_output),
NEG(Q(conversion_loss_hydrogen_to_hydrogen))
)
- unit = PJ

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This query must be balanced and return 0. The loss query is not created by the script, the rest of the queries rely on queries that the rake task creates.

- query =
SUM(
NEG(Q(turk_sankey_conversion_natural_gas_input)),
Q(turk_sankey_conversion_natural_gas_output),
NEG(Q(turk_sankey_final_demand_natural_gas_input)),
Q(turk_sankey_primary_demand_natural_gas_output),
NEG(Q(conversion_loss_natural_gas_to_natural_gas))
)
- unit = PJ
12 changes: 12 additions & 0 deletions gqueries/mechnical_turk/sankey/download/tests/turk_sankey_oil.gql
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This query must be balanced and return 0. The loss query is not created by the script, the rest of the queries rely on queries that the rake task creates.

- query =
SUM(
NEG(Q(turk_sankey_conversion_oil_input)),
Q(turk_sankey_conversion_oil_output),
NEG(Q(turk_sankey_final_demand_oil_input)),
Q(turk_sankey_primary_demand_oil_output),
NEG(Q(conversion_loss_oil_and_derivatives_to_oil_and_derivatives))
)
- unit = PJ

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This query must be balanced and return 0. The loss query is not created by the script, the rest of the queries rely on queries that the rake task creates.

- query =
SUM(
Q(turk_sankey_conversion_steam_hot_water_output),
NEG(Q(turk_sankey_final_demand_steam_hot_water_input)),
Q(turk_sankey_primary_demand_steam_hot_water_output),
NEG(Q(conversion_loss_steam_hot_water_to_steam_hot_water))
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- query =
SUM(
Q(imported_ammonia_to_hydrogen_prod_in_sankey)
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- query =
SUM(
Q(biomass_products_for_biomass_gasification_conversion),
Q(biomass_products_for_biomass_gasification_ccs_conversion),
Q(biomass_products_for_electricity_conversion),
Q(biomass_products_to_central_heat_prod_in_sankey)
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- query =
SUM(
Q(conversion_industry_residual_greengas)
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- query =
SUM(
Q(coal_for_electricity_conversion),
Q(coal_and_derivatives_to_central_heat_prod_in_sankey)
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
- query =
SUM(
Q(electricity_for_steam_methane_reformer_hydrogen_conversion),
Q(electricity_for_steam_methane_reformer_ccs_hydrogen_conversion),
Q(electricity_for_autothermal_reformer_hydrogen_conversion),
Q(electricity_for_autothermal_reformer_ccs_hydrogen_conversion),
Q(electricity_prod_to_p2g_in_sankey),
Q(wind_to_hydrogen_prod_in_sankey),
Q(solar_to_hydrogen_prod_in_sankey),
Q(electricity_prod_to_p2h_central_heat_in_sankey),
Q(electricity_prod_to_central_heat_prod_excl_p2h_in_sankey),
Q(electricity_for_synthetic_kerosene_conversion)
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
- query =
SUM(
Q(coal_products_in_source_of_electricity_production),
Q(oil_in_source_of_electricity_production),
Q(nuclear_in_source_of_electricity_production),
Q(biomass_products_in_source_of_electricity_production),
Q(gas_in_source_of_electricity_production),
Q(hydrogen_in_source_of_electricity_production)
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- query =
SUM(
Q(geothermal_for_central_heat_conversion)
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- query =
SUM(
Q(hydrogen_for_electricity_conversion),
Q(hydrogen_for_central_heat_conversion),
Q(hydrogen_for_synthetic_kerosene_conversion)
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
- query =
SUM(
Q(p2g_to_hydrogen_prod_in_sankey),
Q(direct_electrolysis_wind_in_source_of_hydrogen_production),
Q(direct_electrolysis_solar_in_source_of_hydrogen_production),
Q(steam_methane_reformer_in_source_of_hydrogen_production),
Q(steam_methane_reformer_ccs_in_source_of_hydrogen_production),
Q(autothermal_reformer_in_source_of_hydrogen_production),
Q(autothermal_reformer_ccs_in_source_of_hydrogen_production),
Q(ammonia_reformer_in_source_of_hydrogen_production),
Q(lohc_reformer_in_source_of_hydrogen_production),
Q(liquid_hydrogen_regasifier_in_source_of_hydrogen_production),
Q(biomass_gasification_in_source_of_hydrogen_production),
Q(biomass_gasification_ccs_in_source_of_hydrogen_production),
Q(conversion_industry_residual_hydrogen)
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- query =
SUM(
Q(conversion_from_imported_liquid_hydrogen_to_hydrogen)
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- query =
SUM(
Q(conversion_from_imported_lohc_to_hydrogen)
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- query =
SUM(
Q(conversion_loss_steam_hot_water_to_steam_hot_water)
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
- query =
SUM(
Q(conversion_loss_electricity_to_hydrogen),
Q(conversion_loss_electricity_to_steam_hot_water),
Q(conversion_loss_electricity_to_oil_and_derivatives),
Q(conversion_loss_electricity_to_natural_gas_and_derivatives),
Q(conversion_loss_electricity_to_biomass_products),
Q(conversion_loss_electricity_to_electricity),
Q(conversion_loss_hydrogen_to_electricity),
Q(conversion_loss_hydrogen_to_steam_hot_water),
Q(conversion_loss_hydrogen_to_oil_and_derivatives),
Q(conversion_loss_hydrogen_to_hydrogen),
Q(conversion_loss_uranium_to_electricity),
Q(conversion_loss_coal_and_derivatives_to_electricity),
Q(conversion_loss_coal_and_derivatives_to_steam_hot_water),
Q(conversion_loss_coal_and_derivatives_to_coal_and_derivatives),
Q(conversion_loss_oil_and_derivatives_to_electricity),
Q(conversion_loss_oil_and_derivatives_to_steam_hot_water),
Q(conversion_loss_oil_and_derivatives_to_oil_and_derivatives),
Q(conversion_loss_natural_gas_and_derivatives_to_electricity),
Q(conversion_loss_natural_gas_and_derivatives_to_steam_hot_water),
Q(conversion_loss_natural_gas_and_derivatives_to_hydrogen),
Q(conversion_loss_natural_gas_and_derivatives_to_biomass_products),
Q(conversion_loss_natural_gas_and_derivatives_to_natural_gas_and_derivatives),
Q(conversion_loss_biomass_products_to_electricity),
Q(conversion_loss_biomass_products_to_steam_hot_water),
Q(conversion_loss_biomass_products_to_hydrogen),
Q(conversion_loss_biomass_products_to_natural_gas_and_derivatives),
Q(conversion_loss_biomass_products_to_biomass_products),
Q(conversion_loss_ammonia_to_hydrogen),
Q(conversion_loss_lohc_to_hydrogen),
Q(conversion_loss_liquid_hydrogen_to_hydrogen)
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
- query =
SUM(
Q(gas_for_electricity_conversion),
Q(natural_gas_to_central_heat_prod_in_sankey),
Q(natural_gas_for_steam_methane_reformer_conversion),
Q(natural_gas_for_steam_methane_reformer_ccs_conversion),
Q(natural_gas_for_autothermal_reformer_conversion),
Q(natural_gas_for_autothermal_reformer_ccs_conversion),
Q(natural_gas_for_biomass_gasification_conversion),
Q(natural_gas_for_biomass_gasification_ccs_conversion)
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- query =
SUM(
Q(conversion_industry_residual_natural_gas)
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- query =
SUM(
Q(oil_for_electricity_conversion),
Q(oil_and_derivatives_to_central_heat_prod_in_sankey)
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- query =
SUM(
Q(kerosene_synthetic_to_distribution_in_sankey)
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- query =
SUM(
Q(solar_for_central_heat_conversion)
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
- query =
SUM(
Q(p2h_central_heat_to_central_heat_in_sankey),
Q(chp_in_source_of_central_heat_production),
Q(electricity_excl_p2h_in_source_of_central_heat_production),
Q(hydrogen_in_source_of_central_heat_production),
Q(coal_and_derivatives_in_source_of_central_heat_production),
Q(oil_and_derivatives_in_source_of_central_heat_production),
Q(natural_gas_in_source_of_central_heat_production),
Q(biomass_products_in_source_of_central_heat_production),
Q(solar_thermal_in_source_of_central_heat_production),
Q(geothermal_in_source_of_central_heat_production),
Q(ambient_heat_excl_p2h_in_source_of_central_heat_production),
Q(residual_heat_for_central_heat_conversion)
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- query =
SUM(
Q(uranium_for_electricity_conversion)
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
- query =
SUM(
Q(sankey_final_demand_of_ammonia_in_households_space_heating_and_hot_water_energetic),
Q(sankey_final_demand_of_ammonia_in_households_other_energetic),
Q(sankey_final_demand_of_ammonia_in_buildings_space_heating_energetic),
Q(sankey_final_demand_of_ammonia_in_buildings_other_energetic),
Q(imported_ammonia_to_agriculture_in_sankey),
Q(sankey_final_demand_of_ammonia_in_industry_other_energetic),
Q(sankey_final_demand_of_ammonia_in_industry_ict_energetic),
Q(imported_ammonia_to_transport_in_sankey),
Q(imported_ammonia_to_bunkers_in_sankey),
Q(imported_ammonia_to_export_in_sankey),
Q(imported_ammonia_to_other_in_sankey),
Q(imported_ammonia_to_energy_in_sankey),
Q(imported_ammonia_to_feedstock_in_sankey)
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
- query =
SUM(
Q(sankey_final_demand_of_biomass_products_in_households_space_heating_and_hot_water_energetic),
Q(sankey_final_demand_of_biomass_products_in_households_other_energetic),
Q(sankey_final_demand_of_biomass_products_in_buildings_space_heating_energetic),
Q(sankey_final_demand_of_biomass_products_in_buildings_other_energetic),
Q(biomass_products_to_agriculture_in_sankey),
Q(sankey_final_demand_of_biomass_products_in_industry_other_energetic),
Q(sankey_final_demand_of_biomass_products_in_industry_ict_energetic),
Q(biomass_products_to_transport_in_sankey),
Q(biomass_products_to_bunkers_in_sankey),
Q(biomass_products_to_export_in_sankey),
Q(biomass_products_to_other_in_sankey),
Q(biomass_products_to_energy_in_sankey),
Q(biomass_products_to_feedstock_in_sankey)
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
- query =
SUM(
Q(sankey_final_demand_of_coal_and_derivatives_in_households_space_heating_and_hot_water_energetic),
Q(sankey_final_demand_of_coal_and_derivatives_in_households_other_energetic),
Q(sankey_final_demand_of_coal_and_derivatives_in_buildings_space_heating_energetic),
Q(sankey_final_demand_of_coal_and_derivatives_in_buildings_other_energetic),
Q(coal_and_derivatives_to_agriculture_in_sankey),
Q(sankey_final_demand_of_coal_and_derivatives_in_industry_other_energetic),
Q(sankey_final_demand_of_coal_and_derivatives_in_industry_ict_energetic),
Q(coal_and_derivatives_to_transport_in_sankey),
Q(coal_and_derivatives_to_bunkers_in_sankey),
Q(coal_and_derivatives_to_export_in_sankey),
Q(coal_and_derivatives_to_other_in_sankey),
Q(coal_and_derivatives_to_energy_in_sankey),
Q(coal_and_derivatives_to_feedstock_in_sankey)
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
- query =
SUM(
Q(sankey_final_demand_of_electricity_in_households_space_heating_and_hot_water_energetic),
Q(sankey_final_demand_of_electricity_in_households_other_energetic),
Q(sankey_final_demand_of_electricity_in_buildings_space_heating_energetic),
Q(sankey_final_demand_of_electricity_in_buildings_other_energetic),
Q(electricity_prod_to_agriculture_in_sankey),
Q(sankey_final_demand_of_electricity_in_industry_other_excl_p2h_energetic),
Q(sankey_final_demand_of_electricity_in_industry_ict_energetic),
Q(sankey_final_demand_of_electricity_in_industry_p2h_energetic),
Q(electricity_prod_to_transport_in_sankey),
Q(electricity_prod_to_bunkers_in_sankey),
Q(electricity_prod_to_export_in_sankey),
Q(electricity_prod_to_other_in_sankey),
Q(electricity_prod_to_energy_in_sankey),
Q(electricity_prod_to_feedstock_in_sankey)
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
- query =
SUM(
Q(sankey_final_demand_of_geothermal_in_households_space_heating_and_hot_water_energetic),
Q(sankey_final_demand_of_geothermal_in_households_other_energetic),
Q(sankey_final_demand_of_geothermal_in_buildings_space_heating_energetic),
Q(sankey_final_demand_of_geothermal_in_buildings_other_energetic),
Q(final_demand_of_geothermal_in_agriculture_energetic),
Q(sankey_final_demand_of_geothermal_in_industry_other_energetic),
Q(sankey_final_demand_of_geothermal_in_industry_ict_energetic),
Q(final_demand_of_geothermal_in_transport_energetic),
Q(final_demand_of_geothermal_in_bunkers_energetic),
Q(final_demand_of_geothermal_in_other_energetic),
Q(final_demand_of_geothermal_in_energy_energetic),
Q(final_demand_of_geothermal_non_energetic)
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
- query =
SUM(
Q(sankey_final_demand_of_hydrogen_in_households_space_heating_and_hot_water_energetic),
Q(sankey_final_demand_of_hydrogen_in_households_other_energetic),
Q(sankey_final_demand_of_hydrogen_in_buildings_space_heating_energetic),
Q(sankey_final_demand_of_hydrogen_in_buildings_other_energetic),
Q(hydrogen_prod_to_agriculture_in_sankey),
Q(sankey_final_demand_of_hydrogen_in_industry_other_energetic),
Q(sankey_final_demand_of_hydrogen_in_industry_ict_energetic),
Q(hydrogen_prod_to_transport_in_sankey),
Q(hydrogen_prod_to_bunkers_in_sankey),
Q(hydrogen_prod_to_export_in_sankey),
Q(hydrogen_prod_to_other_in_sankey),
Q(hydrogen_prod_to_energy_in_sankey),
Q(hydrogen_prod_to_feedstock_in_sankey)
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- query =
SUM(
Q(imported_liquid_hydrogen_to_export_in_sankey)
)
- unit = PJ
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- query =
SUM(
Q(imported_lohc_to_export_in_sankey)
)
- unit = PJ
Loading