EpwMorpher consumes completed EsgStore extraction outputs and creates
future EPW files through a store-backed morphing workflow.
new()Create an EPW morpher.
EpwMorpher$new(
store,
epw,
site_id = NULL,
recipe = epw_morph_recipe("belcher"),
label = NULL
)storeAn EsgStore object.
epwEPW path or an eplusr::Epw object.
site_idOptional site identifier.
recipeEPW morphing recipe.
labelOptional source label.
preflight()Preflight EPW morphing inputs without writing store state.
EpwMorpher$preflight(
plan_id = NULL,
periods = NULL,
reference_plan_id = NULL,
reference_periods = NULL,
summary_id = NULL,
reference_summary_id = NULL,
baseline_id = NULL,
by = c("source_id", "experiment_id", "variant_label", "period"),
strict = TRUE
)plan_idOptional extraction plan IDs.
periodsOptional period table from epw_morph_periods().
reference_plan_idOptional reference extraction plan IDs for change-factor backends.
reference_periodsOptional reference period table from
epw_morph_periods().
summary_idOptional climate summary ID.
reference_summary_idOptional reference climate summary ID for change-factor backends.
baseline_idOptional baseline summary ID.
byClimate grouping columns.
strictWhether required-data issues are errors.
summarise_climate()Summarise extracted climate data by period and month.
plan_idExtraction plan IDs.
periodsPeriod table from epw_morph_periods().
strictWhether incomplete extraction coverage is an error.
overwriteWhether to replace existing rows for this summary.
plan()Create a morphing plan and monthly factors.
EpwMorpher$plan(
summary_id,
reference_summary_id = NULL,
baseline_id = NULL,
by = c("source_id", "experiment_id", "variant_label", "period"),
strict = TRUE,
overwrite = FALSE
)summary_idClimate summary ID.
reference_summary_idOptional reference climate summary ID for change-factor backends.
baseline_idBaseline summary ID. If NULL, baseline summary is created.
byClimate grouping columns.
strictWhether missing required variables are blocking errors.
overwriteWhether to replace an existing plan.
preview_plan()Preview a morphing plan and monthly factors without writing store state.
EpwMorpher$preview_plan(
summary_id,
reference_summary_id = NULL,
baseline_id = NULL,
by = c("source_id", "experiment_id", "variant_label", "period"),
strict = TRUE
)write_epw()Write future EPW files from morphing results.
morph_idMorphing plan ID.
dirOutput directory. Relative paths are resolved under the store
root. If NULL, the workflow stops after writing morph result
Parquet files and does not write EPW outputs.
separateWhether to create case subdirectories.
overwriteWhether to overwrite existing EPW files.
resumeWhether to reuse complete existing EPW outputs.
workflow()Run the store-native EPW morphing workflow.
EpwMorpher$workflow(
plan_id,
periods,
reference_plan_id = NULL,
reference_periods = NULL,
by = c("source_id", "experiment_id", "variant_label", "period"),
strict = TRUE,
dir = "outputs/future-epw",
separate = TRUE,
overwrite = FALSE,
resume = TRUE
)plan_idExtraction plan IDs.
periodsPeriod table from epw_morph_periods().
reference_plan_idOptional reference extraction plan IDs for change-factor backends.
reference_periodsOptional reference period table from
epw_morph_periods().
byClimate grouping columns.
strictWhether blocking diagnostics should abort the workflow.
dirOutput directory. Relative paths are resolved under the store root.
separateWhether to create case subdirectories.
overwriteWhether to overwrite existing plan, result, and EPW outputs.
resumeWhether to reuse complete existing result and EPW outputs.