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

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

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

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

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.22