Copy ALFRESCO output maps to new location for use as inputs to subsequent model runs.

outputs_as_inputs(domain, run_name, year,
  owner = alfdef()$atlas_run_owner_dir,
  top_dir = alfdef()$atlas_shiny_dir,
  template_raster = alfdef()$age_spinups, suffix = "runs",
  mc.cores = 32)

Arguments

domain

character, usually "Statewide" or "Noatak".

run_name

character.

year

numeric, the "final" year of a run. See details.

owner

character, an email address, defaults to alfdef()$atlas_run_owner_dir.

top_dir

character, defaults to alfdef()$atlas_shiny_dir.

template_raster

character, defaults to alfdef()$age_spinups.

suffix

appended to output directory, defaults to "runs".

mc.cores

number of processors, defaults to 32.

Details

This function copies ALFRESCO output maps from a single, "final" year where year is chosen to be one less than the starting year of the subsequent model run. For example, a run beginning in 1950 would use as inputs 1949 output maps from a prior model run. year need not be the final year of the original run, but it is final in the context that the following year will be part of a new, subsequent run. The output directory is <top_dir>/secondary_run_inputs/<domain>/<run_name>.

Examples

# NOT RUN {
outputs_as_inputs("Statewide", "fmo00s00i_historical_CRU32", 1949)
outputs_as_inputs("Statewide", "fmo00s00i_historical_CRU32", 2013)
# }