crssi_change_nf_file_names: Rename CRSS Input Files

Description Usage Arguments Details Value Examples

Description

Rename the CRSS natural flow or salt input files.

Usage

1
2
3
crssi_change_nf_file_names(iFolder, oFolder, nTrace, fromNames, toNames)

copyAndChangeNFFileNames(iFolder, oFolder, nTrace, fromNames, toNames)

Arguments

iFolder

Path to the input folder cotaining trace folders.

oFolder

Path to the ouptut folder containig trace folders.

nTrace

Number of traces to process

fromNames

A vector of the file names found in iFolder/traceN.

toNames

A vector of the file names to create in oFolder/traceN.

Details

Because multiple versions of CRSS exist and the inflow locations have had their names changed in recent years, it is necessary to create files with different file names. It might be easier to copy existing files instead of creating files from the source data, as crssi_create_dnf_files() does. crssi_change_nf_file_names() assumes the folders are structured for CRSS input, e.g., C:/CRSS/dmi/NFSinput/trace1/...

Value

Nothing is returned from function.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# load the common old and new natural flow files names included with the 
# CRSSIO package.
## Not run: 
iFolder <- 'C:/CRSS/dmi/NFSinputOrig/'
oFolder <- 'C:/CRSS/dmi/NFSinputNew/'
oldFileNames <- nf_file_names(version = 1)
newFileNames <- nf_file_names(version = 2)
crssi_change_nf_file_names(iFolder, oFolder, 107,oldFileNames, newFileNames)

## End(Not run)

rabutler/CRSSIO documentation built on May 26, 2019, 8:51 p.m.