DOI-USGS / mda.streams

backend tools for powstreams
Creative Commons Zero v1.0 Universal
3 stars 8 forks source link

is the new stage_nwis_ts robust against a site with no data? #225

Closed jordansread closed 8 years ago

jordansread commented 8 years ago

Haven't tested, but I fear it will not fail gracefully. check this against a known empty against >= v0.9.1

aappling-usgs commented 8 years ago

it is now. i ran into issues and fixed them.

> stage_nwis_ts(c('nwis_04024315','nwis_04024430'), var='doobs', times=c('2014-01-01','2014-01-03'))
NULL
> stage_nwis_ts(c('nwis_04024315','nwis_08062500'), var='doobs', times=c('2014-01-01','2014-01-03'))
[1] "C:\\Users\\aappling\\AppData\\Local\\Temp\\1\\RtmpusMzul/nwis_08062500-ts_doobs_nwis.rds"

https://github.com/USGS-R/mda.streams/commit/af61ca94f1ea6c955806783fd85420665a94bacf