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

expand per="hr" to all options #33

Closed
brry opened this issue Nov 23, 2021 · 1 comment
Closed

expand per="hr" to all options #33

brry opened this issue Nov 23, 2021 · 1 comment

Comments

@brry
Copy link
Owner

brry commented Nov 23, 2021

selectDWD(id=1050, res=c("daily","monthly"), var="kl", per="hr")

currently returns
dwdbase/daily/kl/historical/**_hist.zip and dwdbase/monthly/kl/recent/**_akt.zip

Should per="hr" expand to all combinations?
Does this extend to id vectors?

@brry
Copy link
Owner Author

brry commented Nov 23, 2021

data(fileIndex, package="rdwd")
id <- unique(fileIndex$id[fileIndex$var=="more_precip"])[1:100]
hist <- rdwd::selectDWD(id=id, res="daily", var="more_precip", per="h", outvec=TRUE)
rece <- rdwd::selectDWD(id=id, res="daily", var="more_precip", per="r", outvec=TRUE)
hist <- hist[hist!=rdwd::dwdbase] # 99 files
rece <- rece[rece!=rdwd::dwdbase] # 23 files

hire <- rdwd::selectDWD(id=id, res="daily", var="more_precip", per="hr") # length 100
# would be length 122 c(hist,rece)

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

No branches or pull requests

1 participant