/[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.14 by gforget, Mon Jul 28 19:34:16 2014 UTC
# Line 4  global MITprof_verbose; %to print notes Line 4  global MITprof_verbose; %to print notes
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('generating 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  status=mkdir('climatology');  if ~exist('climatology','dir'), status=mkdir('climatology'); end
11  gcmfaces_path;gcmfaces_dir=mydir;  gcmfaces_global;
12  eval(['!cp -r ' gcmfaces_dir 'sample_input/GRIDv4 climatology/']);  eval(['!ln -s ' myenv.gcmfaces_dir 'sample_input/GRIDv4 climatology/']);
13  eval(['!cp ' gcmfaces_dir 'sample_input/OCCAetcONv4GRID/* climatology/']);  eval(['!ln -s ' myenv.gcmfaces_dir 'sample_input/OCCAetcONv4GRID/* climatology/']);
 profiles_prep_load_fields(1);  
14    
15  if MITprof_verbose;  if MITprof_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 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);  
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;

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

  ViewVC Help
Powered by ViewVC 1.1.22