-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmkNIMSinfo.m
More file actions
40 lines (35 loc) · 1.1 KB
/
Copy pathmkNIMSinfo.m
File metadata and controls
40 lines (35 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
function [NIMSinfo] = mkNIMSinfo(SurveyName,DataFiles)
% New version of makeNIMSinfo; only used for
% display of what has been done (and bad record segments)
% in ArrayManager
Survey = startUpSurvey(SurveyName);
nFiles = length(DataFiles);
for k = 1:nFiles
% find root
root = DataFiles{k}.Name;
% check for decimated file (No decimated file now)
DBN = 0;
% check for bin file
binFile = [Survey.data root '.bin'];
BIN = exist(binFile,'file') == 2;
% check for SP file
spFileRun = [Survey.SP root '.sp'];
spFileSite = [Survey.SP root(1:end-1) '.sp'];
SP = (exist(spFileSite,'file') == 2 | exist(spFileRun,'file') == 2);
% check for FC file
fcFile = [Survey.FC root '.f5'];
FC = exist(fcFile,'file') == 2;
% check for BR file
brFile = [Survey.BR root '.bad'];
BR = exist(brFile,'file') == 2;
% sep 28 : added reading of marked bad segments, to add to
% data availability plot
if BR
[T12] = rdBadRec(brFile);
else
[T12] = [];
end
NIMSinfo{k} = struct('root',root,'DBN',DBN, ...
'BIN',BIN,'FC',FC,'SP',SP,'BR',BR,'BRtimes',T12);
end
%save NIMSinfo.mat NIMSinfo