handles = [];
0075 
0076 <span class="comment">% data checks</span>
0077 [error_flag, error_str, timestep, t] = util_DataCheck(Q, t);
0078 <span class="keyword">if</span> error_flag == 2
0079     BFI = NaN;
0080     <span class="keyword">return</span>
0081 <span class="keyword">end</span>
0082 timestep_factor = 1/days(timestep); <span class="comment">% adjust for timestep</span>
0083 
0084 <span class="comment">% calculate signature</span>
0085 
0086 <span class="comment">% pad time series to compensate for