Skip to content
Snippets Groups Projects
Commit 86d17480 authored by Laura A DeCicco's avatar Laura A DeCicco
Browse files

Switched the getSampleData call from water quality portal to NWISweb.

parent 91322973
No related branches found
No related tags found
No related merge requests found
......@@ -21,8 +21,11 @@
#' Sample_All <- getSampleData('05114000','00915;00931', '1985-01-01', '1985-03-31')
#' Sample_Select <- getSampleData('05114000','00915;00931', '', '')
getSampleData <- function(siteNumber,ParameterCd,StartDate,EndDate,interactive=TRUE){
data <- getQWData(siteNumber,ParameterCd,StartDate,EndDate,interactive=interactive)
compressedData <- compressData(data, interactive=interactive)
rawSample <- retrieveNWISqwData(siteNumber,ParameterCd,StartDate,EndDate)
rawSample$dateTime <- strptime(rawSample$dateTime,"%Y-%m-%d %H:%M:%S")
rawSample$dateTime <- as.Date(rawSample$dateTime)
rawSample$site <- NULL
compressedData <- compressData(rawSample, interactive=interactive)
Sample <- populateSampleColumns(compressedData)
return(Sample)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment