/[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.18 by gforget, Wed Apr 8 20:16:22 2015 UTC
# Line 1  Line 1 
1    clear all
2    
3  global MITprof_verbose; %to print notes to screen  gcmfaces_global;
4  if isempty(MITprof_verbose); MITprof_verbose=2; end;  myenv.verbose=1;
5    
6  if MITprof_verbose;  fprintf('\n\n basic MITprof test: started... \n');
7  fprintf('adding directories to your path\n');  
8    if myenv.verbose;
9    fprintf('\nadding directories to your path\n');
10  fprintf('===============================\n\n')  fprintf('===============================\n\n')
11  end;  end;
12    MITprof_global;
13    
14  global mydir; mydir=[pwd '/'];  if myenv.verbose;
15  fid=fopen([mydir 'MITprof_path.m'],'wt');  fprintf('\nloading  reference grid and climatology\n')
16  aa=sprintf(['global mydir; mydir=''' mydir ''';\n']);  fprintf('========================================\n\n')
17  aa=sprintf([aa 'addpath ' mydir ';\n']);  end;
18  aa=sprintf([aa 'addpath ' mydir 'profiles_IO_v2/;\n']);  profiles_prep_load_fields;
 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_stats/\n;']);  
 aa=sprintf([aa 'addpath ' mydir 'profiles_devel/\n;']);  
 eval(aa);  
 fid=fopen([mydir 'MITprof_path.m'],'wt'); fprintf(fid,aa); fclose(fid);  
   
           
 fprintf('\n\n basic MITprof test: started... \n');  
19    
20  if MITprof_verbose;  if myenv.verbose;
21  fprintf('\nrunning main program on sample data sets\n')  fprintf('\nrunning main program on sample data sets\n')
22  fprintf('========================================\n\n')  fprintf('========================================\n\n')
23  end;  end;
# Line 31  end; Line 25  end;
25  %select the data source (and specific params) => wod05 sample  %select the data source (and specific params) => wod05 sample
26  dataset=profiles_prep_select('wod05','90CTD');  dataset=profiles_prep_select('wod05','90CTD');
27  %process it  %process it
28  profiles_prep_main;  profiles_prep_main(dataset);
29  %  %
30  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 ' was created \n\n']);
31    
32  %select the data source (and specific params) => argo sample  %select the data source (and specific params) => argo sample
33  dataset=profiles_prep_select('argo','indian');  dataset=profiles_prep_select('argo','indian');
34  %process it  %process it
35  profiles_prep_main;  profiles_prep_main(dataset);
36    %
37    fprintf(['\n\nargo sample -- done -- ' dataset.dirOut dataset.fileOut ' was created \n\n']);
38    
39    %select the data source (and specific params) => odv sample
40    dataset=profiles_prep_select('odv','ODVcompact_sample');
41    %process it
42    profiles_prep_main(dataset);
43  %  %
44  fprintf(['\n\nargo sample -- done -- ' dataset.dirOut dataset.fileOut '.nc was created \n\n']);  fprintf(['\n\nodv sample -- done -- ' dataset.dirOut dataset.fileOut ' was created \n\n']);
45    
46  fprintf('\n basic MITprof test: completed. \n');  fprintf('\n basic MITprof test: completed. \n');
47    

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

  ViewVC Help
Powered by ViewVC 1.1.22