-
Notifications
You must be signed in to change notification settings - Fork 2
/
Chan_et_al_2019_init.m
43 lines (36 loc) · 1.41 KB
/
Chan_et_al_2019_init.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
% Chan_et_al_2019_init(dir_data)
% Input dir_data is the directory for storing data
% default is under the code directory.
function Chan_et_al_2019_init(dir_data)
% ********************************************
% Make directories
% ********************************************
dir_code = [pwd,'/'];
if ~exist('dir_data','var'), dir_data = [dir_code,'DATA/']; end
if dir_data(end)~= '/', dir_data = [dir_data,'/']; end
mkdir(dir_data)
cd(dir_data)
mkdir ICOADS3
mkdir ICOADS3/ICOADS_00_raw_zip/
mkdir ICOADS3/ICOADS_00_raw/
mkdir ICOADS3/ICOADS_01_mat_files/
mkdir ICOADS3/ICOADS_02_pre_QC/
mkdir ICOADS3/ICOADS_03_WM/
mkdir ICOADS3/ICOADS_QCed/
mkdir ICOADS3/ICOADS_Mis/
mkdir ICOADSb
mkdir ICOADSb/HM_SST_Bucket/
mkdir ICOADSb/Miscellaneous/
mkdir ICOADSb/HM_SST_Bucket/Step_01_Raw_Pairs/
mkdir ICOADSb/HM_SST_Bucket/Step_02_Screen_Pairs/
mkdir ICOADSb/HM_SST_Bucket/Step_03_SUM_Pairs/
mkdir ICOADSb/HM_SST_Bucket/Step_04_run/
mkdir ICOADSb/HM_SST_Bucket/Step_05_corr_idv/
mkdir ICOADSb/HM_SST_Bucket/Step_06_corr_rnd/
mkdir ICOADSb/HM_SST_Bucket/ICOADSb_ensemble/
cd(dir_code)
dir_home_ICOADS3 = [dir_data,'ICOADS3/'];
dir_home_ICOADSb = [dir_data,'ICOADSb/'];
save('chan_et_al_2019_directories.mat','dir_home_ICOADS3',...
'dir_home_ICOADSb','dir_data','dir_code','-v7.3');
end