/[MITgcm]/MITgcm_contrib/gael/matlab_class/gcmfaces_init.m
ViewVC logotype

Annotation of /MITgcm_contrib/gael/matlab_class/gcmfaces_init.m

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.5 - (hide annotations) (download)
Wed Nov 3 19:53:11 2010 UTC (14 years, 8 months ago) by gforget
Branch: MAIN
Changes since 1.4: +2 -0 lines
add gcmfaces_verbose switch

1 gforget 1.1
2 gforget 1.5 global gcmfaces_verbose; gcmfaces_verbose=1;
3    
4 gforget 1.1 global mydir; mydir=[pwd '/'];
5    
6     fid=fopen([mydir 'gcmfaces_path.m'],'wt');
7     fprintf(fid,['global mydir; mydir=''' mydir ''';\n']);
8     fprintf(fid,['addpath ' mydir ';\n']);
9     fprintf(fid,['addpath ' mydir 'gcmfaces_IO/;\n']);
10 gforget 1.2 fprintf(fid,['addpath ' mydir 'gcmfaces_convert/;\n']);
11     fprintf(fid,['addpath ' mydir 'gcmfaces_exch/;\n']);
12     fprintf(fid,['addpath ' mydir 'gcmfaces_maps/;\n']);
13 gforget 1.1 fprintf(fid,['addpath ' mydir 'gcmfaces_misc/;\n']);
14     fprintf(fid,['addpath ' mydir 'gcmfaces_calc/;\n']);
15     fprintf(fid,['addpath ' mydir 'gcmfaces_smooth/;\n']);
16 gforget 1.3 %fprintf(fid,['addpath ' mydir 'gcmfaces_specs/;\n']);
17 gforget 1.1 %fprintf(fid,['addpath ' mydir 'gcmfaces_legacy/;\n']);
18     %fprintf(fid,['addpath ' mydir 'gcmfaces_devel/;\n']);
19     fprintf(fid,['addpath ' mydir 'sample_analysis/;\n']);
20     fprintf(fid,['addpath ' mydir 'sample_processing/;\n']);
21     fclose(fid);
22    
23     fprintf('\n\n\n***********message from gcmfaces_init.m************ \n');
24     fprintf(' gcmfaces_path.m was created that, when executed, \n');
25     fprintf(' adds the gcmfaces directories to your path \n\n\n');
26     fprintf(' ultimately you may want to copy it in your startup.m \n');
27    
28     gcmfaces_path;
29    
30 gforget 1.4 test0=dir('sample_input'); if isempty(test0); fprintf('no sample input data found\n'); return; end;
31    
32 gforget 1.1 fprintf('\n\n\n***********message from gcmfaces_init.m************\n ');
33     fprintf(' starting 1st example routine: plot_one_field ... \n');
34    
35     plot_one_field;
36    
37     fprintf('\n\n\n***********message from gcmfaces_init.m************\n ');
38     fprintf(' starting 2nd example routine: plot_std_field ... \n');
39    
40     plot_std_field;
41    
42     fprintf('\n\n\n***********message from gcmfaces_init.m************\n ');
43     fprintf(' >>> initialization of gcmfaces completed correctly \n');
44     fprintf(' >>> you are all set and may now use the gcmfaces package \n');
45     fprintf(' >>> eventually, to avoid running gcmfaces_init over again \n');
46     fprintf(' you may want to copy the gcmfaces_path.m code to your startup.m \n\n\n');
47    
48    

  ViewVC Help
Powered by ViewVC 1.1.22