/[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.8 by roquet, Wed Apr 27 21:13:16 2011 UTC
# Line 1  Line 1 
1    clear all
2    
3  global MITprof_verbose; %to print notes to screen  global MITprof_verbose; %to print notes to screen
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');
8    fprintf('===============================\n\n')
9    end;
10    status=mkdir('climatology');
11    gcmfaces_path;gcmfaces_dir=mydir;
12    eval(['!cp ' gcmfaces_dir 'sample_input/GRIDv4 climatology/']);
13    eval(['!cp ' gcmfaces_dir 'sample_input/OCCAetcONv4GRID/* climatology/']);
14    profiles_prep_load_fields(1);
15    
16    if MITprof_verbose;
17  fprintf('adding directories to your path\n');  fprintf('adding directories to your path\n');
18  fprintf('===============================\n\n')  fprintf('===============================\n\n')
19  end;  end;
# Line 17  aa=sprintf([aa 'addpath ' mydir 'profile Line 28  aa=sprintf([aa 'addpath ' mydir 'profile
28  aa=sprintf([aa 'addpath ' mydir 'profiles_process_main_v2/;\n']);  aa=sprintf([aa 'addpath ' mydir 'profiles_process_main_v2/;\n']);
29  aa=sprintf([aa 'addpath ' mydir 'profiles_stats/\n;']);  aa=sprintf([aa 'addpath ' mydir 'profiles_stats/\n;']);
30  aa=sprintf([aa 'addpath ' mydir 'profiles_devel/\n;']);  aa=sprintf([aa 'addpath ' mydir 'profiles_devel/\n;']);
31    aa=sprintf([aa 'addpath ' mydir 'database/\n;']);
32  eval(aa);  eval(aa);
33  fid=fopen([mydir 'MITprof_path.m'],'wt'); fprintf(fid,aa); fclose(fid);  fid=fopen([mydir 'MITprof_path.m'],'wt'); fprintf(fid,aa); fclose(fid);
34    
# Line 31  end; Line 43  end;
43  %select the data source (and specific params) => wod05 sample  %select the data source (and specific params) => wod05 sample
44  dataset=profiles_prep_select('wod05','90CTD');  dataset=profiles_prep_select('wod05','90CTD');
45  %process it  %process it
46  profiles_prep_main;  profiles_prep_main(dataset);
47  %  %
48  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 '.nc was created \n\n']);
49    
50  %select the data source (and specific params) => argo sample  %select the data source (and specific params) => argo sample
51  dataset=profiles_prep_select('argo','indian');  dataset=profiles_prep_select('argo','indian');
52  %process it  %process it
53  profiles_prep_main;  profiles_prep_main(dataset);
54  %  %
55  fprintf(['\n\nargo sample -- done -- ' dataset.dirOut dataset.fileOut '.nc was created \n\n']);  fprintf(['\n\nargo sample -- done -- ' dataset.dirOut dataset.fileOut '.nc was created \n\n']);
56    
57    %select the data source (and specific params) => odv sample
58    dataset=profiles_prep_select('odv','ODVcompact_sample');
59    %process it
60    profiles_prep_main(dataset);
61    %
62    fprintf(['\n\nodv sample -- done -- ' dataset.dirOut dataset.fileOut '.nc was created \n\n']);
63    
64  fprintf('\n basic MITprof test: completed. \n');  fprintf('\n basic MITprof test: completed. \n');
65    

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

  ViewVC Help
Powered by ViewVC 1.1.22