Skip to content

Generate Worldfile Header

jschoate edited this page Aug 8, 2023 · 1 revision

IOin_hdr function

Creates a header file based on specified parameter definition files and climate basestations.

  • Supply the path to and name of the definition file associated with the function option.
  • Path and file name string must be enclosed in quotation marks.
  • When multiple definition files are being used
    • use the concatenate c() function to combine a list of files
    • list each path/name separated by a comma
    • Main branch - enclose each string (each def file) in quotation marks, i.e.
      • stratum = c("../defs/veg_X.def", "../defs/veg_X.def", "../defs/veg_X.def")
    • Develop branch - enclose full string list in quotation marks, i.e.
      • stratum = c("../defs/veg_X.def, ../defs/veg_X.def, ../defs/veg_X.def")

Function options:

  • basin = Path to basin parameter definition file.
  • hillslope = Path to hillslope parameter definition file.(s)
  • zone = Path to zone parameter definition file(s).
  • soil = Path to soil parameter definition file(s).
  • landuse = Path to landuse parameter definition file(s).
  • stratum = Path to stratum parameter definition file(s).
  • fire = Path to fire parameter definition file.
  • fire_grid_prefix = Path and basename/prefix name of the fire grid files used for the RHESSys WMFire model.
  • spinup = Path to spinup parameter definition file(s).
  • basestations = Path to basin climate basestation file(s).

Usage

example:

input_hdr = IOin_hdr(
basin = "../defs/basin.def",
hillslope = "../defs/hillslope.def",
zone = "../defs/zone.def",
soil = "../defs/soil_sandylaom.def",
landuse = "../defs/lu_undev.def",
stratum = c("../defs/veg_blueoak.def, ../defs/veg_liveoak.def, ../defs/veg_sagebrush.def, ../defs/veg_grass.def"),
basestations = "../clim/ClimateStation_base"
)