function best_start_spot=find_greatest_n_consecutive_vals(num_consec,data_array)
%called by: careful_charge_calculator, analyze_sd_over_time
%calls: no custom functions
%code confirmed date: oct 27, 2011

num_consec_minusone=num_consec-1;

windoww=0:num_consec_minusone;

best_window_magnitude=-inf;best_start_spot=nan;
for runnner=1:length(data_array)-num_consec_minusone
    if sum(data_array(runnner+windoww))>best_window_magnitude
        best_window_magnitude=sum(data_array(runnner+windoww));
        best_start_spot=runnner;
    end
end