readPrjParameters: Reads values of specified parameter from .prj file

View source: R/readPrjParameters.R

readPrjParametersR Documentation

Reads values of specified parameter from .prj file

Description

This function reads numeric parameter values only. Attempting to read in character values, sucha s HRU names, will return NULL.

Usage

readPrjParameters(prjFile = "", paramName = "", logfile = "")

Arguments

prjFile

Required. Name of .prj file.

paramName

Required. Name of parameter to be read.

logfile

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

Value

If successful, returns the parameter values as a vector. If unsuccessful, returns FALSE.

Author(s)

Kevin Shook

See Also

setPrjOutputVariables

Examples

## Not run: 
# read in as a vector
variables <- readPrjParameters("Bad_Lake_1974-1975.prj", "Soil soil_moist_init")
## End(Not run)

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