function dst = load_dist(path)
%{
    loads distdrometer files for entire cruise and returns
    N x 2 array dst with day-of-year and rain rate (mm/hr).
%}

cd(path);
files = dir([path,'*rainRate 1min.dat']);
dst = zeros(0,3);
for ii = 1:length(files)
    fname = files(ii).name;
    disp (['Reading file ',fname]);
    temp = load(fname);
    % compute UTC day-of-year
    temp(:,1) = (datenum(1970,1,1) + temp(:,1)/86400) - datenum(2015,12,31);
    if floor(temp(720,1))<94  % timezone offset...
        temp(:,1) = temp(:,1) + 11/24;
    else
        temp(:,1) = temp(:,1) + 10/24;
    end;
    dst = [dst;temp];
end;

end