-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSS.m
More file actions
47 lines (38 loc) · 1.58 KB
/
Copy pathSS.m
File metadata and controls
47 lines (38 loc) · 1.58 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
41
42
43
44
45
46
47
% SS.m - Single Station processing
% The paths structure Survey is set in startUpSurvey.m
% This structure is different for different surveys. You
% you would want to run startUpSurvey whenever you work with
% a new survey.
% Surve.home is the data directory in which the processing
% is performed. It must have a subdirectory 'original'.
% It doesn't matter what this subdirectory looks like, as
% long as this is where all the raw binary data files
% reside. It must also have a subdirectory CF, copied
% from EMTF. Other directories will be created, as required
% by the processing.
% Once the raw NIMS data is read and verified, it is saved
% in a MAT file. The metaData is also written into an XML.
% Both files are written to the directory where the original
% NIMS data resides.
warning off;
% run startUpSurvey & attract attention to this window with a warning message
if ~exist('Survey','var')
% msg = ['Before processing, please run startUpSurvey '...
% 'to choose the root directory for your MT survey. Then run SS again.'];
% h = warndlg(msg);
% uiwait(h); return;
getOS;
Survey = startUpSurvey %#ok<NOPTS>
end
% Reading from raw data file (HZ initialized at 1 but will also read 4 & 8)
cd (Survey.original); HZ = 1; NIMSread
% Set global path to the raw NIMS data
original.Path = dataPath;
original.File = dataFile;
README
dataFile = [relativepath(dataPath,Survey.home) dataFile];
plotDir = Survey.plot;
SSplot(Data,dataFile,plotDir,tBox,tHead)
if ~exist(Survey.data,'dir'); mkdir(Survey.data); end
% Here: pop up a window with the metaData
h = checkHeaderGUI(metaData);