Open gidden opened 5 years ago
Summarizing discussion in #207 - rather than deprecate map_regions()
, the function should be refactored to parse the given mapping and call aggregate_region()
or downscale_region()
iteratively as required.
This allows to distinguish the sanity-checking of the mapping (e.g., is a particular order required aggregating from country to region to world) from the data manipulation operation.
there is now a dedicated downscale_region()
function, but no work has been done on deprecating/refactoring the map_regions()
function
With
aggregate_regions()
doing the work to upscale (many-to-one) regional data,map_regions()
should be deprecated and a newdownscale_regions()
should be added. The function signature should look something like:By default, it should copy regional data into subregions. If provided a proxy (i.e., another
variable
), then it should do a pattern scaling to that variable, which must be supplied at the "sub regional" resolution.