/[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.15 by gforget, Mon Jul 28 21:29:41 2014 UTC
# Line 1  Line 1 
1  clear all  clear all
2    
3  global MITprof_verbose; %to print notes to screen  gcmfaces_global;
 if isempty(MITprof_verbose); MITprof_verbose=2; end;  
4    
5  if MITprof_verbose;  if myenv.verbose;
6  fprintf('generating database directory with reference datasets\n');  fprintf('creating database directory with reference datasets\n');
7  fprintf('===============================\n\n')  fprintf('===============================\n\n')
8  end;  end;
9  status=mkdir('climatology');  if ~exist('climatology','dir'), status=mkdir('climatology'); end
10  gcmfaces_path;gcmfaces_dir=mydir;  gcmfaces_global;
11  eval(['!cp -r ' gcmfaces_dir 'sample_input/GRIDv4 climatology/']);  eval(['!ln -s ' myenv.gcmfaces_dir 'sample_input/GRIDv4 climatology/']);
12  eval(['!cp ' gcmfaces_dir 'sample_input/OCCAetcONv4GRID/* climatology/']);  eval(['!ln -s ' myenv.gcmfaces_dir 'sample_input/OCCAetcONv4GRID/* climatology/']);
 profiles_prep_load_fields(1);  
13    
14  if MITprof_verbose;  if myenv.verbose;
15  fprintf('adding directories to your path\n');  fprintf('adding directories to your path\n');
16  fprintf('===============================\n\n')  fprintf('===============================\n\n')
17  end;  end;
18    MITprof_global;
 global mydir; mydir=[pwd '/'];  
 fid=fopen([mydir 'MITprof_path.m'],'wt');  
 aa=sprintf(['global mydir; mydir=''' mydir ''';\n']);  
 aa=sprintf([aa 'addpath ' mydir ';\n']);  
 aa=sprintf([aa 'addpath ' mydir 'profiles_IO_v2/;\n']);  
 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);  
19    
20                    
21    if myenv.verbose;
22    fprintf('\ngenerating .mat files for reference grid and climatology\n')
23    fprintf('========================================\n\n')
24    end;
25    profiles_prep_load_fields(1);
26    
27  fprintf('\n\n basic MITprof test: started... \n');  fprintf('\n\n basic MITprof test: started... \n');
28    
29  if MITprof_verbose;  if myenv.verbose;
30  fprintf('\nrunning main program on sample data sets\n')  fprintf('\nrunning main program on sample data sets\n')
31  fprintf('========================================\n\n')  fprintf('========================================\n\n')
32  end;  end;

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

  ViewVC Help
Powered by ViewVC 1.1.22