Confusing error when no NWIS data exists
Created by: lawinslow
It seems that if there is no NWIS data available, the user gets a confusing error
URL caused an error: http://waterservices.usgs.gov/nwis/dv/?site=10264750&format=rdb,1.0&ParameterCd=00060&StatCd=00003&startDT=1980-01-01&endDT=2014-11-03
Content-Type=text/plain; charset=UTF-8
Error in names(data) <- c("agency", "site", "dateTime", "value", "code") :
attempt to set an attribute on NULL
To reproduce:
getNWISDaily("10264750","00060", "1980-01-01", "2014-11-03", convert=TRUE)
Tried it with the fork at @ldecicco-USGS. Using:
readNWISdv("10264750","00060", "1980-01-01", "2014-11-03")
get
Error in timeSeries[[i]] : subscript out of bounds
Not sure if its the same error or not, but I think it is.