Commit 7fca7625 authored by Laura Mack's avatar Laura Mack
Browse files

changed error message (regarding time resolution in IDF.agg)

parent f98603f3
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
dtime<-as.numeric((data.s[,names[1]][2]-data.s[,names[1]][1]),units="hours") dtime<-as.numeric((data.s[,names[1]][2]-data.s[,names[1]][1]),units="hours")
if(any(ds %% dtime > 10e-16)){ if(any(ds %% dtime > 10e-16)){
stop('Given aggregation durations are not multiples of the time resolution = ' stop('At least one of the given aggregation durations is not multiple of the time resolution = '
,dtime,' of station ',station,'.')} ,dtime,' of station ',station,'.')}
# function 1: aggregate over single durations and find annual maxima: # function 1: aggregate over single durations and find annual maxima:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment