-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathMITprof_demo.m
62 lines (52 loc) · 1.64 KB
/
MITprof_demo.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
clear all
gcmfaces_global;
myenv.verbose=1;
fprintf('\n\n basic MITprof test: started... \n');
if myenv.verbose;
fprintf('\nadding directories to your path\n');
fprintf('===============================\n\n')
end;
MITprof_global;
if myenv.verbose;
fprintf('\nloading reference grid and climatology\n')
fprintf('========================================\n\n')
end;
profiles_prep_load_fields;
if myenv.verbose;
fprintf('\nrunning main program on sample data sets\n')
fprintf('========================================\n\n')
end;
%select the data source (and specific params) => wod05 sample
dataset=profiles_prep_select('wod05','90CTD');
%process it
profiles_prep_main(dataset);
%
fil=[dataset.dirOut dataset.fileOut];
if ~isempty(dir(fil));
fprintf(['\n\n wod05 sample -- done -- ' fil ' was created \n\n']);
else;
warning(['wod05 sample -- SKIPPED -- ' fil ' was NOT created \n\n']);
end;
%select the data source (and specific params) => argo sample
dataset=profiles_prep_select('argo','sample');
%process it
profiles_prep_main(dataset);
%
fil=[dataset.dirOut dataset.fileOut];
if ~isempty(dir(fil));
fprintf(['\n\n argo sample -- done -- ' fil ' was created \n\n']);
else;
warning(['argo sample -- SKIPPED -- ' fil ' was NOT created \n\n']);
end;
%select the data source (and specific params) => odv sample
dataset=profiles_prep_select('odv','ODVcompact_sample');
%process it
profiles_prep_main(dataset);
%
fil=[dataset.dirOut dataset.fileOut];
if ~isempty(dir(fil));
fprintf(['\n\n odv sample -- done -- ' fil ' was created \n\n']);
else;
warning(['odv sample -- SKIPPED -- ' fil ' was NOT created \n\n']);
end;
fprintf('\n basic MITprof test: completed. \n');