autoPIHMgis: Automatically run PIHMgis based on the input data and...

Description Usage Arguments Value Examples

View source: R/AutoPIHMgis.R

Description

Automatically run PIHMgis based on the input data and parameters. autoPIHMgis

Usage

1
2
3
4
5
6
autoPIHMgis(indata, forcfiles, prjname = "sac", outdir = getwd(),
  a.max = 1e+06 * 0.2, q.min = 33, tol.riv = 200, tol.wb = 200,
  tol.len = 500, AqDepth = 10, years = 2000:2010, clean = TRUE,
  cfg.para = pihmpara(nday = 365 * length(years) +
  round(length(years)/4)), cfg.calib = pihmcalib(),
  mf = MeltFactor(years = years), rm.outlier = TRUE, backup = TRUE)

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;

backup

Whether to write backup files.

Value

PIHM.mesh

Examples

1
2
3
4
5
data(sac)
indata = sac
sp.forc =indata[['forc']]
forc.fns = paste0(sp.forc@data[, 'NLDAS_ID'], '.csv')
forc.fns

happynotes/PIHMgisR documentation built on Jan. 25, 2020, 9:51 p.m.