autoBuildModel: Automatically run SHUDgis based on the input data and...

View source: R/autoBuildModel.R

autoBuildModelR Documentation

Automatically run SHUDgis based on the input data and parameters. autoBuildModel

Description

Automatically run SHUDgis based on the input data and parameters. autoBuildModel

Usage

autoBuildModel(
  indata,
  forcfiles,
  prjname = "sac",
  outdir = getwd(),
  a.max = 1e+06 * 0.2,
  q.min = 33,
  tol.riv = 0,
  tol.wb = 200,
  tol.len = 0,
  AqDepth = 10,
  years = 2000:2010,
  clean = TRUE,
  cfg.para = shud.para(nday = 365 * length(years) + round(length(years)/4)),
  cfg.calib = shud.calib(),
  mf = MeltFactor(years = years),
  rm.outlier = TRUE,
  quiet = FALSE
)

Arguments

indata

Input data, list of data.

forcfiles

Filenames of .csv forcing data

prjname

Projectname

outdir

Output directory

a.max

Maximum area of triangles. Unit=m2

q.min

Minimum of angles for each triangle

tol.riv

Tolerance to simplify river lines, in meter

tol.wb

Tolerance to simplify watershed boundary, in meter

tol.len

Tolerance to simplyfy river by longituanal length, meter.

AqDepth

Depth of aquifer bottom, which is surface elemvation minus bedrock elevation. meter.

years

Years to generate the LAI, Meltfactor, Roughness Length, which must be same as the period of forcing data.

clean

Whether clean the existing model files in output directory.

cfg.para

model configuration, parameter

cfg.calib

model calibration

mf

Meltfactor

rm.outlier

Whether to remove the outlier in soil/geol;

quiet

Whether to ask confirmation when multiple outlets exist.

Value

SHUD.mesh

Examples

data(sac)
indata = sac
sp.forc =indata[['forc']]
forc.fns = paste0(sp.forc@data[, 'NLDAS_ID'], '.csv')
forc.fns

SHUD-System/SHUDtoolbox documentation built on Nov. 27, 2024, 5:54 a.m.