1 |
|
|
2 |
global MITprof_verbose; MITprof_verbose=1; |
global MITprof_verbose; %to print notes to screen |
3 |
|
if isempty(MITprof_verbose); MITprof_verbose=2; end; |
4 |
|
|
5 |
|
if MITprof_verbose; |
6 |
fprintf('adding directories to your path\n'); |
fprintf('adding directories to your path\n'); |
7 |
fprintf('===============================\n\n') |
fprintf('===============================\n\n') |
8 |
mydir=[pwd '/']; |
end; |
|
eval(['addpath ' mydir 'profiles_IO_v2/;']); |
|
|
eval(['addpath ' mydir 'profiles_IO_external/;']); |
|
|
eval(['addpath ' mydir 'profiles_misc/;']); |
|
|
eval(['addpath ' mydir 'profiles_process_main_v2/;']); |
|
|
eval(['addpath ' mydir 'profiles_genericgrid/;']); |
|
9 |
|
|
10 |
|
global mydir; mydir=[pwd '/']; |
11 |
|
fid=fopen([mydir 'MITprof_path.m'],'wt'); |
12 |
|
aa=sprintf(['global mydir; mydir=''' mydir ''';\n']); |
13 |
|
aa=sprintf([aa 'addpath ' mydir ';\n']); |
14 |
|
aa=sprintf([aa 'addpath ' mydir 'profiles_IO_v2/;\n']); |
15 |
|
aa=sprintf([aa 'addpath ' mydir 'profiles_IO_external/;\n']); |
16 |
|
aa=sprintf([aa 'addpath ' mydir 'profiles_misc/;\n']); |
17 |
|
aa=sprintf([aa 'addpath ' mydir 'profiles_process_main_v2/;\n']); |
18 |
|
aa=sprintf([aa 'addpath ' mydir 'profiles_genericgrid/\n;']); |
19 |
|
eval(aa); |
20 |
|
fid=fopen([mydir 'MITprof_path.m'],'wt'); fprintf(fid,aa); fclose(fid); |
21 |
|
|
22 |
|
|
23 |
|
fprintf('\n\n basic MITprof test: started... \n'); |
24 |
|
|
25 |
fprintf('running main program on sample data sets\n') |
if MITprof_verbose; |
26 |
|
fprintf('\nrunning main program on sample data sets\n') |
27 |
fprintf('========================================\n\n') |
fprintf('========================================\n\n') |
28 |
|
end; |
29 |
|
|
30 |
%select the data source (and specific params) => wod05 sample |
%select the data source (and specific params) => wod05 sample |
31 |
dataset=profiles_prep_select('wod05','90CTD'); |
dataset=profiles_prep_select('wod05','90CTD'); |
32 |
%process it |
%process it |
33 |
profiles_prep_main; |
profiles_prep_main; |
34 |
% |
% |
35 |
fprintf(['\n\n wod05 sample -- done -- ' dataset.dirOut dataset.fileOut '.nc \n\n']); |
fprintf(['\n\n wod05 sample -- done -- ' dataset.dirOut dataset.fileOut '.nc was created \n\n']); |
36 |
|
|
37 |
%select the data source (and specific params) => argo sample |
%select the data source (and specific params) => argo sample |
38 |
dataset=profiles_prep_select('argo','indian'); |
dataset=profiles_prep_select('argo','indian'); |
39 |
%process it |
%process it |
40 |
profiles_prep_main; |
profiles_prep_main; |
41 |
% |
% |
42 |
fprintf(['\n\nargo sample -- done -- ' dataset.dirOut dataset.fileOut '.nc \n\n']); |
fprintf(['\n\nargo sample -- done -- ' dataset.dirOut dataset.fileOut '.nc was created \n\n']); |
|
|
|
43 |
|
|
44 |
|
fprintf('\n basic MITprof test: completed. \n'); |
45 |
|
|