R/zchunk_LA100.IEA_downscale_ctry.R
module_energy_LA100.IEA_downscale_ctry.Rd
Downscale proprietary IEA energy balance data to 201 countries, by iso code, FLOW, PRODUCT, and historical year.
module_energy_LA100.IEA_downscale_ctry(command, ...)
API command to execute
other optional parameters, depending on command
Depends on command
: either a vector of required inputs,
a vector of output names, or (if command
is "MAKE") all
the generated outputs: L100.IEA_en_bal_ctry_hist
. The corresponding file in the
original data system was LA100.IEA_downscale_ctry.R
(energy level1).
Combine OECD and non-OECD data; perform upfront adjustments for other Africa, Turkey, and South Africa; split out and handle the 1990 split of Yugoslavia and USSR, back-projecting individual country values based on 1990 shares; use population to downscale IEA composite regions (Other Africa, Other non-OECD Americas, Other non-OECD Asia) to individual countries; filter out countries without data in any year.
We build from the raw (and proprietary) IEA_EnergyBalances_2019
file if
they are available; if not, this chunk reads in a pre-generated L100.IEA_en_bal_ctry_hist
file and returns that. (In other words, our output is an optional input.)