openENTRANCE / openentrance

Definitions of common terms (variables, regions, etc.) for the openENTRANCE project
http://openentrance.eu
Apache License 2.0
30 stars 49 forks source link

Re-insert additional prices at the secondary-energy level #223

Closed danielhuppmann closed 1 year ago

danielhuppmann commented 1 year ago

This PR adds variables for prices at the secondary energy level. The variables match those used in the ENGAGE project.

closes #221

danielhuppmann commented 1 year ago

@Renato-Rodrigues, please let me know if you think we need additional price variables at the secondary level...

Renato-Rodrigues commented 1 year ago

I am afraid there would be still some missing variables. The full list of secondary energy prices included in the ECEMF variables template is copied below for reference:

Price|Secondary Energy|Electricity
Price|Secondary Energy|Gases
Price|Secondary Energy|Gases|Biomass
Price|Secondary Energy|Gases|Electricity
Price|Secondary Energy|Gases|Fossil
Price|Secondary Energy|Heat
Price|Secondary Energy|Hydrogen
Price|Secondary Energy|Hydrogen|Biomass
Price|Secondary Energy|Hydrogen|Electricity
Price|Secondary Energy|Hydrogen|Fossil
Price|Secondary Energy|Liquids
Price|Secondary Energy|Liquids|Biomass
Price|Secondary Energy|Liquids|Electricity
Price|Secondary Energy|Liquids|Fossil
Price|Secondary Energy|Other
Price|Secondary Energy|Solar
Price|Secondary Energy|Solids
Price|Secondary Energy|Solids|Biomass
Price|Secondary Energy|Solids|Biomass|Traditional
Price|Secondary Energy|Solids|Fossil

The previous code responsible to create those variables used the tag system to simplify the variables creation. I copy below the single item responsible to create all those entries before, in case you want to restore the way these variables were created.

# Secondary energy prices:
- Price|Secondary Energy|{Final Energy carrier}:
    description: price at the secondary level of {Final Energy carrier}, i.e. for large scale
                consumers (e.g. aluminum production, gas power plant)
    notes: Prices should include the effect of carbon prices.
    unit: [EUR_2020/GJ, USD_2010/GJ]
    weight: Secondary Energy|{Final Energy carrier}
danielhuppmann commented 1 year ago

The reason why I removed the automatically generated variables for the secondary-energy prices is that they where inconsistent with the Secondary-Energy-variables, so those could not be used for automated region-aggregation. I have now explicitly re-inserted most of your listed variables, except for:

Renato-Rodrigues commented 1 year ago
  • Price|Secondary Energy|Gases|Fossil -> identical as "Price|Secondary Energy|Gases|Natural Gas", possible confusion with stream-reformed hydrogen

Wouldn't it be more consistent to keep the same naming convention that is used in all other variables? We also report the "Secondary Energy|Gases|Fossil" variable, so it makes more sense to me to keep using the same naming convention for the corresponding prices. Besides I don't see possibility for confusion also, as steam-reforming hydrogen production would be reported under SE|Hydrogen|Fossil, as it is producing hydrogen and not gases, no?

  • Price|Secondary Energy|Other -> this is not specific enough to be reported anyway

I don't have a strong opinion about this, although I think that including the "other" field allow more results to be reported by models that only consider aggregates and/or do not follow exactly the same disaggregation that IAMs traditionally do for energy carriers. We need to keep in mind that using results from bottom-up models require more flexibility than the models that we are used to.

  • Price|Secondary Energy|Solar -> this is not a thing

nothing to add.

  • Price|Secondary Energy|Solids|Biomass|Traditional -> traditional biomass is usually not traded and therefore does not have a (modelled) price

Prices can represent the marginal costs of producing traditional biomass in this case. This can be important to the analysis to compare costs in models that consider only traditional biomass technics, versus models that have the differentiation.

In a general note, I don't understand why these variables were removed in the first place. The repository should be project specific, and when I did the variables update, you expressly said to me to keep backwards compatibility with the previous supported variables. It is much more trouble for the project members to have to get back and have a required renaming or removal of the current variables from outside of the project changes.

danielhuppmann commented 1 year ago

I checked the secondary-energy-gas hierarchy and noticed that there are currently three variables to describe the same thing:

There is also Secondary Energy|Gases|Coal, so Gases from Fossil is - technically speaking - the sum of gas and gas from coal, but I assume the latter is only a small fraction of the total.

This PR now also removes Secondary Energy|Gases|Gas to reduce ambiguity, but we may need to revisit at a later point in time. (Such inconsistencies or errors are also a reason why a template/codelist will never be final).

I have now changed the price-variable to Price|Secondary Energy|Gases|Fossil as requested, and I have added Price|Secondary Energy|Solids|Biomass|Traditional.

Adding Other makes sense if the aim is to make sure that totals add up (i.e., the energy mix), but I would prefer to wait until someone actually presents a use case for an Other Price variable...

Renato-Rodrigues commented 1 year ago

Just as an additional note, I would try to be consistent also on the use of either "Natural gas" or "Gas" in the variables naming convention. Primary energy uses Gas in the naming convention, so I would say it is a much bigger change to enforce the natural gas everywhere, than simply keep using "Gas".

danielhuppmann commented 1 year ago

Ok, good point, I removed „Natural Gas“ and kept „Gas“.