setPrjDimensions: Sets model dimensions in .prj file

View source: R/setPrjDimensions.R

setPrjDimensionsR Documentation

Sets model dimensions in .prj file

Description

Sets model dimensions in .prj file

Usage

setPrjDimensions(
  inputPrjFile = NULL,
  dimensionVals = NULL,
  outputPrjFile = NULL,
  logfile = ""
)

Arguments

inputPrjFile

Required. Name of the .prj file to read.

dimensionVals

Required. Vector containing new dimension values. There must be 3 values in the correct order: nhru (the number of HRUs), nlay (the number of layers) and nobs (the number of obs files).

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

readPrjDimensions

Examples

## Not run: 
new_dimensions <- c(47, 2, 1)
check <- setPrjDimensions("Bad74_Frozen.prj", new_dimensions)
## End(Not run)

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