function create_table(targetDirectory, tripodNumber, startTime, deltaT)
%
%   create_table(targetDirectory, tripodNumber, startTime, deltaT)
%
%   Function to create an Excel table of times of each image in a tripod
%   bottom photograph movie.

%Soupy Alexander, 8/2/04

%The time difference
startTime = julian(startTime);
dxTime = deltaT/(60*60*24); 

theFiles = dir(fullfile(targetDirectory, '*.png'));
[fileNames{1:length(theFiles)}] = deal(theFiles.name);
goodNames = sort(fileNames);

outFile = ['D:\temp\framelist' num2str(tripodNumber, '%.0f') ...
    '.xls'];

fID = fopen(outFile, 'w');
fprintf(fID, ['Tripod ' num2str(tripodNumber, '%.0f') '\n\n']);
fprintf(fID, 'File Name\tTime\n');

for indexFile = 1:length(goodNames) 

    thisTime = startTime + (indexFile-1)*dxTime;
    fileName = goodNames{indexFile};
    fprintf(fID, [fileName '\t' ...
        datestr(julian2datenum(thisTime), 0) '\n']);
    
end

fclose(fID)
    
    
