setPrjObs: Sets the names of the obs files in a CRHM model '.prj' file

View source: R/setPrjObs.R

setPrjObsR Documentation

Sets the names of the obs files in a CRHM model .prj file

Description

Sets the names of the obs files in a CRHM model .prj file

Usage

setPrjObs(inputPrjFile = "", obsFiles = "", outputPrjFile = "", logfile = "")

Arguments

inputPrjFile

Required. Name of the .prj file.

obsFiles

Optional. A string or vector of strings containing the names of the obs file(s). If none are supplied, then the existing obs files will be deleted.

outputPrjFile

Optional. If omitted, the input .prj file will be overwritten.

logfile

Optional. Name of the file to be used for logging the action. Normally not used.

Value

If successful, returns TRUE. If unsuccessful, returns FALSE.

Author(s)

Kevin Shook

See Also

runCRHM setPrjDates setPrjParameters

Examples

## Not run: 
obsFiles <- c("BadLakeHourly.obs", "BadLakeppt.obs")
result <- setPrjObs("c:/CRHM/Bad Lake 1974-1975.prj", obsFiles
## End(Not run)

CentreForHydrology/CRHMr documentation built on April 6, 2024, 5:27 p.m.