/[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.9 by roquet, Wed Apr 27 21:24:23 2011 UTC revision 1.17 by gforget, Mon Jul 28 23:30:07 2014 UTC
# Line 1  Line 1 
1  clear all  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');
 fprintf('generating database directory with reference datasets\n');  
 fprintf('===============================\n\n')  
 end;  
 status=mkdir('climatology');  
 gcmfaces_path;gcmfaces_dir=mydir;  
 eval(['!cp -r ' gcmfaces_dir 'sample_input/GRIDv4 climatology/']);  
 eval(['!cp ' gcmfaces_dir 'sample_input/OCCAetcONv4GRID/* climatology/']);  
 profiles_prep_load_fields(1);  
7    
8  if MITprof_verbose;  if myenv.verbose;
9  fprintf('adding directories to your path\n');  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;']);  
 aa=sprintf([aa 'addpath ' mydir 'database/\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;

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.22