Expand TOPIA's per-region profiles (topia$weather, topia$demand,
topia$stock) to a set of regions for a chosen calendar, returning a list
of three tidy data.frames.
Arguments
- regions
character vector of geoscale codes: a province of the TOPIA map (
R01–R12), a zone (Z1–Z5) or the nation (TOPIA). An unknown code is an error that lists what is known.- calendar
target resolution:
"s4_h24"(4 seasons x 24 hours, 96 timeslices, the default) or"d365_h24"(365 days x 24 hours, 9,126). These are the only two the shipped profiles are built for.- dataset
"simulated"or"sample".NULL(the default) picks the set built forcalendar– the sample for"d365_h24", the simulated set otherwise. Naming a pair that was not built is an error saying what each set covers.- source
"saved"(packaged data, default) or"ideea"(re-aggregate fromIDEEA::ideea_modulesif installed). The IDEEA route yields one region-agnostic shape per resource and replicates it to every region.- resources
named character vector mapping resource keys (
WSOL,WWIN,WHYD) to IDEEA element names, used whensource = "ideea".- cluster
integer, which IDEEA resource cluster to use (
source = "ideea").- diversify
defunct. TOPIA's profiles are per region and are not scaled copies of one shape, so there is nothing to diversify; passing it warns and changes nothing.
Value
a list of tidy data.frames: weather (resource, region,
timeslice, wval), demand (region, timeslice, load – a relative
load shape) and stock (region, tech, gw – base-year capacity,
replicated across regions).
Details
Two input datasets ship and the caller chooses between them:
"simulated"closed-form shapes on the small calendar
s4_h24. Demonstration data: it carries a spatial gradient and a diurnal structure, and is not a resource estimate for anywhere. ItsclusterisNAthroughout, so it cannot serve a graded technology."sample"a measured hourly set on
d365_h24. Multi-day calm spells survive only at that resolution, so it is where flexibility has something to earn – reducing the hourly series to a handful of typical days keeps about a quarter of the wind's variance and none of its calm spells, which is why the small calendars are served by the simulated set instead.
A request for a coarser geoscale code – a zone, or the nation – averages its member regions, which is what a copperplate zone sees.
Not to be confused with the near-namesake topia_profile(), which takes no
TOPIA data at all: it generates a synthetic step / sine / cosine / hex shape
over any calendar and returns a single data.frame.
See also
topia, topia_profile(), calendars
Other topia:
topia,
topia_profile(),
topia_simulate()
