/[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.10 - (hide annotations) (download)
Wed Apr 27 21:42:19 2011 UTC (14 years, 2 months ago) by roquet
Branch: MAIN
Changes since 1.9: +11 -6 lines
second minor bug fix.

1 roquet 1.8 clear all
2 gforget 1.1
3 gforget 1.4 global MITprof_verbose; %to print notes to screen
4     if isempty(MITprof_verbose); MITprof_verbose=2; end;
5 gforget 1.2
6 gforget 1.4 if MITprof_verbose;
7 roquet 1.10 fprintf('creating database directory with reference datasets\n');
8 roquet 1.8 fprintf('===============================\n\n')
9     end;
10 roquet 1.10 if ~exist('climatology','dir'), status=mkdir('climatology'); end
11 roquet 1.8 gcmfaces_path;gcmfaces_dir=mydir;
12 roquet 1.9 eval(['!cp -r ' gcmfaces_dir 'sample_input/GRIDv4 climatology/']);
13 roquet 1.8 eval(['!cp ' gcmfaces_dir 'sample_input/OCCAetcONv4GRID/* climatology/']);
14    
15     if MITprof_verbose;
16 gforget 1.1 fprintf('adding directories to your path\n');
17 gforget 1.2 fprintf('===============================\n\n')
18 gforget 1.4 end;
19 gforget 1.1
20 gforget 1.4 global mydir; mydir=[pwd '/'];
21     fid=fopen([mydir 'MITprof_path.m'],'wt');
22     aa=sprintf(['global mydir; mydir=''' mydir ''';\n']);
23     aa=sprintf([aa 'addpath ' mydir ';\n']);
24     aa=sprintf([aa 'addpath ' mydir 'profiles_IO_v2/;\n']);
25     aa=sprintf([aa 'addpath ' mydir 'profiles_IO_external/;\n']);
26     aa=sprintf([aa 'addpath ' mydir 'profiles_misc/;\n']);
27     aa=sprintf([aa 'addpath ' mydir 'profiles_process_main_v2/;\n']);
28 roquet 1.10 aa=sprintf([aa 'addpath ' mydir 'profiles_stats/;\n']);
29     aa=sprintf([aa 'addpath ' mydir 'profiles_devel/;\n']);
30     aa=sprintf([aa 'addpath ' mydir 'climatology/;\n']);
31 gforget 1.4 eval(aa);
32     fid=fopen([mydir 'MITprof_path.m'],'wt'); fprintf(fid,aa); fclose(fid);
33 gforget 1.1
34 gforget 1.4
35 roquet 1.10 if MITprof_verbose;
36     fprintf('\ngenerating .mat files for reference grid and climatology\n')
37     fprintf('========================================\n\n')
38     end;
39     profiles_prep_load_fields(1);
40    
41 gforget 1.4 fprintf('\n\n basic MITprof test: started... \n');
42 gforget 1.1
43 gforget 1.4 if MITprof_verbose;
44     fprintf('\nrunning main program on sample data sets\n')
45 gforget 1.2 fprintf('========================================\n\n')
46 gforget 1.4 end;
47 gforget 1.1
48     %select the data source (and specific params) => wod05 sample
49     dataset=profiles_prep_select('wod05','90CTD');
50     %process it
51 roquet 1.7 profiles_prep_main(dataset);
52 gforget 1.1 %
53 gforget 1.4 fprintf(['\n\n wod05 sample -- done -- ' dataset.dirOut dataset.fileOut '.nc was created \n\n']);
54 gforget 1.1
55     %select the data source (and specific params) => argo sample
56     dataset=profiles_prep_select('argo','indian');
57     %process it
58 roquet 1.7 profiles_prep_main(dataset);
59 gforget 1.1 %
60 gforget 1.4 fprintf(['\n\nargo sample -- done -- ' dataset.dirOut dataset.fileOut '.nc was created \n\n']);
61 gforget 1.1
62 roquet 1.7 %select the data source (and specific params) => odv sample
63     dataset=profiles_prep_select('odv','ODVcompact_sample');
64     %process it
65     profiles_prep_main(dataset);
66     %
67     fprintf(['\n\nodv sample -- done -- ' dataset.dirOut dataset.fileOut '.nc was created \n\n']);
68    
69 gforget 1.4 fprintf('\n basic MITprof test: completed. \n');
70 gforget 1.1

  ViewVC Help
Powered by ViewVC 1.1.22