Skip to content

Final to useful energy conversion creates energy in JRC industry dataset #411

@irm-codebase

Description

@irm-codebase

What happened?

While testing combinations for "other" industries, I found that for some cases (e.g., not processing Chemicals Industry individually), dividing useful energy over final energy leads to efficiencies above zero.

This issue comes from the JRC processing, in the build/data/jrc-idees/industry/processed-energy.nc file.

I propose the following:

  • Adding an assure statement that catches this on the JRC module.
  • Fixing it (if we introduce the problem) or ensuring it does not occur (if it's an issue in JRC data).

Version

1.2.0.dev

Relevant log output

eff_chemical.where(eff_chemical > 1, drop=True)
<xarray.DataArray (country_code: 9, section: 3, subsection: 1, year: 7)>
array([[[[       nan,        nan,        nan,        nan,        nan,
                 nan, 1.02665297]],

        [[       nan,        nan,        nan,        nan,        nan,
                 nan,        nan]],

        [[1.00912944, 1.00912944, 1.00912944, 1.05977545, 1.05977545,
          1.05977545, 1.05977545]]],


       [[[       nan,        nan,        nan,        nan,        nan,
                 nan,        nan]],

        [[       nan,        nan,        nan,        nan,        nan,
                 nan,        nan]],

        [[       nan,        nan,        nan, 1.02217429, 1.02217429,
          1.02217429, 1.02217429]]],

...

Metadata

Metadata

Labels

IndustryIndustrial energy demandbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions