View source: R/crssi_change_nf_file_names.R
crssi_change_nf_file_names | R Documentation |
Rename the CRSS natural flow or salt input files.
crssi_change_nf_file_names(iFolder, oFolder, nTrace, fromNames, toNames)
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. |
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/...
Nothing is returned from function.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.