---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
<ipython-input-38-2d7210c72fa1> in <module>()
1 si_30=qcutils.GetDateIndex(ldt_30,"2006-01-08",default=0,ts=ts,match="startnexthour")
2 ei_30=qcutils.GetDateIndex(ldt_30,"2006-01-09",default=0,ts=ts,match="endprevioushour")
----> 3 si_60=qcutils.GetDateIndex(ldt_60,"2006-01-08",default=0,ts=ts,match="startnexthour")
4 ei_60=qcutils.GetDateIndex(ldt_60,"2006-01-09",default=0,ts=ts,match="endprevioushour")
/home/peter/OzFlux/OzFluxQC/scripts/qcutils.py in GetDateIndex(datetimeseries, date, ts, default, match)
563 # if the time step is 60 then it is always the start of the next hour
564 # we assume here that the time period ends on the datetime stamp
--> 565 while datetimeseries[i].minute!=ts:
566 # iterate until the minutes equal the time step
567 i = i + 1
IndexError: list index out of range