Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readWQPSample() fails when one observation is reported as a zero concentration #381

Open
rmhirsch49 opened this issue Jul 3, 2024 · 0 comments

Comments

@rmhirsch49
Copy link

Laura: My code is here:

library(EGRET)
staP <- "USGS-01646580"
startDate <- "1978-10-01"
Sample <- readWQPSample(staP, "00665", startDate = startDate)

The error message is here.

Deleted Rows:
dateTime ConcLow ConcHigh Uncen
114 1980-05-13 0 0 1
Error in data.frame(..., check.names = FALSE) :
arguments imply differing number of rows: 1807, 1808
In addition: Warning message:
In compressData(data[, c("dateTime", "qualifier", "value")], verbose = verbose) :
Deleted 1 rows of data because concentration was reported as 0.0, the program is unable to interpret that result and is therefore deleting it.

So, I got no output from this. As I recall, when we were using readNWISSample(), when it encountered a zero concentration value, it gave an error message, said it deleted the row, but it did give the user a Sample data frame. The readWQPSample() function doesn't seem to give any result at all. I hope you can fix it so one does get data reported back.

Thanks. Bob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant