/[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.7 - (hide annotations) (download)
Wed Apr 13 22:01:00 2011 UTC (14 years, 3 months ago) by roquet
Branch: MAIN
Changes since 1.6: +9 -2 lines
add odv sample in the init file, and update to the new profiles_prep_select interface

1 gforget 1.1
2 gforget 1.4 global MITprof_verbose; %to print notes to screen
3     if isempty(MITprof_verbose); MITprof_verbose=2; end;
4 gforget 1.2
5 gforget 1.4 if MITprof_verbose;
6 gforget 1.1 fprintf('adding directories to your path\n');
7 gforget 1.2 fprintf('===============================\n\n')
8 gforget 1.4 end;
9 gforget 1.1
10 gforget 1.4 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 gforget 1.6 aa=sprintf([aa 'addpath ' mydir 'profiles_stats/\n;']);
19 gforget 1.5 aa=sprintf([aa 'addpath ' mydir 'profiles_devel/\n;']);
20 gforget 1.4 eval(aa);
21     fid=fopen([mydir 'MITprof_path.m'],'wt'); fprintf(fid,aa); fclose(fid);
22 gforget 1.1
23 gforget 1.4
24     fprintf('\n\n basic MITprof test: started... \n');
25 gforget 1.1
26 gforget 1.4 if MITprof_verbose;
27     fprintf('\nrunning main program on sample data sets\n')
28 gforget 1.2 fprintf('========================================\n\n')
29 gforget 1.4 end;
30 gforget 1.1
31     %select the data source (and specific params) => wod05 sample
32     dataset=profiles_prep_select('wod05','90CTD');
33     %process it
34 roquet 1.7 profiles_prep_main(dataset);
35 gforget 1.1 %
36 gforget 1.4 fprintf(['\n\n wod05 sample -- done -- ' dataset.dirOut dataset.fileOut '.nc was created \n\n']);
37 gforget 1.1
38     %select the data source (and specific params) => argo sample
39     dataset=profiles_prep_select('argo','indian');
40     %process it
41 roquet 1.7 profiles_prep_main(dataset);
42 gforget 1.1 %
43 gforget 1.4 fprintf(['\n\nargo sample -- done -- ' dataset.dirOut dataset.fileOut '.nc was created \n\n']);
44 gforget 1.1
45 roquet 1.7 %select the data source (and specific params) => odv sample
46     dataset=profiles_prep_select('odv','ODVcompact_sample');
47     %process it
48     profiles_prep_main(dataset);
49     %
50     fprintf(['\n\nodv sample -- done -- ' dataset.dirOut dataset.fileOut '.nc was created \n\n']);
51    
52 gforget 1.4 fprintf('\n basic MITprof test: completed. \n');
53 gforget 1.1

  ViewVC Help
Powered by ViewVC 1.1.22