1 |
roquet |
1.8 |
clear all |
2 |
gforget |
1.1 |
|
3 |
gforget |
1.4 |
global MITprof_verbose; %to print notes to screen |
4 |
|
|
if isempty(MITprof_verbose); MITprof_verbose=2; end; |
5 |
gforget |
1.2 |
|
6 |
gforget |
1.4 |
if MITprof_verbose; |
7 |
roquet |
1.8 |
fprintf('generating database directory with reference datasets\n'); |
8 |
|
|
fprintf('===============================\n\n') |
9 |
|
|
end; |
10 |
|
|
status=mkdir('climatology'); |
11 |
|
|
gcmfaces_path;gcmfaces_dir=mydir; |
12 |
|
|
eval(['!cp ' gcmfaces_dir 'sample_input/GRIDv4 climatology/']); |
13 |
|
|
eval(['!cp ' gcmfaces_dir 'sample_input/OCCAetcONv4GRID/* climatology/']); |
14 |
|
|
profiles_prep_load_fields(1); |
15 |
|
|
|
16 |
|
|
if MITprof_verbose; |
17 |
gforget |
1.1 |
fprintf('adding directories to your path\n'); |
18 |
gforget |
1.2 |
fprintf('===============================\n\n') |
19 |
gforget |
1.4 |
end; |
20 |
gforget |
1.1 |
|
21 |
gforget |
1.4 |
global mydir; mydir=[pwd '/']; |
22 |
|
|
fid=fopen([mydir 'MITprof_path.m'],'wt'); |
23 |
|
|
aa=sprintf(['global mydir; mydir=''' mydir ''';\n']); |
24 |
|
|
aa=sprintf([aa 'addpath ' mydir ';\n']); |
25 |
|
|
aa=sprintf([aa 'addpath ' mydir 'profiles_IO_v2/;\n']); |
26 |
|
|
aa=sprintf([aa 'addpath ' mydir 'profiles_IO_external/;\n']); |
27 |
|
|
aa=sprintf([aa 'addpath ' mydir 'profiles_misc/;\n']); |
28 |
|
|
aa=sprintf([aa 'addpath ' mydir 'profiles_process_main_v2/;\n']); |
29 |
gforget |
1.6 |
aa=sprintf([aa 'addpath ' mydir 'profiles_stats/\n;']); |
30 |
gforget |
1.5 |
aa=sprintf([aa 'addpath ' mydir 'profiles_devel/\n;']); |
31 |
roquet |
1.8 |
aa=sprintf([aa 'addpath ' mydir 'database/\n;']); |
32 |
gforget |
1.4 |
eval(aa); |
33 |
|
|
fid=fopen([mydir 'MITprof_path.m'],'wt'); fprintf(fid,aa); fclose(fid); |
34 |
gforget |
1.1 |
|
35 |
gforget |
1.4 |
|
36 |
|
|
fprintf('\n\n basic MITprof test: started... \n'); |
37 |
gforget |
1.1 |
|
38 |
gforget |
1.4 |
if MITprof_verbose; |
39 |
|
|
fprintf('\nrunning main program on sample data sets\n') |
40 |
gforget |
1.2 |
fprintf('========================================\n\n') |
41 |
gforget |
1.4 |
end; |
42 |
gforget |
1.1 |
|
43 |
|
|
%select the data source (and specific params) => wod05 sample |
44 |
|
|
dataset=profiles_prep_select('wod05','90CTD'); |
45 |
|
|
%process it |
46 |
roquet |
1.7 |
profiles_prep_main(dataset); |
47 |
gforget |
1.1 |
% |
48 |
gforget |
1.4 |
fprintf(['\n\n wod05 sample -- done -- ' dataset.dirOut dataset.fileOut '.nc was created \n\n']); |
49 |
gforget |
1.1 |
|
50 |
|
|
%select the data source (and specific params) => argo sample |
51 |
|
|
dataset=profiles_prep_select('argo','indian'); |
52 |
|
|
%process it |
53 |
roquet |
1.7 |
profiles_prep_main(dataset); |
54 |
gforget |
1.1 |
% |
55 |
gforget |
1.4 |
fprintf(['\n\nargo sample -- done -- ' dataset.dirOut dataset.fileOut '.nc was created \n\n']); |
56 |
gforget |
1.1 |
|
57 |
roquet |
1.7 |
%select the data source (and specific params) => odv sample |
58 |
|
|
dataset=profiles_prep_select('odv','ODVcompact_sample'); |
59 |
|
|
%process it |
60 |
|
|
profiles_prep_main(dataset); |
61 |
|
|
% |
62 |
|
|
fprintf(['\n\nodv sample -- done -- ' dataset.dirOut dataset.fileOut '.nc was created \n\n']); |
63 |
|
|
|
64 |
gforget |
1.4 |
fprintf('\n basic MITprof test: completed. \n'); |
65 |
gforget |
1.1 |
|