readPrjMatrix: Reads maxtrix of specified parameter from .prj file

View source: R/readPrjMatrix.R

readPrjMatrixR Documentation

Reads maxtrix of specified parameter from .prj file

Description

This function reads numeric parameter values which are in a square matrix where the number of rows and columns are equal to the number of HRUs.

Usage

readPrjMatrix(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 matrix, with column and row names of the HRU names. If unsuccessful, returns FALSE.

Author(s)

Kevin Shook

See Also

readPrjParameters setPrjMatrix

Examples

## Not run: 
# read in as a matrix
infile <- "Cluster1_PTH_100km2_WFDEI-GEM_new_watershed10_50%_IN.prj"
variables <- readPrjMatrix(infile, "distrib_Route") 
## End(Not run)

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