% Calculates discharge and time at 18 km for HC and CC results and at 18 km
% for CL and PL results

upQp_time = [9 9 16 16 30 30];

for i = 1:6
    
    idtQ_hold = xs_hist_cell{i,5};
    hist_idtQ(i,:) = idtQ_hold(end,:);
    
    idtQ_hold = xs_2010_cell{i,5};
    c2010_idtQ(i,:) = idtQ_hold(end,:);
    
    idtQ_hold = xs_2010lidar_cell{i,5};
    l2010_idtQ(i,:) = idtQ_hold(18*4,:);
    
    idtQ_hold = xs_prelidar_cell{i,5};
    p2010_idtQ(i,:) = idtQ_hold(18*4,:);
    
end

for j = 1:6
    hist_idtQ(j,2) = hist_idtQ(j,2) / 3600 - upQp_time(j);
    c2010_idtQ(j,2) = c2010_idtQ(j,2) / 3600 - upQp_time(j);
    l2010_idtQ(j,2) = l2010_idtQ(j,2) / 3600 - upQp_time(j);
    p2010_idtQ(j,2) = p2010_idtQ(j,2) / 3600 - upQp_time(j);
end
