/[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.15 - (show annotations) (download)
Mon Jul 28 21:29:41 2014 UTC (10 years, 11 months ago) by gforget
Branch: MAIN
Changes since 1.14: +5 -6 lines
- remove MITprof_verbose and use gcmfaces myenv.verbose instead

1 clear all
2
3 gcmfaces_global;
4
5 if myenv.verbose;
6 fprintf('creating database directory with reference datasets\n');
7 fprintf('===============================\n\n')
8 end;
9 if ~exist('climatology','dir'), status=mkdir('climatology'); end
10 gcmfaces_global;
11 eval(['!ln -s ' myenv.gcmfaces_dir 'sample_input/GRIDv4 climatology/']);
12 eval(['!ln -s ' myenv.gcmfaces_dir 'sample_input/OCCAetcONv4GRID/* climatology/']);
13
14 if myenv.verbose;
15 fprintf('adding directories to your path\n');
16 fprintf('===============================\n\n')
17 end;
18 MITprof_global;
19
20
21 if myenv.verbose;
22 fprintf('\ngenerating .mat files for reference grid and climatology\n')
23 fprintf('========================================\n\n')
24 end;
25 profiles_prep_load_fields(1);
26
27 fprintf('\n\n basic MITprof test: started... \n');
28
29 if myenv.verbose;
30 fprintf('\nrunning main program on sample data sets\n')
31 fprintf('========================================\n\n')
32 end;
33
34 %select the data source (and specific params) => wod05 sample
35 dataset=profiles_prep_select('wod05','90CTD');
36 %process it
37 profiles_prep_main(dataset);
38 %
39 fprintf(['\n\n wod05 sample -- done -- ' dataset.dirOut dataset.fileOut '.nc was created \n\n']);
40
41 %select the data source (and specific params) => argo sample
42 dataset=profiles_prep_select('argo','indian');
43 %process it
44 profiles_prep_main(dataset);
45 %
46 fprintf(['\n\nargo sample -- done -- ' dataset.dirOut dataset.fileOut '.nc was created \n\n']);
47
48 %select the data source (and specific params) => odv sample
49 dataset=profiles_prep_select('odv','ODVcompact_sample');
50 %process it
51 profiles_prep_main(dataset);
52 %
53 fprintf(['\n\nodv sample -- done -- ' dataset.dirOut dataset.fileOut '.nc was created \n\n']);
54
55 fprintf('\n basic MITprof test: completed. \n');
56

  ViewVC Help
Powered by ViewVC 1.1.22