function [Struct_new] = PickupTimeBlocks(Struct)
% [Struct_new] = PickUpTimeBlocks(Struct)
% Pick up data after May 29th, after which z1, and z2 are the same

OPC_ID = {'9284','9290','9281','9278','9287'};

Index_time = find(Struct.SaltationSand.StartTimes>datetime(2015,5,29));

for i = 1:length(OPC_ID)
    for j = 1:7  
        tempx = Struct.(['OPC',OPC_ID{i}]).(['x_bin',num2str(j)]);
        tempy = Struct.(['OPC',OPC_ID{i}]).(['y_fit_bin',num2str(j)]);
        tempy_err = Struct.(['OPC',OPC_ID{i}]).(['yerr_fit_bin',num2str(j)]);
        
        Struct_new.(['OPC',OPC_ID{i}]).(['x_bin',num2str(j)]) = tempx(Index_time);
        Struct_new.(['OPC',OPC_ID{i}]).(['y_fit_bin',num2str(j)]) = tempy(Index_time);
        Struct_new.(['OPC',OPC_ID{i}]).(['yerr_fit_bin',num2str(j)]) = tempy_err(Index_time);
    end
    Struct_new.(['OPC',OPC_ID{i}]).z = Struct.(['OPC',OPC_ID{i}]).z(Index_time);
end

Struct_new.SaltationSand.StartTimes = Struct.SaltationSand.StartTimes(Index_time);
Struct_new.SaltationSand.EndTimes = Struct.SaltationSand.EndTimes(Index_time);
Struct_new.SaltationSand.Q = Struct.SaltationSand.Q(Index_time);
Struct_new.SaltationSand.sigma_Q = Struct.SaltationSand.sigma_Q(Index_time);
Struct_new.SaltationSand.ustRe = Struct.SaltationSand.ustRe(Index_time);
Struct_new.SaltationSand.sigma_ustRe = Struct.SaltationSand.sigma_ustRe(Index_time);
Struct_new.SaltationSand.theta = Struct.SaltationSand.theta(Index_time);

display('%--- function PickupTimeBlocks() complete ----%');


end