setPrjHRUnames: Sets the names of HRUs in a CRHM model '.prj' file

View source: R/setPrjHRUnames.R

setPrjHRUnamesR Documentation

Sets the names of HRUs in a CRHM model .prj file

Description

Replaces the existing names of all HRUs, in a .prj file.

Usage

setPrjHRUnames(
  inputPrjFile = "",
  HRUnames = "",
  outputPrjFile = "",
  logfile = ""
)

Arguments

inputPrjFile

Required. Name of the .prj file.

HRUnames

Required. Vector containing new HRU names. There must be at least as many values in this vector as HRU names in the orginal .prj file.

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.

Note

Currently, this function has only been tested on simple .prj files, i.e. without REW Grp parameters.

Author(s)

Kevin Shook

See Also

runCRHM setPrjParameters setPrjDates

Examples

## Not run: 
result <- setPrjHRUnames('c:/CRHM/Bad74_Frozen.prj', c('fallow', 'stubble', 'grass'))
## End(Not run)

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