prep_run_glm_kd: Prepare and run model with Kd scenario

Description Usage Arguments Examples

View source: R/prep_run_glm_kd.R

Description

Pulls in the required information to do a simple GLM run. Grabs driver data from SB and attribute data from the internal package DB. Uses supplied Kd values. Does NOT use ice on/off to break up simulation.

Usage

1
2
3
4
5
6
7
8
9
prep_run_glm_kd(
  site_id,
  path,
  years,
  kd = getClarity(site_id, default.if.null = TRUE),
  nml_args = NULL,
  sed_heat = FALSE,
  verbose = FALSE
)

Arguments

site_id
path

Directy to start and run model

years

Vector of numeric years to simulate. Will simulate from Apr 01 of the first year to March 01 of the last year + 1

kd

Directly supplied kd value (if different value getClarity desired)

nml_args

Arguments for nml file to override defaults

Examples

1
2
3
4
5
6
7
dir.create('~/test')
dir.create(to_run[i])

prep_run_glm(to_run[i], path=to_run[i], 
						 start=as.POSIXct('1979-01-01'), 
						 end=as.POSIXct('2011-12-31'))
								 

USGS-R/mda.lakes documentation built on Nov. 13, 2020, 8:28 p.m.