files=uipickfiles;
n=length(files);
for j=1:n
    load(char(files(j)))
    h=profile.heights;
    time(j)=lidar.start_time;
    Vh(j,:)=profile.Vh';
    Beta(j,:)=profile.beta;
    theta(j,:)=profile.theta';
    w(j,:)=profile.w';
    
    nc=length(lidar.cloud);
    ipnt=1
    for jc=1:nc
        nd=length(lidar.cloud(jc).base);
        base(ipnt:ipnt+nd-1)=lidar.cloud(jc).base;
        ipnt=ipnt+nd;
    end
    cloudbase(j)=mean(base);
end
dd=datevec(time(1));
start_day=datenum([dd(1) dd(2) dd(3) 0 0 0]);
time_d=time-start_day;
