/[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.5 by gforget, Wed Jan 5 22:14:22 2011 UTC revision 1.14 by gforget, Mon Jul 28 19:34:16 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('adding directories to your path\n');  fprintf('creating database directory with reference datasets\n');
8  fprintf('===============================\n\n')  fprintf('===============================\n\n')
9  end;  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  global mydir; mydir=[pwd '/'];  if MITprof_verbose;
16  fid=fopen([mydir 'MITprof_path.m'],'wt');  fprintf('adding directories to your path\n');
17  aa=sprintf(['global mydir; mydir=''' mydir ''';\n']);  fprintf('===============================\n\n')
18  aa=sprintf([aa 'addpath ' mydir ';\n']);  end;
19  aa=sprintf([aa 'addpath ' mydir 'profiles_IO_v2/;\n']);  MITprof_global;
 aa=sprintf([aa 'addpath ' mydir 'profiles_IO_external/;\n']);  
 aa=sprintf([aa 'addpath ' mydir 'profiles_misc/;\n']);  
 aa=sprintf([aa 'addpath ' mydir 'profiles_process_main_v2/;\n']);  
 aa=sprintf([aa 'addpath ' mydir 'profiles_devel/\n;']);  
 eval(aa);  
 fid=fopen([mydir 'MITprof_path.m'],'wt'); fprintf(fid,aa); fclose(fid);  
20    
21                    
22    if MITprof_verbose;
23    fprintf('\ngenerating .mat files for reference grid and climatology\n')
24    fprintf('========================================\n\n')
25    end;
26    profiles_prep_load_fields(1);
27    
28  fprintf('\n\n basic MITprof test: started... \n');  fprintf('\n\n basic MITprof test: started... \n');
29    
30  if MITprof_verbose;  if MITprof_verbose;
# Line 30  end; Line 35  end;
35  %select the data source (and specific params) => wod05 sample  %select the data source (and specific params) => wod05 sample
36  dataset=profiles_prep_select('wod05','90CTD');  dataset=profiles_prep_select('wod05','90CTD');
37  %process it  %process it
38  profiles_prep_main;  profiles_prep_main(dataset);
39  %  %
40  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']);
41    
42  %select the data source (and specific params) => argo sample  %select the data source (and specific params) => argo sample
43  dataset=profiles_prep_select('argo','indian');  dataset=profiles_prep_select('argo','indian');
44  %process it  %process it
45  profiles_prep_main;  profiles_prep_main(dataset);
46  %  %
47  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']);
48    
49    %select the data source (and specific params) => odv sample
50    dataset=profiles_prep_select('odv','ODVcompact_sample');
51    %process it
52    profiles_prep_main(dataset);
53    %
54    fprintf(['\n\nodv sample -- done -- ' dataset.dirOut dataset.fileOut '.nc was created \n\n']);
55    
56  fprintf('\n basic MITprof test: completed. \n');  fprintf('\n basic MITprof test: completed. \n');
57    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.22