WriteDischargeObsSeq: Writes an ascii obs_seq.in file for DART binary...

Description Usage Arguments Examples

View source: R/dart_prep_streamflow.R

Description

WriteDischargeObsSeq makes variances for prettyUsgs discharge observations. The formulation of the variances is subjective. Assuming zero-mean Gaussian observation errors, the approach here is to supply a function which estimates the 3-sigma (inner 99.5 the observations. This amount seems somewhat easier to conceptualize than 1-sigma, hence here we are. This function divides the error amounts by 3 and either returns the standard deviation or squares the result to return the variance (default).

Usage

1
2
3
4
WriteDischargeObsSeq(obsDf, POSIXctCol = NULL, lonCol = NULL,
  latCol = NULL, elevCol = NULL, obsCol = NULL, sigma3Col = NULL,
  siteCol = NULL, outPath = ".", groupTag = NULL, errTag = NULL,
  dartTypeQ = 20, na.rm = FALSE)

Arguments

outPath

Character The directory where the file is to be written.

pretty

The prettyUsgs discharge observations to which variances are to be added.

stationName

Character To help identify the outputfile and the station data in the file.

errorId

Character To help identify the outputfile and the error function used.

typeQ

Numeric Stream discharge obs type index in my pre-release version of DART. It could change. DART/obs_kind/DEFAULT_obs_kind_mod.F90

Examples

1
2
3
4
5
#Following on examples for MkDischargeVariance
## Not run: 
WriteDischargeObsSeq(prettyOro, '~/.', 'orodell', 'climTaperDefault')

## End(Not run)

NCAR/rwrfhydro documentation built on June 26, 2020, 8:53 p.m.