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

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

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


Revision 1.6 - (show annotations) (download)
Thu Jan 6 23:23:00 2011 UTC (14 years, 6 months ago) by gforget
Branch: MAIN
Changes since 1.5: +1 -0 lines
- add profiles_stats to path.

1
2 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');
7 fprintf('===============================\n\n')
8 end;
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_stats/\n;']);
19 aa=sprintf([aa 'addpath ' mydir 'profiles_devel/\n;']);
20 eval(aa);
21 fid=fopen([mydir 'MITprof_path.m'],'wt'); fprintf(fid,aa); fclose(fid);
22
23
24 fprintf('\n\n basic MITprof test: started... \n');
25
26 if MITprof_verbose;
27 fprintf('\nrunning main program on sample data sets\n')
28 fprintf('========================================\n\n')
29 end;
30
31 %select the data source (and specific params) => wod05 sample
32 dataset=profiles_prep_select('wod05','90CTD');
33 %process it
34 profiles_prep_main;
35 %
36 fprintf(['\n\n wod05 sample -- done -- ' dataset.dirOut dataset.fileOut '.nc was created \n\n']);
37
38 %select the data source (and specific params) => argo sample
39 dataset=profiles_prep_select('argo','indian');
40 %process it
41 profiles_prep_main;
42 %
43 fprintf(['\n\nargo sample -- done -- ' dataset.dirOut dataset.fileOut '.nc was created \n\n']);
44
45 fprintf('\n basic MITprof test: completed. \n');
46

  ViewVC Help
Powered by ViewVC 1.1.22