forked from Slepian/Slepian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.m
111 lines (101 loc) · 3.22 KB
/
setup.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
function setup()
disp('Downloading the m-files from GitHub ..')
%system('git clone https://github.com/csdms-contrib/slepian_zero.git');
system('git clone https://github.com/Slepian/slepian_zero.git');
system('git clone https://github.com/csdms-contrib/slepian_alpha.git');
system('git clone https://github.com/csdms-contrib/slepian_bravo.git');
system('git clone https://github.com/csdms-contrib/slepian_charlie.git');
system('git clone https://github.com/csdms-contrib/slepian_delta.git');
system('git clone https://github.com/csdms-contrib/slepian_echo.git');
system('git clone https://github.com/csdms-contrib/slepian_foxtrot.git');
system('git clone https://github.com/csdms-contrib/slepian_golf.git');
system('git clone https://github.com/csdms-contrib/slepian_hotel.git');
system('git clone https://github.com/csdms-contrib/slepian_juliet.git');
system('git clone https://github.com/AlainPlattner/nonZonalSlepians.git');
system('git clone https://github.com/Slepian/grdwrite2p.git');
disp('Creating folder structure ..')
mkdir('IFILES');
cd('IFILES');
mkdir('COASTS');
cd('COASTS');
disp('Downloading data files from geoweb.princeton.edu')
urlwrite('http://geoweb.princeton.edu/people/simons/DOTM/cont.mtl','cont.mtl');
urlwrite('http://geoweb.princeton.edu/people/simons/DOTM/conm.mat','conm.mat');
urlwrite('http://geoweb.princeton.edu/people/simons/DOTM/cost.mtl','cost.mtl');
urlwrite('http://geoweb.princeton.edu/people/simons/DOTM/platm.mat','platm.mat');
cd('..')
mkdir('EARTHMODELS');
cd('EARTHMODELS');
mkdir('CONSTANTS');
cd('CONSTANTS');
urlwrite('http://geoweb.princeton.edu/people/simons/DOTM/Earth.mat','Earth.mat');
cd('..');
cd('..');
mkdir('COLORMAPS');
cd('COLORMAPS');
urlwrite('http://geoweb.princeton.edu/people/simons/DOTM/kelim.mat','kelim.mat');
cd('..');
mkdir('KERNELCP');
mkdir('KERNELC');
mkdir('KERNELB');
mkdir('SDWCAP');
mkdir('GLMALPHA');
mkdir('GLMALPHAPTO');
mkdir('GLMALPHAPTOJ');
mkdir('GRADVECGLMALPHA');
mkdir('LEGENDRE');
mkdir('LOCALIZE');
mkdir('PLATES');
cd('PLATES');
urlwrite('http://geoweb.princeton.edu/people/simons/DOTM/plates.mtl','plates.mtl');
cd('..');
mkdir('RADSLEPIANS');
mkdir('TANSLEPIANS');
mkdir('TANCAP');
mkdir('WIGNER');
cd('WIGNER');
mkdir('0J');
cd('..');
mkdir('DLMB');
mkdir('GLACIERS');
cd('GLACIERS');
mkdir('RGI_3_2');
cd('..');
mkdir('PSALLCONS');
mkdir('INOUTGRADVECGLMALPHA');
mkdir('INOUTGRADVECSDWCAP');
mkdir('OUTGRADVECGLMALPHA');
mkdir('TORVECGLMALPHA');
mkdir('TORVECGLMALPHATOJ');
mkdir('VECTANSDWCAP');
mkdir('VECTANGLMALPHA');
mkdir('SDWCAPRING');
mkdir('GLMALPHARING');
mkdir('MCOUPLINGS');
% These are the additional folders needed for SLEPIAN_Hotel
mkdir('SDWCAPUP');
mkdir('SDWCAPUPLATVAR');
mkdir('SDWCAPPOTUP');
mkdir('SDWCAPPOTUPLATVAR');
mkdir('GLMALPHAUP');
mkdir('GLMALPHAUPLATVAR');
mkdir('GLMALPHAUPTOJP');
mkdir('GLMALPHAPOTUP');
mkdir('GLMALPHAPOTUPLATVAR');
mkdir('GLMALPHAPOTUPTOJP');
mkdir('GRADVECSDWCAPUP');
mkdir('GRADVECGLMALPHAUP');
mkdir('GRADVECGLMALPHAUPTOJP');
mkdir('INOUTGRADVECSDWCAPUP');
mkdir('INOUTGRADVECGLMALPHAUP');
mkdir('INOUTGRADVECGLMALPHAUPTOJP');
mkdir('KERNELCPUP');
mkdir('KERNELCPUPLATVAR');
mkdir('KERNELCPPOTUP');
mkdir('KERNELCPPOTUPLATVAR');
mkdir('KERNELEPUP');
mkdir('KERNELFPUP');
mkdir('SLEPEVAL');
mkdir('INOUTSLEPEVAL');
cd('..');
disp('.. done')