-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathmake_refl_directories.m
51 lines (39 loc) · 1.22 KB
/
make_refl_directories.m
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
48
49
50
51
function make_refl_directories(reflcode, cyyyy, station)
% for a given reflection code directory (reflcode),
% station and year (string), make appropriate directories
% to store the SNR files and the SNR lomb scargle results
%
% Kristine M. Larson, September 2019.
% added input directory
% added orbit directories September 2019
orbits=getenv('ORBITS');
% make the orbit directories
if ~exist([orbits '/' cyyyy])
unix(['mkdir ' orbits '/' cyyyy])
end
if ~exist([orbits '/' cyyyy '/nav'])
unix(['mkdir ' orbits '/' cyyyy '/nav'])
end
if ~exist([orbits '/' cyyyy '/sp3'])
unix(['mkdir ' orbits '/' cyyyy '/sp3'])
end
navfiledir = [orbits '/' cyyyy '/nav/'];
if ~exist([reflcode '/input'])
unix(['mkdir ' reflcode '/input'])
end
if ~exist([reflcode '/' cyyyy])
unix(['mkdir ' reflcode '/' cyyyy])
end
if ~exist([reflcode '/' cyyyy '/snr' ])
unix(['mkdir ' reflcode '/' cyyyy '/snr'])
end
if ~exist([reflcode '/' cyyyy '/results' ])
unix(['mkdir ' reflcode '/' cyyyy '/results'])
end
if ~exist([reflcode '/' cyyyy '/snr/' station ])
unix(['mkdir ' reflcode '/' cyyyy '/snr/' station])
end
if ~exist([reflcode '/' cyyyy '/results/' station ])
unix(['mkdir ' reflcode '/' cyyyy '/results/' station])
end
end