Skip to content
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

Unify units across the nomenclature #87

Open
tburandt opened this issue Jan 19, 2021 · 2 comments
Open

Unify units across the nomenclature #87

tburandt opened this issue Jan 19, 2021 · 2 comments

Comments

@tburandt
Copy link
Contributor

Hi all,

currently, the units across the nomenclature are widely un-unified and thus, automatic transformation for large data-sets becomes tedious and hard to maintain.

E.g.,

  • Some units are in EUR (carbon Price), some are in US$2010 (Investments, cost data)
  • Maximum Storage|Electricity|Energy Storage System|Compressed Air is in GWh, but Maximum Storage|Electricity|Hydro|Pumped Storage is in MWh
  • Final Energy is generally in EJ/yr, but all electricity-related values are in GWh/yr (e.g., Final Energy|Electricity). @danielhuppmann the aggregation feature in pyam does not take the difference in units (aggregating GWh and EJ) into account, does it?

I would like to see a unified unit scheme across the nomenclature, with the individual unit conversion needed for specific models done on the end-user side.

@danielhuppmann
Copy link
Member

This is partly a duplicate of #14, where @sandrinecharousset suggested to use only one unit if they are close (only MW or GW), but potentially several if they are alternative interpretations (volume vs energy).

In #84, @sebastianzwickl extended the nomenclature to allow lists as units, so you could now define:

<Variable>:
    description: <some text>
    unit: [<first unit>, <second unit>]

But in principle, I'd agree that moving to EUR consistently is preferable in this project. About EJ vs. GWh, I think that using the more general EJ in the context of Final Energy|* to have a consistent variable tree - and use GWh in all variables that are directly related to the power section, eg Secondary Energy|Electricity|* (because aggregating to Secondary Energy doesn't make sense and everything related to capacity, costs, ...

@danielhuppmann
Copy link
Member

Re your question about pyam, currently, values associated with different units are treated as separate, see IAMconsortium/pyam#460. If you have an idea on how to implement this better, please chime in there. But in principle, following an explicit logic "first convert units, then aggregate" is preferable compared to baking too many features into one function implicitly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants