/[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.11 by gforget, Wed Jun 15 17:07:26 2011 UTC revision 1.16 by gforget, Mon Jul 28 21:45:16 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;  if myenv.verbose;
7  fprintf('creating database directory with reference datasets\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  if ~exist('climatology','dir'), status=mkdir('climatology'); end
11  gcmfaces_path;  gcmfaces_global;
12  eval(['!ln -s ' gcmfaces_dir 'sample_input/GRIDv4 climatology/']);  eval(['!ln -s ' myenv.gcmfaces_dir 'sample_input/GRIDv4 climatology/']);
13  eval(['!ln -s ' gcmfaces_dir 'sample_input/OCCAetcONv4GRID/* climatology/']);  eval(['!ln -s ' myenv.gcmfaces_dir 'sample_input/OCCAetcONv4GRID/* climatology/']);
14    
15  if MITprof_verbose;  if myenv.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    MITprof_global;
 global MITprof_dir; MITprof_dir=[pwd '/'];  
 fid=fopen([MITprof_dir 'MITprof_path.m'],'wt');  
 aa=sprintf(['global MITprof_dir; MITprof_dir=''' MITprof_dir ''';\n']);  
 aa=sprintf([aa 'addpath ' MITprof_dir ';\n']);  
 aa=sprintf([aa 'addpath ' MITprof_dir 'profiles_IO_v2/;\n']);  
 aa=sprintf([aa 'addpath ' MITprof_dir 'profiles_IO_external/;\n']);  
 aa=sprintf([aa 'addpath ' MITprof_dir 'profiles_misc/;\n']);  
 aa=sprintf([aa 'addpath ' MITprof_dir 'profiles_process_main_v2/;\n']);  
 aa=sprintf([aa 'addpath ' MITprof_dir 'profiles_stats/;\n']);  
 aa=sprintf([aa 'addpath ' MITprof_dir 'profiles_devel/;\n']);  
 aa=sprintf([aa 'addpath ' MITprof_dir 'climatology/;\n']);  
 eval(aa);  
 fid=fopen([MITprof_dir 'MITprof_path.m'],'wt'); fprintf(fid,aa); fclose(fid);  
20    
21                    
22  if MITprof_verbose;  if myenv.verbose;
23  fprintf('\ngenerating .mat files for reference grid and climatology\n')  fprintf('\ngenerating .mat files for reference grid and climatology\n')
24  fprintf('========================================\n\n')  fprintf('========================================\n\n')
25  end;  end;
# Line 40  profiles_prep_load_fields(1); Line 27  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 myenv.verbose;
31  fprintf('\nrunning main program on sample data sets\n')  fprintf('\nrunning main program on sample data sets\n')
32  fprintf('========================================\n\n')  fprintf('========================================\n\n')
33  end;  end;

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.22