/[MITgcm]/MITgcm_contrib/gael/profilesMatlabProcessing/profiles_process_init.m
ViewVC logotype

Annotation of /MITgcm_contrib/gael/profilesMatlabProcessing/profiles_process_init.m

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.20 - (hide annotations) (download)
Thu Mar 3 18:33:11 2016 UTC (9 years, 4 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint65x, checkpoint65v, checkpoint65w, checkpoint65u, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, HEAD
Changes since 1.19: +1 -1 lines
- add full Argo case; distinguish from the sample case using subset.
- set dataset.addGrid to 1 by default.

1 roquet 1.8 clear all
2 gforget 1.1
3 gforget 1.15 gcmfaces_global;
4 gforget 1.16 myenv.verbose=1;
5 gforget 1.2
6 gforget 1.17 fprintf('\n\n basic MITprof test: started... \n');
7 roquet 1.8
8 gforget 1.15 if myenv.verbose;
9 gforget 1.17 fprintf('\nadding directories to your path\n');
10 gforget 1.2 fprintf('===============================\n\n')
11 gforget 1.4 end;
12 gforget 1.14 MITprof_global;
13 gforget 1.1
14 gforget 1.15 if myenv.verbose;
15 gforget 1.17 fprintf('\nloading reference grid and climatology\n')
16 roquet 1.10 fprintf('========================================\n\n')
17     end;
18 gforget 1.17 profiles_prep_load_fields;
19 gforget 1.1
20 gforget 1.15 if myenv.verbose;
21 gforget 1.4 fprintf('\nrunning main program on sample data sets\n')
22 gforget 1.2 fprintf('========================================\n\n')
23 gforget 1.4 end;
24 gforget 1.1
25     %select the data source (and specific params) => wod05 sample
26     dataset=profiles_prep_select('wod05','90CTD');
27     %process it
28 roquet 1.7 profiles_prep_main(dataset);
29 gforget 1.1 %
30 gforget 1.19 fil=[dataset.dirOut dataset.fileOut];
31     if ~isempty(dir(fil));
32     fprintf(['\n\n wod05 sample -- done -- ' fil ' was created \n\n']);
33     else;
34     warning(['wod05 sample -- SKIPPED -- ' fil ' was NOT created \n\n']);
35     end;
36 gforget 1.1
37     %select the data source (and specific params) => argo sample
38 gforget 1.20 dataset=profiles_prep_select('argo','sample');
39 gforget 1.1 %process it
40 roquet 1.7 profiles_prep_main(dataset);
41 gforget 1.1 %
42 gforget 1.19 fil=[dataset.dirOut dataset.fileOut];
43     if ~isempty(dir(fil));
44     fprintf(['\n\n argo sample -- done -- ' fil ' was created \n\n']);
45     else;
46     warning(['argo sample -- SKIPPED -- ' fil ' was NOT created \n\n']);
47     end;
48 gforget 1.1
49 roquet 1.7 %select the data source (and specific params) => odv sample
50     dataset=profiles_prep_select('odv','ODVcompact_sample');
51     %process it
52     profiles_prep_main(dataset);
53     %
54 gforget 1.19 fil=[dataset.dirOut dataset.fileOut];
55     if ~isempty(dir(fil));
56     fprintf(['\n\n odv sample -- done -- ' fil ' was created \n\n']);
57     else;
58     warning(['odv sample -- SKIPPED -- ' fil ' was NOT created \n\n']);
59     end;
60 roquet 1.7
61 gforget 1.4 fprintf('\n basic MITprof test: completed. \n');
62 gforget 1.1

  ViewVC Help
Powered by ViewVC 1.1.22