Create future EPW files using morphed data

future_epw(
  morphed,
  by = c("experiment", "source", "interval"),
  dir = ".",
  separate = TRUE,
  overwrite = FALSE,
  full = FALSE
)

Arguments

morphed

An epw_cmip6_morphed object created using morphing_epw().

by

A character vector of columns to be used as grouping variables when creating EPW files. Should be a subset of:

  • "experiment": root experiment identifiers

  • "source": model identifiers

  • "variable": variable identifiers

  • "activity": activity identifiers

  • "frequency": sampling frequency

  • "variant": variant label

  • "resolution": approximate horizontal resolution

  • "longitude": averaged longitude of input data

  • "latitude": averaged latitude of input data

dir

The parent directory to save the generated EPW files. If not exist, it will be created first. Default: ".", i.e., current working directory.

separate

If TRUE, each EPW file will be saved into a separate folder using grouping variables specified in by.

overwrite

If TRUE, overwrite existing files if they exist. Default: FALSE.

full

If TRUE, a data.table containing information about how the data are split and also the generated future EPWs and their paths are returned. Default: FALSE.

Value

If full is FALSE, which is the default, a list of generated eplusr::Epw objects, invisibly. Otherwise, a data.table with columns:

  • specified by the by value

  • epw: a list of eplusr::Epw

  • path: full paths of the generated EPW files