quintel / etsource

Data source for the Energy Transition Model
https://energytransitionmodel.com/
MIT License
12 stars 8 forks source link

Review direct emissions queries #2886

Open mabijkerk opened 1 year ago

mabijkerk commented 1 year ago

The ETM contains a chart named "On-the-spot CO2 emissions including emissions from biomass". This chart shows direct CO2 emissions, but is in need of a review.

Screenshot 2023-04-19 at 15 04 46

One first issue that struck me is the following: in the query industry_natural_gas_total_in_co2_sankey, the CO2 emissions of network gas are multiplied with the share of fossil gas in the gas network.

    PRODUCT(
        Q(industry_network_gas_total_in_co2_sankey),
        Q(share_of_fossil_gas_in_gas_network)
    )

However, when going to the underlying query industry_network_gas_total_in_co2_sankey, the CO2 emissions are calculated using the co2_conversion_per_mj of the carrier natural_gas, for the input_of_network_gas.

    SUM(
        V(
            industry_final_demand_network_gas,
            industry_heat_backup_burner_network_gas,
            industry_final_demand_for_chemical_fertilizers_network_gas_non_energetic_co2,
            input_of_network_gas
        )) * V(CARRIER(natural_gas), co2_conversion_per_mj) / THOUSANDS
    + Q(industry_fuelmix_network_gas_in_co2_sankey)

To it seems like the order of operations is wrong here. I think that first, the share of natural gas in network gas should be determined, and only then be multiplied with the CO2 content of natural gas. Do you agree @redekok?

redekok commented 1 year ago

The order of operations indeed seems to be a bit odd—I agree that your suggestion makes more sense. Do you happen to know if this is the only (CO2 sankey) gquery where these kinds of calculations occur? Or should we fix this in other gqueries as well?