Description Usage Arguments Details Examples
Generates batch files for input into QWData with user-specified DQI codes.
1 2 3 4 |
STAIDS |
A vector of station IDs |
records |
A vector of record numbers for which DQI codes are to be flipped. Must be in the format as retrieved using readNWISodbc of record number with coorseponding database number appended with an underscore. E.g. "123456_01 |
parameters |
A vector of parameter codes of the same length as records for which DQI codes are to be flipped.See details |
dqiCodes |
A vector of specified DQI codes of the same length as records.See details |
comments |
An optional vector of comments for each result of the same length as records.See details |
commentType |
An optional vector of comment types of the same length as records. Default is "F" for field. See details |
DSN |
A character string containing the DSN for your local server |
env.db |
Environmental database number |
qa.db |
QA database number |
keepRecordNo |
Logical. Retain record numbers in qwresult and qwsample. If TRUE, RECORD_NO column in qwresult and qwsample dataframes will need to be removed prior to batch upload to NWIS |
writeFiles |
write out qwresult and qwsample files to text files in working directory |
qwresultname |
Name of qwresult file |
qwsamplename |
Name of qwsample file |
This function allows the user to generate batch files to change DQI codes for custom sets of parameters and record numbers. The input vectors must be the same length, but record numbers can and often will be repeated. See example below for a demonstration of input.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
#Will not run unless connected to NWISCO
STAIDS <- c("391517106223801","391500106224901")
records <- c("00306540_01","00306540_01","01305854_01","01305854_01")
parameters <- c("00400","00095","01106","01056")
dqiCodes <- c("R","R","Q","R")
flipDQI(STAIDS = STAIDS,
records = records,
parameter = parameters,
dqiCodes = dqiCodes,
DSN = "NWISCO",
env.db = "01",
qa.db = "02")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.